| File: | build-analysis/src/clients/lib/python/xmmsvalue.c |
| Location: | line 17951, column 115 |
| Description: | Value stored to '__pyx_filename' is never read |
| 1 | /* Generated by Cython 0.20.1post0 (Debian 0.20.1+git90-g0e6e38e-1ubuntu2) on Thu Mar 3 07:35:45 2016 */ |
| 2 | |
| 3 | #define PY_SSIZE_T_CLEAN |
| 4 | #ifndef CYTHON_USE_PYLONG_INTERNALS0 |
| 5 | #ifdef PYLONG_BITS_IN_DIGIT30 |
| 6 | #define CYTHON_USE_PYLONG_INTERNALS0 0 |
| 7 | #else |
| 8 | #include "pyconfig.h" |
| 9 | #ifdef PYLONG_BITS_IN_DIGIT30 |
| 10 | #define CYTHON_USE_PYLONG_INTERNALS0 1 |
| 11 | #else |
| 12 | #define CYTHON_USE_PYLONG_INTERNALS0 0 |
| 13 | #endif |
| 14 | #endif |
| 15 | #endif |
| 16 | #include "Python.h" |
| 17 | #ifndef Py_PYTHON_H |
| 18 | #error Python headers needed to compile C extensions, please install development version of Python. |
| 19 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02040000 |
| 20 | #error Cython requires Python 2.4+. |
| 21 | #else |
| 22 | #define CYTHON_ABI"0_20_1post0" "0_20_1post0" |
| 23 | #include <stddef.h> /* For offsetof */ |
| 24 | #ifndef offsetof |
| 25 | #define offsetof(type, member)__builtin_offsetof(type, member) ( (size_t) & ((type*)0) -> member ) |
| 26 | #endif |
| 27 | #if !defined(WIN32) && !defined(MS_WINDOWS) |
| 28 | #ifndef __stdcall |
| 29 | #define __stdcall |
| 30 | #endif |
| 31 | #ifndef __cdecl |
| 32 | #define __cdecl |
| 33 | #endif |
| 34 | #ifndef __fastcall |
| 35 | #define __fastcall |
| 36 | #endif |
| 37 | #endif |
| 38 | #ifndef DL_IMPORT |
| 39 | #define DL_IMPORT(t)t t |
| 40 | #endif |
| 41 | #ifndef DL_EXPORT |
| 42 | #define DL_EXPORT(t)t t |
| 43 | #endif |
| 44 | #ifndef PY_LONG_LONGlong long |
| 45 | #define PY_LONG_LONGlong long LONG_LONG |
| 46 | #endif |
| 47 | #ifndef Py_HUGE_VAL(__builtin_huge_val()) |
| 48 | #define Py_HUGE_VAL(__builtin_huge_val()) HUGE_VAL(__builtin_huge_val()) |
| 49 | #endif |
| 50 | #ifdef PYPY_VERSION |
| 51 | #define CYTHON_COMPILING_IN_PYPY0 1 |
| 52 | #define CYTHON_COMPILING_IN_CPYTHON1 0 |
| 53 | #else |
| 54 | #define CYTHON_COMPILING_IN_PYPY0 0 |
| 55 | #define CYTHON_COMPILING_IN_CPYTHON1 1 |
| 56 | #endif |
| 57 | #if CYTHON_COMPILING_IN_PYPY0 |
| 58 | #define Py_OptimizeFlag 0 |
| 59 | #endif |
| 60 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
| 61 | typedef int Py_ssize_t; |
| 62 | #define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647 |
| 63 | #define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1) |
| 64 | #define PY_FORMAT_SIZE_T"z" "" |
| 65 | #define CYTHON_FORMAT_SSIZE_T"z" "" |
| 66 | #define PyInt_FromSsize_t(z) PyInt_FromLong(z) |
| 67 | #define PyInt_AsSsize_t(o) __Pyx_PyInt_As_int(o) |
| 68 | #define PyNumber_Index(o) ((PyNumber_Check(o) && !PyFloat_Check(o)((((PyObject*)(o))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(o))->ob_type), (&PyFloat_Type)))) ? PyNumber_Int(o) : \ |
| 69 | (PyErr_Format(PyExc_TypeError, \ |
| 70 | "expected index value, got %.200s", Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_name), \ |
| 71 | (PyObject*)0)) |
| 72 | #define __Pyx_PyIndex_Check(o)((o)->ob_type->tp_as_number != ((void*)0) && (( ((o)->ob_type)->tp_flags & ((1L<<17))) != 0) && (o)->ob_type->tp_as_number->nb_index != ((void*)0)) (PyNumber_Check(o) && !PyFloat_Check(o)((((PyObject*)(o))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(o))->ob_type), (&PyFloat_Type))) && \ |
| 73 | !PyComplex_Check(o)((((PyObject*)(o))->ob_type) == (&PyComplex_Type) || PyType_IsSubtype ((((PyObject*)(o))->ob_type), (&PyComplex_Type)))) |
| 74 | #define PyIndex_Check __Pyx_PyIndex_CheckPyIndex_Check |
| 75 | #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)PyErr_WarnEx(category, message, 1) |
| 76 | #define __PYX_BUILD_PY_SSIZE_T"n" "i" |
| 77 | #else |
| 78 | #define __PYX_BUILD_PY_SSIZE_T"n" "n" |
| 79 | #define CYTHON_FORMAT_SSIZE_T"z" "z" |
| 80 | #define __Pyx_PyIndex_CheckPyIndex_Check PyIndex_Check |
| 81 | #endif |
| 82 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02060000 |
| 83 | #define Py_REFCNT(ob)(((PyObject*)(ob))->ob_refcnt) (((PyObject*)(ob))->ob_refcnt) |
| 84 | #define Py_TYPE(ob)(((PyObject*)(ob))->ob_type) (((PyObject*)(ob))->ob_type) |
| 85 | #define Py_SIZE(ob)(((PyVarObject*)(ob))->ob_size) (((PyVarObject*)(ob))->ob_size) |
| 86 | #define PyVarObject_HEAD_INIT(type, size)1, type, size, \ |
| 87 | PyObject_HEAD_INIT(type)1, type, size, |
| 88 | #define PyType_Modified(t) |
| 89 | typedef struct { |
| 90 | void *buf; |
| 91 | PyObject *obj; |
| 92 | Py_ssize_t len; |
| 93 | Py_ssize_t itemsize; |
| 94 | int readonly; |
| 95 | int ndim; |
| 96 | char *format; |
| 97 | Py_ssize_t *shape; |
| 98 | Py_ssize_t *strides; |
| 99 | Py_ssize_t *suboffsets; |
| 100 | void *internal; |
| 101 | } Py_buffer; |
| 102 | #define PyBUF_SIMPLE0 0 |
| 103 | #define PyBUF_WRITABLE0x0001 0x0001 |
| 104 | #define PyBUF_FORMAT0x0004 0x0004 |
| 105 | #define PyBUF_ND0x0008 0x0008 |
| 106 | #define PyBUF_STRIDES(0x0010 | 0x0008) (0x0010 | PyBUF_ND0x0008) |
| 107 | #define PyBUF_C_CONTIGUOUS(0x0020 | (0x0010 | 0x0008)) (0x0020 | PyBUF_STRIDES(0x0010 | 0x0008)) |
| 108 | #define PyBUF_F_CONTIGUOUS(0x0040 | (0x0010 | 0x0008)) (0x0040 | PyBUF_STRIDES(0x0010 | 0x0008)) |
| 109 | #define PyBUF_ANY_CONTIGUOUS(0x0080 | (0x0010 | 0x0008)) (0x0080 | PyBUF_STRIDES(0x0010 | 0x0008)) |
| 110 | #define PyBUF_INDIRECT(0x0100 | (0x0010 | 0x0008)) (0x0100 | PyBUF_STRIDES(0x0010 | 0x0008)) |
| 111 | #define PyBUF_RECORDS((0x0010 | 0x0008) | 0x0001 | 0x0004) (PyBUF_STRIDES(0x0010 | 0x0008) | PyBUF_FORMAT0x0004 | PyBUF_WRITABLE0x0001) |
| 112 | #define PyBUF_FULL((0x0100 | (0x0010 | 0x0008)) | 0x0001 | 0x0004) (PyBUF_INDIRECT(0x0100 | (0x0010 | 0x0008)) | PyBUF_FORMAT0x0004 | PyBUF_WRITABLE0x0001) |
| 113 | typedef int (*getbufferproc)(PyObject *, Py_buffer *, int); |
| 114 | typedef void (*releasebufferproc)(PyObject *, Py_buffer *); |
| 115 | #endif |
| 116 | #if PY_MAJOR_VERSION2 < 3 |
| 117 | #define __Pyx_BUILTIN_MODULE_NAME"__builtin__" "__builtin__" |
| 118 | #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline , lnos) \ |
| 119 | PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) |
| 120 | #define __Pyx_DefaultClassTypePyClass_Type PyClass_Type |
| 121 | #else |
| 122 | #define __Pyx_BUILTIN_MODULE_NAME"__builtin__" "builtins" |
| 123 | #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline , lnos) \ |
| 124 | PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) |
| 125 | #define __Pyx_DefaultClassTypePyClass_Type PyType_Type |
| 126 | #endif |
| 127 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02060000 |
| 128 | #define PyUnicode_FromStringPyUnicodeUCS4_FromString(s) PyUnicode_DecodePyUnicodeUCS4_Decode(s, strlen(s), "UTF-8", "strict") |
| 129 | #endif |
| 130 | #if PY_MAJOR_VERSION2 >= 3 |
| 131 | #define Py_TPFLAGS_CHECKTYPES(1L<<4) 0 |
| 132 | #define Py_TPFLAGS_HAVE_INDEX(1L<<17) 0 |
| 133 | #endif |
| 134 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02060000) || (PY_MAJOR_VERSION2 >= 3) |
| 135 | #define Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21) 0 |
| 136 | #endif |
| 137 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02060000 |
| 138 | #define Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18) 0 |
| 139 | #endif |
| 140 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02060000 && !defined(Py_TPFLAGS_IS_ABSTRACT(1L<<20)) |
| 141 | #define Py_TPFLAGS_IS_ABSTRACT(1L<<20) 0 |
| 142 | #endif |
| 143 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030400a1 && !defined(Py_TPFLAGS_HAVE_FINALIZE0) |
| 144 | #define Py_TPFLAGS_HAVE_FINALIZE0 0 |
| 145 | #endif |
| 146 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) > 0x03030000 && defined(PyUnicode_KIND) |
| 147 | #define CYTHON_PEP393_ENABLED0 1 |
| 148 | #define __Pyx_PyUnicode_READY(op)(0) (likely(PyUnicode_IS_READY(op))__builtin_expect(!!(PyUnicode_IS_READY(op)), 1) ? \ |
| 149 | 0 : _PyUnicode_Ready((PyObject *)(op))) |
| 150 | #define __Pyx_PyUnicode_GET_LENGTH(u)(((PyUnicodeObject *)(u))->length) PyUnicode_GET_LENGTH(u) |
| 151 | #define __Pyx_PyUnicode_READ_CHAR(u, i)((Py_UCS4)((((PyUnicodeObject *)(u))->str)[i])) PyUnicode_READ_CHAR(u, i) |
| 152 | #define __Pyx_PyUnicode_KIND(u)(sizeof(Py_UNICODE)) PyUnicode_KIND(u) |
| 153 | #define __Pyx_PyUnicode_DATA(u)((void*)(((PyUnicodeObject *)(u))->str)) PyUnicode_DATA(u) |
| 154 | #define __Pyx_PyUnicode_READ(k, d, i)((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) PyUnicode_READ(k, d, i) |
| 155 | #else |
| 156 | #define CYTHON_PEP393_ENABLED0 0 |
| 157 | #define __Pyx_PyUnicode_READY(op)(0) (0) |
| 158 | #define __Pyx_PyUnicode_GET_LENGTH(u)(((PyUnicodeObject *)(u))->length) PyUnicode_GET_SIZE(u)(((PyUnicodeObject *)(u))->length) |
| 159 | #define __Pyx_PyUnicode_READ_CHAR(u, i)((Py_UCS4)((((PyUnicodeObject *)(u))->str)[i])) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)(((PyUnicodeObject *)(u))->str)[i])) |
| 160 | #define __Pyx_PyUnicode_KIND(u)(sizeof(Py_UNICODE)) (sizeof(Py_UNICODE)) |
| 161 | #define __Pyx_PyUnicode_DATA(u)((void*)(((PyUnicodeObject *)(u))->str)) ((void*)PyUnicode_AS_UNICODE(u)(((PyUnicodeObject *)(u))->str)) |
| 162 | #define __Pyx_PyUnicode_READ(k, d, i)((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i])) |
| 163 | #endif |
| 164 | #if CYTHON_COMPILING_IN_PYPY0 |
| 165 | #define __Pyx_PyUnicode_Concat(a, b)PyUnicodeUCS4_Concat(a, b) PyNumber_Add(a, b) |
| 166 | #define __Pyx_PyUnicode_ConcatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || __builtin_expect (!!((b) == (&_Py_NoneStruct)), 0)) ? PyNumber_Add(a, b) : PyUnicodeUCS4_Concat(a, b)) PyNumber_Add(a, b) |
| 167 | #else |
| 168 | #define __Pyx_PyUnicode_Concat(a, b)PyUnicodeUCS4_Concat(a, b) PyUnicode_ConcatPyUnicodeUCS4_Concat(a, b) |
| 169 | #define __Pyx_PyUnicode_ConcatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || __builtin_expect (!!((b) == (&_Py_NoneStruct)), 0)) ? PyNumber_Add(a, b) : PyUnicodeUCS4_Concat(a, b)) ((unlikely((a) == Py_None)__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0) || unlikely((b) == Py_None)__builtin_expect(!!((b) == (&_Py_NoneStruct)), 0)) ? \ |
| 170 | PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b)PyUnicodeUCS4_Concat(a, b)) |
| 171 | #endif |
| 172 | #define __Pyx_PyString_FormatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0)) ? PyNumber_Remainder (a, b) : PyString_Format(a, b)) ((unlikely((a) == Py_None)__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b)PyString_Format(a, b)) |
| 173 | #define __Pyx_PyUnicode_FormatSafe(a, b)((__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0)) ? PyNumber_Remainder (a, b) : PyUnicodeUCS4_Format(a, b)) ((unlikely((a) == Py_None)__builtin_expect(!!((a) == (&_Py_NoneStruct)), 0)) ? PyNumber_Remainder(a, b) : PyUnicode_FormatPyUnicodeUCS4_Format(a, b)) |
| 174 | #if PY_MAJOR_VERSION2 >= 3 |
| 175 | #define __Pyx_PyString_Format(a, b)PyString_Format(a, b) PyUnicode_FormatPyUnicodeUCS4_Format(a, b) |
| 176 | #else |
| 177 | #define __Pyx_PyString_Format(a, b)PyString_Format(a, b) PyString_Format(a, b) |
| 178 | #endif |
| 179 | #if PY_MAJOR_VERSION2 >= 3 |
| 180 | #define PyBaseString_Type PyUnicode_Type |
| 181 | #define PyStringObject PyUnicodeObject |
| 182 | #define PyString_Type PyUnicode_Type |
| 183 | #define PyString_Check PyUnicode_Check |
| 184 | #define PyString_CheckExact PyUnicode_CheckExact |
| 185 | #endif |
| 186 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02060000 |
| 187 | #define PyBytesObjectPyStringObject PyStringObject |
| 188 | #define PyBytes_TypePyString_Type PyString_Type |
| 189 | #define PyBytes_CheckPyString_Check PyString_Check |
| 190 | #define PyBytes_CheckExactPyString_CheckExact PyString_CheckExact |
| 191 | #define PyBytes_FromStringPyString_FromString PyString_FromString |
| 192 | #define PyBytes_FromStringAndSizePyString_FromStringAndSize PyString_FromStringAndSize |
| 193 | #define PyBytes_FromFormatPyString_FromFormat PyString_FromFormat |
| 194 | #define PyBytes_DecodeEscapePyString_DecodeEscape PyString_DecodeEscape |
| 195 | #define PyBytes_AsStringPyString_AsString PyString_AsString |
| 196 | #define PyBytes_AsStringAndSizePyString_AsStringAndSize PyString_AsStringAndSize |
| 197 | #define PyBytes_SizePyString_Size PyString_Size |
| 198 | #define PyBytes_AS_STRINGPyString_AS_STRING PyString_AS_STRING |
| 199 | #define PyBytes_GET_SIZEPyString_GET_SIZE PyString_GET_SIZE |
| 200 | #define PyBytes_ReprPyString_Repr PyString_Repr |
| 201 | #define PyBytes_ConcatPyString_Concat PyString_Concat |
| 202 | #define PyBytes_ConcatAndDelPyString_ConcatAndDel PyString_ConcatAndDel |
| 203 | #endif |
| 204 | #if PY_MAJOR_VERSION2 >= 3 |
| 205 | #define __Pyx_PyBaseString_Check(obj)(((((PyObject*)(obj))->ob_type) == &PyString_Type) || ( (((PyObject*)(obj))->ob_type) == &PyUnicode_Type) || ( (((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0) || ((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0) |
| 206 | #define __Pyx_PyBaseString_CheckExact(obj)(((((PyObject*)(obj))->ob_type) == &PyString_Type) || ( (((PyObject*)(obj))->ob_type) == &PyUnicode_Type)) PyUnicode_CheckExact(obj)((((PyObject*)(obj))->ob_type) == &PyUnicode_Type) |
| 207 | #else |
| 208 | #define __Pyx_PyBaseString_Check(obj)(((((PyObject*)(obj))->ob_type) == &PyString_Type) || ( (((PyObject*)(obj))->ob_type) == &PyUnicode_Type) || ( (((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0) || ((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<28))) != 0)) (PyString_CheckExact(obj)((((PyObject*)(obj))->ob_type) == &PyString_Type) || PyUnicode_CheckExact(obj)((((PyObject*)(obj))->ob_type) == &PyUnicode_Type) || \ |
| 209 | PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0) || PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
| 210 | #define __Pyx_PyBaseString_CheckExact(obj)(((((PyObject*)(obj))->ob_type) == &PyString_Type) || ( (((PyObject*)(obj))->ob_type) == &PyUnicode_Type)) (PyString_CheckExact(obj)((((PyObject*)(obj))->ob_type) == &PyString_Type) || PyUnicode_CheckExact(obj)((((PyObject*)(obj))->ob_type) == &PyUnicode_Type)) |
| 211 | #endif |
| 212 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02060000 |
| 213 | #define PySet_Check(obj)((((PyObject*)(obj))->ob_type) == &PySet_Type || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), &PySet_Type)) PyObject_TypeCheck(obj, &PySet_Type)((((PyObject*)(obj))->ob_type) == (&PySet_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PySet_Type))) |
| 214 | #define PyFrozenSet_Check(obj)((((PyObject*)(obj))->ob_type) == &PyFrozenSet_Type || PyType_IsSubtype((((PyObject*)(obj))->ob_type), &PyFrozenSet_Type )) PyObject_TypeCheck(obj, &PyFrozenSet_Type)((((PyObject*)(obj))->ob_type) == (&PyFrozenSet_Type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (&PyFrozenSet_Type ))) |
| 215 | #endif |
| 216 | #ifndef PySet_CheckExact |
| 217 | #define PySet_CheckExact(obj)((((PyObject*)(obj))->ob_type) == &PySet_Type) (Py_TYPE(obj)(((PyObject*)(obj))->ob_type) == &PySet_Type) |
| 218 | #endif |
| 219 | #define __Pyx_TypeCheck(obj, type)((((PyObject*)(obj))->ob_type) == ((PyTypeObject *)type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), ((PyTypeObject *)type))) PyObject_TypeCheck(obj, (PyTypeObject *)type)((((PyObject*)(obj))->ob_type) == ((PyTypeObject *)type) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), ((PyTypeObject *)type))) |
| 220 | #if PY_MAJOR_VERSION2 >= 3 |
| 221 | #define PyIntObject PyLongObject |
| 222 | #define PyInt_Type PyLong_Type |
| 223 | #define PyInt_Check(op)((((op)->ob_type)->tp_flags & ((1L<<23))) != 0 ) PyLong_Check(op)((((((PyObject*)(op))->ob_type))->tp_flags & ((1L<< 24))) != 0) |
| 224 | #define PyInt_CheckExact(op)((op)->ob_type == &PyInt_Type) PyLong_CheckExact(op)((((PyObject*)(op))->ob_type) == &PyLong_Type) |
| 225 | #define PyInt_FromString PyLong_FromString |
| 226 | #define PyInt_FromUnicode PyLong_FromUnicode |
| 227 | #define PyInt_FromLong PyLong_FromLong |
| 228 | #define PyInt_FromSize_t PyLong_FromSize_t |
| 229 | #define PyInt_FromSsize_t PyLong_FromSsize_t |
| 230 | #define PyInt_AsLong PyLong_AsLong |
| 231 | #define PyInt_AS_LONG PyLong_AS_LONG |
| 232 | #define PyInt_AsSsize_t PyLong_AsSsize_t |
| 233 | #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask |
| 234 | #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask |
| 235 | #define PyNumber_Int PyNumber_Long |
| 236 | #endif |
| 237 | #if PY_MAJOR_VERSION2 >= 3 |
| 238 | #define PyBoolObject PyLongObject |
| 239 | #endif |
| 240 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030200A4 |
| 241 | typedef long Py_hash_t; |
| 242 | #define __Pyx_PyInt_FromHash_tPyInt_FromLong PyInt_FromLong |
| 243 | #define __Pyx_PyInt_AsHash_tPyInt_AsLong PyInt_AsLong |
| 244 | #else |
| 245 | #define __Pyx_PyInt_FromHash_tPyInt_FromLong PyInt_FromSsize_t |
| 246 | #define __Pyx_PyInt_AsHash_tPyInt_AsLong PyInt_AsSsize_t |
| 247 | #endif |
| 248 | #if (PY_MAJOR_VERSION2 < 3) || (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03010300) |
| 249 | #define __Pyx_PySequence_GetSlice(obj, a, b)PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b) |
| 250 | #define __Pyx_PySequence_SetSlice(obj, a, b, value)PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value) |
| 251 | #define __Pyx_PySequence_DelSlice(obj, a, b)PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b) |
| 252 | #else |
| 253 | #define __Pyx_PySequence_GetSlice(obj, a, b)PySequence_GetSlice(obj, a, b) (unlikely(!(obj))__builtin_expect(!!(!(obj)), 0) ? \ |
| 254 | (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \ |
| 255 | (likely((obj)->ob_type->tp_as_mapping)__builtin_expect(!!((obj)->ob_type->tp_as_mapping), 1) ? (PySequence_GetSlice(obj, a, b)) : \ |
| 256 | (PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0))) |
| 257 | #define __Pyx_PySequence_SetSlice(obj, a, b, value)PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj))__builtin_expect(!!(!(obj)), 0) ? \ |
| 258 | (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \ |
| 259 | (likely((obj)->ob_type->tp_as_mapping)__builtin_expect(!!((obj)->ob_type->tp_as_mapping), 1) ? (PySequence_SetSlice(obj, a, b, value)) : \ |
| 260 | (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1))) |
| 261 | #define __Pyx_PySequence_DelSlice(obj, a, b)PySequence_DelSlice(obj, a, b) (unlikely(!(obj))__builtin_expect(!!(!(obj)), 0) ? \ |
| 262 | (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \ |
| 263 | (likely((obj)->ob_type->tp_as_mapping)__builtin_expect(!!((obj)->ob_type->tp_as_mapping), 1) ? (PySequence_DelSlice(obj, a, b)) : \ |
| 264 | (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1))) |
| 265 | #endif |
| 266 | #if PY_MAJOR_VERSION2 >= 3 |
| 267 | #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func)) |
| 268 | #endif |
| 269 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
| 270 | #define __Pyx_GetAttrString(o,n)PyObject_GetAttrString((o),(n)) PyObject_GetAttrString((o),((char *)(n))) |
| 271 | #define __Pyx_SetAttrString(o,n,a)PyObject_SetAttrString((o),(n),(a)) PyObject_SetAttrString((o),((char *)(n)),(a)) |
| 272 | #define __Pyx_DelAttrString(o,n)PyObject_SetAttrString(((o)),((n)),((void*)0)) PyObject_DelAttrString((o),((char *)(n)))PyObject_SetAttrString(((o)),(((char *)(n))),((void*)0)) |
| 273 | #else |
| 274 | #define __Pyx_GetAttrString(o,n)PyObject_GetAttrString((o),(n)) PyObject_GetAttrString((o),(n)) |
| 275 | #define __Pyx_SetAttrString(o,n,a)PyObject_SetAttrString((o),(n),(a)) PyObject_SetAttrString((o),(n),(a)) |
| 276 | #define __Pyx_DelAttrString(o,n)PyObject_SetAttrString(((o)),((n)),((void*)0)) PyObject_DelAttrString((o),(n))PyObject_SetAttrString(((o)),((n)),((void*)0)) |
| 277 | #endif |
| 278 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
| 279 | #define __Pyx_NAMESTR(n)(n) ((char *)(n)) |
| 280 | #define __Pyx_DOCSTR(n)(n) ((char *)(n)) |
| 281 | #else |
| 282 | #define __Pyx_NAMESTR(n)(n) (n) |
| 283 | #define __Pyx_DOCSTR(n)(n) (n) |
| 284 | #endif |
| 285 | #ifndef CYTHON_INLINE__inline__ |
| 286 | #if defined(__GNUC__4) |
| 287 | #define CYTHON_INLINE__inline__ __inline__ |
| 288 | #elif defined(_MSC_VER) |
| 289 | #define CYTHON_INLINE__inline__ __inline |
| 290 | #elif defined (__STDC_VERSION__201112L) && __STDC_VERSION__201112L >= 199901L |
| 291 | #define CYTHON_INLINE__inline__ inline |
| 292 | #else |
| 293 | #define CYTHON_INLINE__inline__ |
| 294 | #endif |
| 295 | #endif |
| 296 | #ifndef CYTHON_RESTRICT__restrict__ |
| 297 | #if defined(__GNUC__4) |
| 298 | #define CYTHON_RESTRICT__restrict__ __restrict__ |
| 299 | #elif defined(_MSC_VER) && _MSC_VER >= 1400 |
| 300 | #define CYTHON_RESTRICT__restrict__ __restrict |
| 301 | #elif defined (__STDC_VERSION__201112L) && __STDC_VERSION__201112L >= 199901L |
| 302 | #define CYTHON_RESTRICT__restrict__ restrict |
| 303 | #else |
| 304 | #define CYTHON_RESTRICT__restrict__ |
| 305 | #endif |
| 306 | #endif |
| 307 | #ifdef NAN(__builtin_nanf ("")) |
| 308 | #define __PYX_NAN()((float) (__builtin_nanf (""))) ((float) NAN(__builtin_nanf (""))) |
| 309 | #else |
| 310 | static CYTHON_INLINE__inline__ float __PYX_NAN()((float) (__builtin_nanf (""))) { |
| 311 | /* Initialize NaN. The sign is irrelevant, an exponent with all bits 1 and |
| 312 | a nonzero mantissa means NaN. If the first bit in the mantissa is 1, it is |
| 313 | a quiet NaN. */ |
| 314 | float value; |
| 315 | memset(&value, 0xFF, sizeof(value)); |
| 316 | return value; |
| 317 | } |
| 318 | #endif |
| 319 | #ifdef __cplusplus |
| 320 | template<typename T> |
| 321 | void __Pyx_call_destructor(T* x) { |
| 322 | x->~T(); |
| 323 | } |
| 324 | #endif |
| 325 | |
| 326 | |
| 327 | #if PY_MAJOR_VERSION2 >= 3 |
| 328 | #define __Pyx_PyNumber_Divide(x,y)PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y) |
| 329 | #define __Pyx_PyNumber_InPlaceDivide(x,y)PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y) |
| 330 | #else |
| 331 | #define __Pyx_PyNumber_Divide(x,y)PyNumber_Divide(x,y) PyNumber_Divide(x,y) |
| 332 | #define __Pyx_PyNumber_InPlaceDivide(x,y)PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y) |
| 333 | #endif |
| 334 | |
| 335 | #ifndef __PYX_EXTERN_Cextern |
| 336 | #ifdef __cplusplus |
| 337 | #define __PYX_EXTERN_Cextern extern "C" |
| 338 | #else |
| 339 | #define __PYX_EXTERN_Cextern extern |
| 340 | #endif |
| 341 | #endif |
| 342 | |
| 343 | #if defined(WIN32) || defined(MS_WINDOWS) |
| 344 | #define _USE_MATH_DEFINES |
| 345 | #endif |
| 346 | #include <math.h> |
| 347 | #define __PYX_HAVE__xmmsvalue |
| 348 | #define __PYX_HAVE_API__xmmsvalue |
| 349 | #include "xmmsc/xmmsv.h" |
| 350 | #include "string.h" |
| 351 | #include "stdint.h" |
| 352 | #include "xmmsc/xmmsc_idnumbers.h" |
| 353 | #include "xmmsc/xmmsv_c2c.h" |
| 354 | #include "xmmsc/xmmsv_service.h" |
| 355 | #include "xmmsclient/xmmsclient.h" |
| 356 | #ifdef _OPENMP |
| 357 | #include <omp.h> |
| 358 | #endif /* _OPENMP */ |
| 359 | |
| 360 | #ifdef PYREX_WITHOUT_ASSERTIONS |
| 361 | #define CYTHON_WITHOUT_ASSERTIONS |
| 362 | #endif |
| 363 | |
| 364 | #ifndef CYTHON_UNUSED__attribute__ ((__unused__)) |
| 365 | # if defined(__GNUC__4) |
| 366 | # if !(defined(__cplusplus)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)) |
| 367 | # define CYTHON_UNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
| 368 | # else |
| 369 | # define CYTHON_UNUSED__attribute__ ((__unused__)) |
| 370 | # endif |
| 371 | # elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER)) |
| 372 | # define CYTHON_UNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
| 373 | # else |
| 374 | # define CYTHON_UNUSED__attribute__ ((__unused__)) |
| 375 | # endif |
| 376 | #endif |
| 377 | typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding; |
| 378 | const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/ |
| 379 | |
| 380 | #define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 0 |
| 381 | #define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT0 0 |
| 382 | #define __PYX_DEFAULT_STRING_ENCODING"" "" |
| 383 | #define __Pyx_PyObject_FromStringPyString_FromString __Pyx_PyBytes_FromStringPyString_FromString |
| 384 | #define __Pyx_PyObject_FromStringAndSizePyString_FromStringAndSize __Pyx_PyBytes_FromStringAndSizePyString_FromStringAndSize |
| 385 | #define __Pyx_fits_Py_ssize_t(v, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(v < (type )((Py_ssize_t)(((size_t)-1)>>1)) || v == (type)((Py_ssize_t )(((size_t)-1)>>1))), 1) && (!is_signed || __builtin_expect (!!(v > (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1) || v == (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(v < (type)((Py_ssize_t)(((size_t)- 1)>>1)) || v == (type)((Py_ssize_t)(((size_t)-1)>> 1))), 1))) ) ( \ |
| 386 | (sizeof(type) < sizeof(Py_ssize_t)) || \ |
| 387 | (sizeof(type) > sizeof(Py_ssize_t) && \ |
| 388 | likely(v < (type)PY_SSIZE_T_MAX || \__builtin_expect(!!(v < (type)((Py_ssize_t)(((size_t)-1)>> 1)) || v == (type)((Py_ssize_t)(((size_t)-1)>>1))), 1) |
| 389 | v == (type)PY_SSIZE_T_MAX)__builtin_expect(!!(v < (type)((Py_ssize_t)(((size_t)-1)>> 1)) || v == (type)((Py_ssize_t)(((size_t)-1)>>1))), 1) && \ |
| 390 | (!is_signed || likely(v > (type)PY_SSIZE_T_MIN || \__builtin_expect(!!(v > (type)(-((Py_ssize_t)(((size_t)-1) >>1))-1) || v == (type)(-((Py_ssize_t)(((size_t)-1)>> 1))-1)), 1) |
| 391 | v == (type)PY_SSIZE_T_MIN)__builtin_expect(!!(v > (type)(-((Py_ssize_t)(((size_t)-1) >>1))-1) || v == (type)(-((Py_ssize_t)(((size_t)-1)>> 1))-1)), 1))) || \ |
| 392 | (sizeof(type) == sizeof(Py_ssize_t) && \ |
| 393 | (is_signed || likely(v < (type)PY_SSIZE_T_MAX || \__builtin_expect(!!(v < (type)((Py_ssize_t)(((size_t)-1)>> 1)) || v == (type)((Py_ssize_t)(((size_t)-1)>>1))), 1) |
| 394 | v == (type)PY_SSIZE_T_MAX)__builtin_expect(!!(v < (type)((Py_ssize_t)(((size_t)-1)>> 1)) || v == (type)((Py_ssize_t)(((size_t)-1)>>1))), 1))) ) |
| 395 | static CYTHON_INLINE__inline__ char* __Pyx_PyObject_AsString(PyObject*); |
| 396 | static CYTHON_INLINE__inline__ char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length); |
| 397 | #define __Pyx_PyByteArray_FromString(s)PyByteArray_FromStringAndSize((const char*)s, strlen((const char *)s)) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s)) |
| 398 | #define __Pyx_PyByteArray_FromStringAndSize(s, l)PyByteArray_FromStringAndSize((const char*)s, l) PyByteArray_FromStringAndSize((const char*)s, l) |
| 399 | #define __Pyx_PyBytes_FromStringPyString_FromString PyBytes_FromStringPyString_FromString |
| 400 | #define __Pyx_PyBytes_FromStringAndSizePyString_FromStringAndSize PyBytes_FromStringAndSizePyString_FromStringAndSize |
| 401 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyUnicode_FromString(const char*); |
| 402 | #if PY_MAJOR_VERSION2 < 3 |
| 403 | #define __Pyx_PyStr_FromStringPyString_FromString __Pyx_PyBytes_FromStringPyString_FromString |
| 404 | #define __Pyx_PyStr_FromStringAndSizePyString_FromStringAndSize __Pyx_PyBytes_FromStringAndSizePyString_FromStringAndSize |
| 405 | #else |
| 406 | #define __Pyx_PyStr_FromStringPyString_FromString __Pyx_PyUnicode_FromString |
| 407 | #define __Pyx_PyStr_FromStringAndSizePyString_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize |
| 408 | #endif |
| 409 | #define __Pyx_PyObject_AsSString(s)((signed char*) __Pyx_PyObject_AsString(s)) ((signed char*) __Pyx_PyObject_AsString(s)) |
| 410 | #define __Pyx_PyObject_AsUString(s)((unsigned char*) __Pyx_PyObject_AsString(s)) ((unsigned char*) __Pyx_PyObject_AsString(s)) |
| 411 | #define __Pyx_PyObject_FromUString(s)PyString_FromString((const char*)s) __Pyx_PyObject_FromStringPyString_FromString((const char*)s) |
| 412 | #define __Pyx_PyBytes_FromUString(s)PyString_FromString((const char*)s) __Pyx_PyBytes_FromStringPyString_FromString((const char*)s) |
| 413 | #define __Pyx_PyByteArray_FromUString(s)PyByteArray_FromStringAndSize((const char*)(const char*)s, strlen ((const char*)(const char*)s)) __Pyx_PyByteArray_FromString((const char*)s)PyByteArray_FromStringAndSize((const char*)(const char*)s, strlen ((const char*)(const char*)s)) |
| 414 | #define __Pyx_PyStr_FromUString(s)PyString_FromString((const char*)s) __Pyx_PyStr_FromStringPyString_FromString((const char*)s) |
| 415 | #define __Pyx_PyUnicode_FromUString(s)__Pyx_PyUnicode_FromString((const char*)s) __Pyx_PyUnicode_FromString((const char*)s) |
| 416 | #if PY_MAJOR_VERSION2 < 3 |
| 417 | static CYTHON_INLINE__inline__ size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) |
| 418 | { |
| 419 | const Py_UNICODE *u_end = u; |
| 420 | while (*u_end++) ; |
| 421 | return u_end - u - 1; |
| 422 | } |
| 423 | #else |
| 424 | #define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen |
| 425 | #endif |
| 426 | #define __Pyx_PyUnicode_FromUnicode(u)PyUnicodeUCS4_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) PyUnicode_FromUnicodePyUnicodeUCS4_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) |
| 427 | #define __Pyx_PyUnicode_FromUnicodeAndLengthPyUnicodeUCS4_FromUnicode PyUnicode_FromUnicodePyUnicodeUCS4_FromUnicode |
| 428 | #define __Pyx_PyUnicode_AsUnicodePyUnicodeUCS4_AsUnicode PyUnicode_AsUnicodePyUnicodeUCS4_AsUnicode |
| 429 | #define __Pyx_Owned_Py_None(b)(( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++), (& _Py_NoneStruct)) (Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++), Py_None(&_Py_NoneStruct)) |
| 430 | #define __Pyx_PyBool_FromLong(b)((b) ? (( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))-> ob_refcnt++), ((PyObject *) &_Py_TrueStruct)) : (( ((PyObject *)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct))) ((b) ? (Py_INCREF(Py_True)( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt ++), Py_True((PyObject *) &_Py_TrueStruct)) : (Py_INCREF(Py_False)( ((PyObject*)(((PyObject *) &_Py_ZeroStruct)))->ob_refcnt ++), Py_False((PyObject *) &_Py_ZeroStruct))) |
| 431 | static CYTHON_INLINE__inline__ int __Pyx_PyObject_IsTrue(PyObject*); |
| 432 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyNumber_Int(PyObject* x); |
| 433 | static CYTHON_INLINE__inline__ Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*); |
| 434 | static CYTHON_INLINE__inline__ PyObject * __Pyx_PyInt_FromSize_t(size_t); |
| 435 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 436 | #define __pyx_PyFloat_AsDouble(x)(((((PyObject*)(x))->ob_type) == &PyFloat_Type) ? (((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x)) (PyFloat_CheckExact(x)((((PyObject*)(x))->ob_type) == &PyFloat_Type) ? PyFloat_AS_DOUBLE(x)(((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x)) |
| 437 | #else |
| 438 | #define __pyx_PyFloat_AsDouble(x)(((((PyObject*)(x))->ob_type) == &PyFloat_Type) ? (((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x)) PyFloat_AsDouble(x) |
| 439 | #endif |
| 440 | #define __pyx_PyFloat_AsFloat(x)((float) (((((PyObject*)(x))->ob_type) == &PyFloat_Type ) ? (((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x ))) ((float) __pyx_PyFloat_AsDouble(x)(((((PyObject*)(x))->ob_type) == &PyFloat_Type) ? (((PyFloatObject *)(x))->ob_fval) : PyFloat_AsDouble(x))) |
| 441 | #if PY_MAJOR_VERSION2 < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 |
| 442 | static int __Pyx_sys_getdefaultencoding_not_ascii; |
| 443 | static int __Pyx_init_sys_getdefaultencoding_params(void) { |
| 444 | PyObject* sys = NULL((void*)0); |
| 445 | PyObject* default_encoding = NULL((void*)0); |
| 446 | PyObject* ascii_chars_u = NULL((void*)0); |
| 447 | PyObject* ascii_chars_b = NULL((void*)0); |
| 448 | sys = PyImport_ImportModule("sys"); |
| 449 | if (sys == NULL((void*)0)) goto bad; |
| 450 | default_encoding = PyObject_CallMethod_PyObject_CallMethod_SizeT(sys, (char*) (const char*) "getdefaultencoding", NULL((void*)0)); |
| 451 | if (default_encoding == NULL((void*)0)) goto bad; |
| 452 | if (strcmp(PyBytes_AsStringPyString_AsString(default_encoding), "ascii") == 0) { |
| 453 | __Pyx_sys_getdefaultencoding_not_ascii = 0; |
| 454 | } else { |
| 455 | const char* default_encoding_c = PyBytes_AS_STRING(default_encoding)(((PyStringObject *)(default_encoding))->ob_sval); |
| 456 | char ascii_chars[128]; |
| 457 | int c; |
| 458 | for (c = 0; c < 128; c++) { |
| 459 | ascii_chars[c] = c; |
| 460 | } |
| 461 | __Pyx_sys_getdefaultencoding_not_ascii = 1; |
| 462 | ascii_chars_u = PyUnicode_DecodeASCIIPyUnicodeUCS4_DecodeASCII(ascii_chars, 128, NULL((void*)0)); |
| 463 | if (ascii_chars_u == NULL((void*)0)) goto bad; |
| 464 | ascii_chars_b = PyUnicode_AsEncodedStringPyUnicodeUCS4_AsEncodedString(ascii_chars_u, default_encoding_c, NULL((void*)0)); |
| 465 | if (ascii_chars_b == NULL((void*)0) || strncmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b)(((PyStringObject *)(ascii_chars_b))->ob_sval), 128) != 0) { |
| 466 | PyErr_Format( |
| 467 | PyExc_ValueError, |
| 468 | "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.", |
| 469 | default_encoding_c); |
| 470 | goto bad; |
| 471 | } |
| 472 | } |
| 473 | Py_XDECREF(sys)do { if ((sys) == ((void*)0)) ; else do { if ( --((PyObject*) (sys))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(sys)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(sys)))); } while (0); } while (0); |
| 474 | Py_XDECREF(default_encoding)do { if ((default_encoding) == ((void*)0)) ; else do { if ( -- ((PyObject*)(default_encoding))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(default_encoding)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(default_encoding)))); } while (0); } while (0); |
| 475 | Py_XDECREF(ascii_chars_u)do { if ((ascii_chars_u) == ((void*)0)) ; else do { if ( --(( PyObject*)(ascii_chars_u))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(ascii_chars_u)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ascii_chars_u)))); } while (0); } while (0); |
| 476 | Py_XDECREF(ascii_chars_b)do { if ((ascii_chars_b) == ((void*)0)) ; else do { if ( --(( PyObject*)(ascii_chars_b))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(ascii_chars_b)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ascii_chars_b)))); } while (0); } while (0); |
| 477 | return 0; |
| 478 | bad: |
| 479 | Py_XDECREF(sys)do { if ((sys) == ((void*)0)) ; else do { if ( --((PyObject*) (sys))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(sys)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(sys)))); } while (0); } while (0); |
| 480 | Py_XDECREF(default_encoding)do { if ((default_encoding) == ((void*)0)) ; else do { if ( -- ((PyObject*)(default_encoding))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(default_encoding)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(default_encoding)))); } while (0); } while (0); |
| 481 | Py_XDECREF(ascii_chars_u)do { if ((ascii_chars_u) == ((void*)0)) ; else do { if ( --(( PyObject*)(ascii_chars_u))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(ascii_chars_u)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ascii_chars_u)))); } while (0); } while (0); |
| 482 | Py_XDECREF(ascii_chars_b)do { if ((ascii_chars_b) == ((void*)0)) ; else do { if ( --(( PyObject*)(ascii_chars_b))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(ascii_chars_b)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ascii_chars_b)))); } while (0); } while (0); |
| 483 | return -1; |
| 484 | } |
| 485 | #endif |
| 486 | #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT0 && PY_MAJOR_VERSION2 >= 3 |
| 487 | #define __Pyx_PyUnicode_FromStringAndSize(c_str, size)PyUnicodeUCS4_Decode(c_str, size, "", ((void*)0)) PyUnicode_DecodeUTF8PyUnicodeUCS4_DecodeUTF8(c_str, size, NULL((void*)0)) |
| 488 | #else |
| 489 | #define __Pyx_PyUnicode_FromStringAndSize(c_str, size)PyUnicodeUCS4_Decode(c_str, size, "", ((void*)0)) PyUnicode_DecodePyUnicodeUCS4_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING"", NULL((void*)0)) |
| 490 | #if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT0 |
| 491 | static char* __PYX_DEFAULT_STRING_ENCODING""; |
| 492 | static int __Pyx_init_sys_getdefaultencoding_params(void) { |
| 493 | PyObject* sys = NULL((void*)0); |
| 494 | PyObject* default_encoding = NULL((void*)0); |
| 495 | char* default_encoding_c; |
| 496 | sys = PyImport_ImportModule("sys"); |
| 497 | if (sys == NULL((void*)0)) goto bad; |
| 498 | default_encoding = PyObject_CallMethod_PyObject_CallMethod_SizeT(sys, (char*) (const char*) "getdefaultencoding", NULL((void*)0)); |
| 499 | if (default_encoding == NULL((void*)0)) goto bad; |
| 500 | default_encoding_c = PyBytes_AS_STRING(default_encoding)(((PyStringObject *)(default_encoding))->ob_sval); |
| 501 | __PYX_DEFAULT_STRING_ENCODING"" = (char*) malloc(strlen(default_encoding_c)); |
| 502 | strcpy(__PYX_DEFAULT_STRING_ENCODING"", default_encoding_c); |
| 503 | Py_DECREF(sys)do { if ( --((PyObject*)(sys))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(sys)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(sys)))); } while (0); |
| 504 | Py_DECREF(default_encoding)do { if ( --((PyObject*)(default_encoding))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)(default_encoding)))-> ob_type)->tp_dealloc)((PyObject *)((PyObject *)(default_encoding )))); } while (0); |
| 505 | return 0; |
| 506 | bad: |
| 507 | Py_XDECREF(sys)do { if ((sys) == ((void*)0)) ; else do { if ( --((PyObject*) (sys))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(sys)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(sys)))); } while (0); } while (0); |
| 508 | Py_XDECREF(default_encoding)do { if ((default_encoding) == ((void*)0)) ; else do { if ( -- ((PyObject*)(default_encoding))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(default_encoding)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(default_encoding)))); } while (0); } while (0); |
| 509 | return -1; |
| 510 | } |
| 511 | #endif |
| 512 | #endif |
| 513 | |
| 514 | |
| 515 | /* Test for GCC > 2.95 */ |
| 516 | #if defined(__GNUC__4) && (__GNUC__4 > 2 || (__GNUC__4 == 2 && (__GNUC_MINOR__2 > 95))) |
| 517 | #define likely(x)__builtin_expect(!!(x), 1) __builtin_expect(!!(x), 1) |
| 518 | #define unlikely(x)__builtin_expect(!!(x), 0) __builtin_expect(!!(x), 0) |
| 519 | #else /* !__GNUC__ or GCC < 2.95 */ |
| 520 | #define likely(x)__builtin_expect(!!(x), 1) (x) |
| 521 | #define unlikely(x)__builtin_expect(!!(x), 0) (x) |
| 522 | #endif /* __GNUC__ */ |
| 523 | |
| 524 | static PyObject *__pyx_m; |
| 525 | static PyObject *__pyx_d; |
| 526 | static PyObject *__pyx_b; |
| 527 | static PyObject *__pyx_empty_tuple; |
| 528 | static PyObject *__pyx_empty_bytes; |
| 529 | static int __pyx_lineno; |
| 530 | static int __pyx_clineno = 0; |
| 531 | static const char * __pyx_cfilenm= __FILE__"src/clients/lib/python/xmmsvalue.c"; |
| 532 | static const char *__pyx_filename; |
| 533 | |
| 534 | |
| 535 | static const char *__pyx_f[] = { |
| 536 | "xmmsvalue.pyx", |
| 537 | "xmmsutils.pxd", |
| 538 | }; |
| 539 | |
| 540 | /*--- Type declarations ---*/ |
| 541 | struct __pyx_obj_9xmmsvalue_XmmsValue; |
| 542 | struct __pyx_obj_9xmmsvalue_XmmsValueC2C; |
| 543 | struct __pyx_obj_9xmmsvalue_XmmsListIter; |
| 544 | struct __pyx_obj_9xmmsvalue_XmmsDictIter; |
| 545 | struct __pyx_obj_9xmmsvalue_CollectionRef; |
| 546 | struct __pyx_obj_9xmmsvalue_Collection; |
| 547 | struct __pyx_obj_9xmmsvalue_CollectionAttributes; |
| 548 | struct __pyx_obj_9xmmsvalue_AttributesIterator; |
| 549 | struct __pyx_obj_9xmmsvalue_CollectionOperands; |
| 550 | struct __pyx_obj_9xmmsvalue_CollectionIDList; |
| 551 | struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__; |
| 552 | struct __pyx_opt_args_9xmmsvalue_9XmmsValue_set_value; |
| 553 | struct __pyx_opt_args_9xmmsvalue_9XmmsValue_copy; |
| 554 | struct __pyx_opt_args_9xmmsvalue_16CollectionIDList_pop; |
| 555 | |
| 556 | /* "xmmsvalue.pxd":75 |
| 557 | * cpdef clear(self) |
| 558 | * |
| 559 | * cdef enum AttributesIterType: # <<<<<<<<<<<<<< |
| 560 | * ITER_KEYS = 1 |
| 561 | * ITER_VALUES = 2 |
| 562 | */ |
| 563 | enum __pyx_t_9xmmsvalue_AttributesIterType { |
| 564 | __pyx_e_9xmmsvalue_ITER_KEYS = 1, |
| 565 | __pyx_e_9xmmsvalue_ITER_VALUES = 2, |
| 566 | __pyx_e_9xmmsvalue_ITER_ITEMS = 3, |
| 567 | __pyx_e_9xmmsvalue_ITER_XVALUES = 4, |
| 568 | __pyx_e_9xmmsvalue_ITER_XITEMS = 5 |
| 569 | }; |
| 570 | |
| 571 | /* "xmmsvalue.pxd":13 |
| 572 | * cdef int ispropdict |
| 573 | * |
| 574 | * cdef set_value(self, xmmsv_t *value, int ispropdict=*) # <<<<<<<<<<<<<< |
| 575 | * cpdef set_pyval(self, pyval) |
| 576 | * cpdef get_type(self) |
| 577 | */ |
| 578 | struct __pyx_opt_args_9xmmsvalue_9XmmsValue_set_value { |
| 579 | int __pyx_n; |
| 580 | int ispropdict; |
| 581 | }; |
| 582 | |
| 583 | /* "xmmsvalue.pxd":30 |
| 584 | * cpdef get_list_iter(self) |
| 585 | * cpdef value(self) |
| 586 | * cpdef copy(self, cls=*) # <<<<<<<<<<<<<< |
| 587 | * |
| 588 | * cdef class XmmsValueC2C(XmmsValue): |
| 589 | */ |
| 590 | struct __pyx_opt_args_9xmmsvalue_9XmmsValue_copy { |
| 591 | int __pyx_n; |
| 592 | PyObject *cls; |
| 593 | }; |
| 594 | |
| 595 | /* "xmmsvalue.pxd":105 |
| 596 | * cpdef insert(self, int v, int i) |
| 597 | * cpdef remove(self, int i) |
| 598 | * cpdef pop(self, int i = *) # <<<<<<<<<<<<<< |
| 599 | * cpdef clear(self) |
| 600 | * |
| 601 | */ |
| 602 | struct __pyx_opt_args_9xmmsvalue_16CollectionIDList_pop { |
| 603 | int __pyx_n; |
| 604 | int i; |
| 605 | }; |
| 606 | |
| 607 | /* "xmmsvalue.pxd":8 |
| 608 | * ctypedef struct xmmsv_list_iter_t |
| 609 | * |
| 610 | * cdef class XmmsValue: # <<<<<<<<<<<<<< |
| 611 | * cdef object sourcepref |
| 612 | * cdef xmmsv_t *val |
| 613 | */ |
| 614 | struct __pyx_obj_9xmmsvalue_XmmsValue { |
| 615 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
| 616 | struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *__pyx_vtab; |
| 617 | PyObject *sourcepref; |
| 618 | xmmsv_t *val; |
| 619 | int ispropdict; |
| 620 | }; |
| 621 | |
| 622 | |
| 623 | /* "xmmsvalue.pxd":32 |
| 624 | * cpdef copy(self, cls=*) |
| 625 | * |
| 626 | * cdef class XmmsValueC2C(XmmsValue): # <<<<<<<<<<<<<< |
| 627 | * pass |
| 628 | * |
| 629 | */ |
| 630 | struct __pyx_obj_9xmmsvalue_XmmsValueC2C { |
| 631 | struct __pyx_obj_9xmmsvalue_XmmsValue __pyx_base; |
| 632 | }; |
| 633 | |
| 634 | |
| 635 | /* "xmmsvalue.pxd":35 |
| 636 | * pass |
| 637 | * |
| 638 | * cdef class XmmsListIter: # <<<<<<<<<<<<<< |
| 639 | * cdef object sourcepref |
| 640 | * cdef xmmsv_t *val |
| 641 | */ |
| 642 | struct __pyx_obj_9xmmsvalue_XmmsListIter { |
| 643 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
| 644 | PyObject *sourcepref; |
| 645 | xmmsv_t *val; |
| 646 | xmmsv_list_iter_t *it; |
| 647 | }; |
| 648 | |
| 649 | |
| 650 | /* "xmmsvalue.pxd":40 |
| 651 | * cdef xmmsv_list_iter_t *it |
| 652 | * |
| 653 | * cdef class XmmsDictIter: # <<<<<<<<<<<<<< |
| 654 | * cdef object sourcepref |
| 655 | * cdef xmmsv_t *val |
| 656 | */ |
| 657 | struct __pyx_obj_9xmmsvalue_XmmsDictIter { |
| 658 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
| 659 | PyObject *sourcepref; |
| 660 | xmmsv_t *val; |
| 661 | xmmsv_dict_iter_t *it; |
| 662 | }; |
| 663 | |
| 664 | |
| 665 | /* "xmmsvalue.pxd":45 |
| 666 | * cdef xmmsv_dict_iter_t *it |
| 667 | * |
| 668 | * cdef class CollectionRef: # <<<<<<<<<<<<<< |
| 669 | * cdef xmmsv_t *coll |
| 670 | * |
| 671 | */ |
| 672 | struct __pyx_obj_9xmmsvalue_CollectionRef { |
| 673 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
| 674 | struct __pyx_vtabstruct_9xmmsvalue_CollectionRef *__pyx_vtab; |
| 675 | xmmsv_t *coll; |
| 676 | }; |
| 677 | |
| 678 | |
| 679 | /* "xmmsvalue.pxd":50 |
| 680 | * cdef set_collection(self, xmmsv_t *coll) |
| 681 | * |
| 682 | * cdef class Collection(CollectionRef): # <<<<<<<<<<<<<< |
| 683 | * cdef object _attributes |
| 684 | * cdef object _operands |
| 685 | */ |
| 686 | struct __pyx_obj_9xmmsvalue_Collection { |
| 687 | struct __pyx_obj_9xmmsvalue_CollectionRef __pyx_base; |
| 688 | PyObject *_attributes; |
| 689 | PyObject *_operands; |
| 690 | PyObject *_idlist; |
| 691 | }; |
| 692 | |
| 693 | |
| 694 | /* "xmmsvalue.pxd":61 |
| 695 | * cpdef copy(self) |
| 696 | * |
| 697 | * cdef class CollectionAttributes(CollectionRef): # <<<<<<<<<<<<<< |
| 698 | * cpdef get_dict(self) |
| 699 | * cpdef iterkeys(self) |
| 700 | */ |
| 701 | struct __pyx_obj_9xmmsvalue_CollectionAttributes { |
| 702 | struct __pyx_obj_9xmmsvalue_CollectionRef __pyx_base; |
| 703 | }; |
| 704 | |
| 705 | |
| 706 | /* "xmmsvalue.pxd":81 |
| 707 | * ITER_XVALUES = 4 |
| 708 | * ITER_XITEMS = 5 |
| 709 | * cdef class AttributesIterator: # <<<<<<<<<<<<<< |
| 710 | * cdef xmmsv_dict_iter_t *diter |
| 711 | * cdef int itertype |
| 712 | */ |
| 713 | struct __pyx_obj_9xmmsvalue_AttributesIterator { |
| 714 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
| 715 | struct __pyx_vtabstruct_9xmmsvalue_AttributesIterator *__pyx_vtab; |
| 716 | xmmsv_dict_iter_t *diter; |
| 717 | int itertype; |
| 718 | struct __pyx_obj_9xmmsvalue_CollectionAttributes *attr; |
| 719 | }; |
| 720 | |
| 721 | |
| 722 | /* "xmmsvalue.pxd":89 |
| 723 | * |
| 724 | * |
| 725 | * cdef class CollectionOperands(CollectionRef): # <<<<<<<<<<<<<< |
| 726 | * cdef object pylist |
| 727 | * cdef init_pylist(self) |
| 728 | */ |
| 729 | struct __pyx_obj_9xmmsvalue_CollectionOperands { |
| 730 | struct __pyx_obj_9xmmsvalue_CollectionRef __pyx_base; |
| 731 | PyObject *pylist; |
| 732 | }; |
| 733 | |
| 734 | |
| 735 | /* "xmmsvalue.pxd":100 |
| 736 | * |
| 737 | * |
| 738 | * cdef class CollectionIDList(CollectionRef): # <<<<<<<<<<<<<< |
| 739 | * cpdef append(self, int v) |
| 740 | * cpdef extend(self, v) |
| 741 | */ |
| 742 | struct __pyx_obj_9xmmsvalue_CollectionIDList { |
| 743 | struct __pyx_obj_9xmmsvalue_CollectionRef __pyx_base; |
| 744 | }; |
| 745 | |
| 746 | |
| 747 | /* "xmmsvalue.pyx":759 |
| 748 | * return xmmsv_coll_idlist_get_size(self.coll) |
| 749 | * |
| 750 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 751 | * """Iterate over ids""" |
| 752 | * cdef int x = -1 |
| 753 | */ |
| 754 | struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ { |
| 755 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
| 756 | int __pyx_v_i; |
| 757 | int __pyx_v_l; |
| 758 | struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self; |
| 759 | int __pyx_v_x; |
| 760 | }; |
| 761 | |
| 762 | |
| 763 | |
| 764 | /* "xmmsvalue.pyx":85 |
| 765 | * class XmmsError(Exception): pass |
| 766 | * |
| 767 | * cdef class XmmsValue: # <<<<<<<<<<<<<< |
| 768 | * #cdef object sourcepref |
| 769 | * #cdef xmmsv_t *val |
| 770 | */ |
| 771 | |
| 772 | struct __pyx_vtabstruct_9xmmsvalue_XmmsValue { |
| 773 | PyObject *(*set_value)(struct __pyx_obj_9xmmsvalue_XmmsValue *, xmmsv_t *, struct __pyx_opt_args_9xmmsvalue_9XmmsValue_set_value *__pyx_optional_args); |
| 774 | PyObject *(*set_pyval)(struct __pyx_obj_9xmmsvalue_XmmsValue *, PyObject *, int __pyx_skip_dispatch); |
| 775 | PyObject *(*get_type)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 776 | PyObject *(*iserror)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 777 | PyObject *(*is_error)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 778 | PyObject *(*get_error)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 779 | PyObject *(*get_int)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 780 | PyObject *(*get_float)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 781 | PyObject *(*get_string)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 782 | PyObject *(*get_bin)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 783 | PyObject *(*get_coll)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 784 | PyObject *(*get_dict)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 785 | PyObject *(*get_dict_iter)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 786 | PyObject *(*get_propdict)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 787 | PyObject *(*get_list)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 788 | PyObject *(*get_list_iter)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 789 | PyObject *(*value)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch); |
| 790 | PyObject *(*copy)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch, struct __pyx_opt_args_9xmmsvalue_9XmmsValue_copy *__pyx_optional_args); |
| 791 | }; |
| 792 | static struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *__pyx_vtabptr_9xmmsvalue_XmmsValue; |
| 793 | |
| 794 | |
| 795 | /* "xmmsvalue.pyx":290 |
| 796 | * |
| 797 | * |
| 798 | * cdef class XmmsValueC2C(XmmsValue): # <<<<<<<<<<<<<< |
| 799 | * property sender: |
| 800 | * def __get__(self): |
| 801 | */ |
| 802 | |
| 803 | struct __pyx_vtabstruct_9xmmsvalue_XmmsValueC2C { |
| 804 | struct __pyx_vtabstruct_9xmmsvalue_XmmsValue __pyx_base; |
| 805 | }; |
| 806 | static struct __pyx_vtabstruct_9xmmsvalue_XmmsValueC2C *__pyx_vtabptr_9xmmsvalue_XmmsValueC2C; |
| 807 | |
| 808 | |
| 809 | /* "xmmsvalue.pyx":409 |
| 810 | * |
| 811 | * |
| 812 | * cdef class CollectionRef: # <<<<<<<<<<<<<< |
| 813 | * def __cinit__(self): |
| 814 | * self.coll = NULL |
| 815 | */ |
| 816 | |
| 817 | struct __pyx_vtabstruct_9xmmsvalue_CollectionRef { |
| 818 | PyObject *(*set_collection)(struct __pyx_obj_9xmmsvalue_CollectionRef *, xmmsv_t *); |
| 819 | }; |
| 820 | static struct __pyx_vtabstruct_9xmmsvalue_CollectionRef *__pyx_vtabptr_9xmmsvalue_CollectionRef; |
| 821 | |
| 822 | |
| 823 | /* "xmmsvalue.pyx":428 |
| 824 | * XMMS_COLLECTION_TYPE_IDLIST, |
| 825 | * ) |
| 826 | * cdef class Collection(CollectionRef): # <<<<<<<<<<<<<< |
| 827 | * #cdef object _attributes |
| 828 | * #cdef object _operands |
| 829 | */ |
| 830 | |
| 831 | struct __pyx_vtabstruct_9xmmsvalue_Collection { |
| 832 | struct __pyx_vtabstruct_9xmmsvalue_CollectionRef __pyx_base; |
| 833 | PyObject *(*init_idlist)(struct __pyx_obj_9xmmsvalue_Collection *); |
| 834 | PyObject *(*init_attributes)(struct __pyx_obj_9xmmsvalue_Collection *); |
| 835 | PyObject *(*init_operands)(struct __pyx_obj_9xmmsvalue_Collection *); |
| 836 | PyObject *(*copy)(struct __pyx_obj_9xmmsvalue_Collection *, int __pyx_skip_dispatch); |
| 837 | }; |
| 838 | static struct __pyx_vtabstruct_9xmmsvalue_Collection *__pyx_vtabptr_9xmmsvalue_Collection; |
| 839 | |
| 840 | |
| 841 | /* "xmmsvalue.pyx":586 |
| 842 | * |
| 843 | * |
| 844 | * cdef class CollectionAttributes(CollectionRef): # <<<<<<<<<<<<<< |
| 845 | * def __init__(self, Collection c): |
| 846 | * if c.coll == NULL: |
| 847 | */ |
| 848 | |
| 849 | struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes { |
| 850 | struct __pyx_vtabstruct_9xmmsvalue_CollectionRef __pyx_base; |
| 851 | PyObject *(*get_dict)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 852 | PyObject *(*iterkeys)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 853 | PyObject *(*keys)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 854 | PyObject *(*itervalues)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 855 | PyObject *(*iterxvalues)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 856 | PyObject *(*values)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 857 | PyObject *(*xvalues)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 858 | PyObject *(*iteritems)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 859 | PyObject *(*iterxitems)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 860 | PyObject *(*items)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 861 | PyObject *(*xitems)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 862 | PyObject *(*clear)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch); |
| 863 | }; |
| 864 | static struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *__pyx_vtabptr_9xmmsvalue_CollectionAttributes; |
| 865 | |
| 866 | |
| 867 | /* "xmmsvalue.pyx":530 |
| 868 | * |
| 869 | * |
| 870 | * cdef class AttributesIterator: # <<<<<<<<<<<<<< |
| 871 | * #cdef xmmsv_dict_iter_t *diter |
| 872 | * #cdef int itertype |
| 873 | */ |
| 874 | |
| 875 | struct __pyx_vtabstruct_9xmmsvalue_AttributesIterator { |
| 876 | PyObject *(*reset)(struct __pyx_obj_9xmmsvalue_AttributesIterator *, int __pyx_skip_dispatch); |
| 877 | }; |
| 878 | static struct __pyx_vtabstruct_9xmmsvalue_AttributesIterator *__pyx_vtabptr_9xmmsvalue_AttributesIterator; |
| 879 | |
| 880 | |
| 881 | /* "xmmsvalue.pyx":689 |
| 882 | * |
| 883 | * |
| 884 | * cdef class CollectionOperands(CollectionRef): # <<<<<<<<<<<<<< |
| 885 | * #cdef object pylist |
| 886 | * |
| 887 | */ |
| 888 | |
| 889 | struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands { |
| 890 | struct __pyx_vtabstruct_9xmmsvalue_CollectionRef __pyx_base; |
| 891 | PyObject *(*init_pylist)(struct __pyx_obj_9xmmsvalue_CollectionOperands *); |
| 892 | PyObject *(*append)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, struct __pyx_obj_9xmmsvalue_Collection *, int __pyx_skip_dispatch); |
| 893 | PyObject *(*extend)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, PyObject *, int __pyx_skip_dispatch); |
| 894 | PyObject *(*remove)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, struct __pyx_obj_9xmmsvalue_Collection *, int __pyx_skip_dispatch); |
| 895 | PyObject *(*clear)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, int __pyx_skip_dispatch); |
| 896 | PyObject *(*list)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, int __pyx_skip_dispatch); |
| 897 | }; |
| 898 | static struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *__pyx_vtabptr_9xmmsvalue_CollectionOperands; |
| 899 | |
| 900 | |
| 901 | /* "xmmsvalue.pyx":750 |
| 902 | * |
| 903 | * |
| 904 | * cdef class CollectionIDList(CollectionRef): # <<<<<<<<<<<<<< |
| 905 | * def __init__(self, Collection c): |
| 906 | * if c.coll == NULL: |
| 907 | */ |
| 908 | |
| 909 | struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList { |
| 910 | struct __pyx_vtabstruct_9xmmsvalue_CollectionRef __pyx_base; |
| 911 | PyObject *(*append)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int, int __pyx_skip_dispatch); |
| 912 | PyObject *(*extend)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, PyObject *, int __pyx_skip_dispatch); |
| 913 | PyObject *(*insert)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int, int, int __pyx_skip_dispatch); |
| 914 | PyObject *(*remove)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int, int __pyx_skip_dispatch); |
| 915 | PyObject *(*pop)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int __pyx_skip_dispatch, struct __pyx_opt_args_9xmmsvalue_16CollectionIDList_pop *__pyx_optional_args); |
| 916 | PyObject *(*clear)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int __pyx_skip_dispatch); |
| 917 | }; |
| 918 | static struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *__pyx_vtabptr_9xmmsvalue_CollectionIDList; |
| 919 | #ifndef CYTHON_REFNANNY0 |
| 920 | #define CYTHON_REFNANNY0 0 |
| 921 | #endif |
| 922 | #if CYTHON_REFNANNY0 |
| 923 | typedef struct { |
| 924 | void (*INCREF)(void*, PyObject*, int); |
| 925 | void (*DECREF)(void*, PyObject*, int); |
| 926 | void (*GOTREF)(void*, PyObject*, int); |
| 927 | void (*GIVEREF)(void*, PyObject*, int); |
| 928 | void* (*SetupContext)(const char*, int, const char*); |
| 929 | void (*FinishContext)(void**); |
| 930 | } __Pyx_RefNannyAPIStruct; |
| 931 | static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL((void*)0); |
| 932 | static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/ |
| 933 | #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL((void*)0); |
| 934 | #ifdef WITH_THREAD1 |
| 935 | #define __Pyx_RefNannySetupContext(name, acquire_gil) \ |
| 936 | if (acquire_gil) { \ |
| 937 | PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure(); \ |
| 938 | __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__938, __FILE__"src/clients/lib/python/xmmsvalue.c"); \ |
| 939 | PyGILState_Release(__pyx_gilstate_save); \ |
| 940 | } else { \ |
| 941 | __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__941, __FILE__"src/clients/lib/python/xmmsvalue.c"); \ |
| 942 | } |
| 943 | #else |
| 944 | #define __Pyx_RefNannySetupContext(name, acquire_gil) \ |
| 945 | __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__945, __FILE__"src/clients/lib/python/xmmsvalue.c") |
| 946 | #endif |
| 947 | #define __Pyx_RefNannyFinishContext() \ |
| 948 | __Pyx_RefNanny->FinishContext(&__pyx_refnanny) |
| 949 | #define __Pyx_INCREF(r)( ((PyObject*)(r))->ob_refcnt++) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__949) |
| 950 | #define __Pyx_DECREF(r)do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(r)))); } while (0) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__950) |
| 951 | #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__951) |
| 952 | #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__952) |
| 953 | #define __Pyx_XINCREF(r)do { if ((r) == ((void*)0)) ; else ( ((PyObject*)(r))->ob_refcnt ++); } while (0) do { if((r) != NULL((void*)0)) {__Pyx_INCREF(r)( ((PyObject*)(r))->ob_refcnt++); }} while(0) |
| 954 | #define __Pyx_XDECREF(r)do { if ((r) == ((void*)0)) ; else do { if ( --((PyObject*)(r ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r )))); } while (0); } while (0) do { if((r) != NULL((void*)0)) {__Pyx_DECREF(r)do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(r)))); } while (0); }} while(0) |
| 955 | #define __Pyx_XGOTREF(r) do { if((r) != NULL((void*)0)) {__Pyx_GOTREF(r); }} while(0) |
| 956 | #define __Pyx_XGIVEREF(r) do { if((r) != NULL((void*)0)) {__Pyx_GIVEREF(r);}} while(0) |
| 957 | #else |
| 958 | #define __Pyx_RefNannyDeclarations |
| 959 | #define __Pyx_RefNannySetupContext(name, acquire_gil) |
| 960 | #define __Pyx_RefNannyFinishContext() |
| 961 | #define __Pyx_INCREF(r)( ((PyObject*)(r))->ob_refcnt++) Py_INCREF(r)( ((PyObject*)(r))->ob_refcnt++) |
| 962 | #define __Pyx_DECREF(r)do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(r)))); } while (0) Py_DECREF(r)do { if ( --((PyObject*)(r))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(r)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(r)))); } while (0) |
| 963 | #define __Pyx_GOTREF(r) |
| 964 | #define __Pyx_GIVEREF(r) |
| 965 | #define __Pyx_XINCREF(r)do { if ((r) == ((void*)0)) ; else ( ((PyObject*)(r))->ob_refcnt ++); } while (0) Py_XINCREF(r)do { if ((r) == ((void*)0)) ; else ( ((PyObject*)(r))->ob_refcnt ++); } while (0) |
| 966 | #define __Pyx_XDECREF(r)do { if ((r) == ((void*)0)) ; else do { if ( --((PyObject*)(r ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r )))); } while (0); } while (0) Py_XDECREF(r)do { if ((r) == ((void*)0)) ; else do { if ( --((PyObject*)(r ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(r )))); } while (0); } while (0) |
| 967 | #define __Pyx_XGOTREF(r) |
| 968 | #define __Pyx_XGIVEREF(r) |
| 969 | #endif /* CYTHON_REFNANNY */ |
| 970 | #define __Pyx_XDECREF_SET(r, v)do { PyObject *tmp = (PyObject *) r; r = v; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while ( 0); } while (0); } while (0) do { \ |
| 971 | PyObject *tmp = (PyObject *) r; \ |
| 972 | r = v; __Pyx_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); \ |
| 973 | } while (0) |
| 974 | #define __Pyx_DECREF_SET(r, v)do { PyObject *tmp = (PyObject *) r; r = v; do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0) do { \ |
| 975 | PyObject *tmp = (PyObject *) r; \ |
| 976 | r = v; __Pyx_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); \ |
| 977 | } while (0) |
| 978 | #define __Pyx_CLEAR(r)do { PyObject* tmp = ((PyObject*)(r)); r = ((void*)0); do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0);} while(0) do { PyObject* tmp = ((PyObject*)(r)); r = NULL((void*)0); __Pyx_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0);} while(0) |
| 979 | #define __Pyx_XCLEAR(r)do { if((r) != ((void*)0)) {PyObject* tmp = ((PyObject*)(r)); r = ((void*)0); do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while ( 0);}} while(0) do { if((r) != NULL((void*)0)) {PyObject* tmp = ((PyObject*)(r)); r = NULL((void*)0); __Pyx_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0);}} while(0) |
| 980 | |
| 981 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 982 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { |
| 983 | PyTypeObject* tp = Py_TYPE(obj)(((PyObject*)(obj))->ob_type); |
| 984 | if (likely(tp->tp_getattro)__builtin_expect(!!(tp->tp_getattro), 1)) |
| 985 | return tp->tp_getattro(obj, attr_name); |
| 986 | #if PY_MAJOR_VERSION2 < 3 |
| 987 | if (likely(tp->tp_getattr)__builtin_expect(!!(tp->tp_getattr), 1)) |
| 988 | return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)(((PyStringObject *)(attr_name))->ob_sval)); |
| 989 | #endif |
| 990 | return PyObject_GetAttr(obj, attr_name); |
| 991 | } |
| 992 | #else |
| 993 | #define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n) |
| 994 | #endif |
| 995 | |
| 996 | static PyObject *__Pyx_GetBuiltinName(PyObject *name); /*proto*/ |
| 997 | |
| 998 | static CYTHON_INLINE__inline__ int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); /*proto*/ |
| 999 | |
| 1000 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 1001 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw); /*proto*/ |
| 1002 | #else |
| 1003 | #define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw) |
| 1004 | #endif |
| 1005 | |
| 1006 | static CYTHON_INLINE__inline__ void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ |
| 1007 | static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ |
| 1008 | |
| 1009 | static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ |
| 1010 | |
| 1011 | static CYTHON_INLINE__inline__ void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/ |
| 1012 | static CYTHON_INLINE__inline__ void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ |
| 1013 | |
| 1014 | static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); /*proto*/ |
| 1015 | |
| 1016 | static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact, |
| 1017 | Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/ |
| 1018 | |
| 1019 | static CYTHON_INLINE__inline__ int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed); /*proto*/ |
| 1020 | |
| 1021 | static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); /*proto*/ |
| 1022 | |
| 1023 | static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[], \ |
| 1024 | PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args, \ |
| 1025 | const char* function_name); /*proto*/ |
| 1026 | |
| 1027 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetModuleGlobalName(PyObject *name); /*proto*/ |
| 1028 | |
| 1029 | static CYTHON_INLINE__inline__ void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected); |
| 1030 | |
| 1031 | static CYTHON_INLINE__inline__ void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); |
| 1032 | |
| 1033 | static CYTHON_INLINE__inline__ int __Pyx_IterFinish(void); /*proto*/ |
| 1034 | |
| 1035 | static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); /*proto*/ |
| 1036 | |
| 1037 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 1038 | static CYTHON_INLINE__inline__ int __Pyx_ListComp_Append(PyObject* list, PyObject* x) { |
| 1039 | PyListObject* L = (PyListObject*) list; |
| 1040 | Py_ssize_t len = Py_SIZE(list)(((PyVarObject*)(list))->ob_size); |
| 1041 | if (likely(L->allocated > len)__builtin_expect(!!(L->allocated > len), 1)) { |
| 1042 | Py_INCREF(x)( ((PyObject*)(x))->ob_refcnt++); |
| 1043 | PyList_SET_ITEM(list, len, x)(((PyListObject *)(list))->ob_item[len] = (x)); |
| 1044 | Py_SIZE(list)(((PyVarObject*)(list))->ob_size) = len+1; |
| 1045 | return 0; |
| 1046 | } |
| 1047 | return PyList_Append(list, x); |
| 1048 | } |
| 1049 | #else |
| 1050 | #define __Pyx_ListComp_Append(L,x) PyList_Append(L,x) |
| 1051 | #endif |
| 1052 | |
| 1053 | static CYTHON_INLINE__inline__ int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, |
| 1054 | const char *name, int exact); /*proto*/ |
| 1055 | |
| 1056 | static CYTHON_INLINE__inline__ int __Pyx_PySequence_Contains(PyObject* item, PyObject* seq, int eq) { |
| 1057 | int result = PySequence_Contains(seq, item); |
| 1058 | return unlikely(result < 0)__builtin_expect(!!(result < 0), 0) ? result : (result == (eq == Py_EQ2)); |
| 1059 | } |
| 1060 | |
| 1061 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 1062 | static CYTHON_INLINE__inline__ int __Pyx_PyList_Append(PyObject* list, PyObject* x) { |
| 1063 | PyListObject* L = (PyListObject*) list; |
| 1064 | Py_ssize_t len = Py_SIZE(list)(((PyVarObject*)(list))->ob_size); |
| 1065 | if (likely(L->allocated > len)__builtin_expect(!!(L->allocated > len), 1) & likely(len > (L->allocated >> 1))__builtin_expect(!!(len > (L->allocated >> 1)), 1 )) { |
| 1066 | Py_INCREF(x)( ((PyObject*)(x))->ob_refcnt++); |
| 1067 | PyList_SET_ITEM(list, len, x)(((PyListObject *)(list))->ob_item[len] = (x)); |
| 1068 | Py_SIZE(list)(((PyVarObject*)(list))->ob_size) = len+1; |
| 1069 | return 0; |
| 1070 | } |
| 1071 | return PyList_Append(list, x); |
| 1072 | } |
| 1073 | #else |
| 1074 | #define __Pyx_PyList_Append(L,x) PyList_Append(L,x) |
| 1075 | #endif |
| 1076 | |
| 1077 | #if PY_MAJOR_VERSION2 < 3 |
| 1078 | #define __Pyx_PyString_Join_PyString_Join __Pyx_PyBytes_Join_PyString_Join |
| 1079 | #define __Pyx_PyBaseString_Join(s, v)(((((PyObject*)(s))->ob_type) == &PyUnicode_Type) ? PyUnicodeUCS4_Join (s, v) : _PyString_Join(s, v)) (PyUnicode_CheckExact(s)((((PyObject*)(s))->ob_type) == &PyUnicode_Type) ? PyUnicode_JoinPyUnicodeUCS4_Join(s, v) : __Pyx_PyBytes_Join_PyString_Join(s, v)) |
| 1080 | #else |
| 1081 | #define __Pyx_PyString_Join_PyString_Join PyUnicode_JoinPyUnicodeUCS4_Join |
| 1082 | #define __Pyx_PyBaseString_Join PyUnicode_JoinPyUnicodeUCS4_Join |
| 1083 | #endif |
| 1084 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 1085 | #if PY_MAJOR_VERSION2 < 3 |
| 1086 | #define __Pyx_PyBytes_Join_PyString_Join _PyString_Join |
| 1087 | #else |
| 1088 | #define __Pyx_PyBytes_Join_PyString_Join _PyBytes_Join_PyString_Join |
| 1089 | #endif |
| 1090 | #else |
| 1091 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyBytes_Join_PyString_Join(PyObject* sep, PyObject* values); /*proto*/ |
| 1092 | #endif |
| 1093 | |
| 1094 | static PyObject* __Pyx_PyObject_CallMethodTuple(PyObject* obj, PyObject* method_name, PyObject* args) { |
| 1095 | PyObject *method, *result = NULL((void*)0); |
| 1096 | if (unlikely(!args)__builtin_expect(!!(!args), 0)) return NULL((void*)0); |
| 1097 | method = __Pyx_PyObject_GetAttrStr(obj, method_name); |
| 1098 | if (unlikely(!method)__builtin_expect(!!(!method), 0)) goto bad; |
| 1099 | result = __Pyx_PyObject_Call(method, args, NULL((void*)0)); |
| 1100 | Py_DECREF(method)do { if ( --((PyObject*)(method))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(method)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(method)))); } while (0); |
| 1101 | bad: |
| 1102 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
| 1103 | return result; |
| 1104 | } |
| 1105 | #define __Pyx_PyObject_CallMethod3(obj, name, arg1, arg2, arg3)__Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(3, arg1 , arg2, arg3)) \ |
| 1106 | __Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(3, arg1, arg2, arg3)) |
| 1107 | #define __Pyx_PyObject_CallMethod2(obj, name, arg1, arg2)__Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(2, arg1 , arg2)) \ |
| 1108 | __Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(2, arg1, arg2)) |
| 1109 | #define __Pyx_PyObject_CallMethod1(obj, name, arg1)__Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(1, arg1 )) \ |
| 1110 | __Pyx_PyObject_CallMethodTuple(obj, name, PyTuple_Pack(1, arg1)) |
| 1111 | #define __Pyx_PyObject_CallMethod0(obj, name)__Pyx_PyObject_CallMethodTuple(obj, name, (( ((PyObject*)(__pyx_empty_tuple ))->ob_refcnt++), __pyx_empty_tuple)) \ |
| 1112 | __Pyx_PyObject_CallMethodTuple(obj, name, (Py_INCREF(__pyx_empty_tuple)( ((PyObject*)(__pyx_empty_tuple))->ob_refcnt++), __pyx_empty_tuple)) |
| 1113 | |
| 1114 | static CYTHON_INLINE__inline__ void __Pyx_RaiseNoneNotIterableError(void); |
| 1115 | |
| 1116 | static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index); /*proto*/ |
| 1117 | |
| 1118 | static CYTHON_INLINE__inline__ int __Pyx_unpack_tuple2(PyObject* tuple, PyObject** value1, PyObject** value2, |
| 1119 | int is_tuple, int has_known_size, int decref_tuple); |
| 1120 | |
| 1121 | static CYTHON_INLINE__inline__ PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name, |
| 1122 | Py_ssize_t* p_orig_length, int* p_is_dict); |
| 1123 | static CYTHON_INLINE__inline__ int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos, |
| 1124 | PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict); |
| 1125 | |
| 1126 | static CYTHON_INLINE__inline__ int __Pyx_PyObject_Append(PyObject* L, PyObject* x); /*proto*/ |
| 1127 | |
| 1128 | #define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )((Py_ssize_t)(((size_t)-1)>>1)) || i == (type)((Py_ssize_t )(((size_t)-1)>>1))), 1) && (!is_signed || __builtin_expect (!!(i > (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1) || i == (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)((Py_ssize_t)(((size_t)- 1)>>1)) || i == (type)((Py_ssize_t)(((size_t)-1)>> 1))), 1))) ) ? __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list , wraparound, boundscheck) : (is_list ? (PyErr_SetString(PyExc_IndexError , "list index out of range"), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic (o, to_py_func(i)))) \ |
| 1129 | (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )((Py_ssize_t)(((size_t)-1)>>1)) || i == (type)((Py_ssize_t )(((size_t)-1)>>1))), 1) && (!is_signed || __builtin_expect (!!(i > (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1) || i == (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)((Py_ssize_t)(((size_t)- 1)>>1)) || i == (type)((Py_ssize_t)(((size_t)-1)>> 1))), 1))) ) ? \ |
| 1130 | __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) : \ |
| 1131 | (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL((void*)0)) : \ |
| 1132 | __Pyx_GetItemInt_Generic(o, to_py_func(i)))) |
| 1133 | #define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )((Py_ssize_t)(((size_t)-1)>>1)) || i == (type)((Py_ssize_t )(((size_t)-1)>>1))), 1) && (!is_signed || __builtin_expect (!!(i > (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1) || i == (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)((Py_ssize_t)(((size_t)- 1)>>1)) || i == (type)((Py_ssize_t)(((size_t)-1)>> 1))), 1))) ) ? __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound , boundscheck) : (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0))) \ |
| 1134 | (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )((Py_ssize_t)(((size_t)-1)>>1)) || i == (type)((Py_ssize_t )(((size_t)-1)>>1))), 1) && (!is_signed || __builtin_expect (!!(i > (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1) || i == (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)((Py_ssize_t)(((size_t)- 1)>>1)) || i == (type)((Py_ssize_t)(((size_t)-1)>> 1))), 1))) ) ? \ |
| 1135 | __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) : \ |
| 1136 | (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL((void*)0))) |
| 1137 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, |
| 1138 | int wraparound, int boundscheck); |
| 1139 | #define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)(( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )((Py_ssize_t)(((size_t)-1)>>1)) || i == (type)((Py_ssize_t )(((size_t)-1)>>1))), 1) && (!is_signed || __builtin_expect (!!(i > (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1) || i == (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)((Py_ssize_t)(((size_t)- 1)>>1)) || i == (type)((Py_ssize_t)(((size_t)-1)>> 1))), 1))) ) ? __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound , boundscheck) : (PyErr_SetString(PyExc_IndexError, "tuple index out of range" ), (PyObject*)((void*)0))) \ |
| 1140 | (__Pyx_fits_Py_ssize_t(i, type, is_signed)( (sizeof(type) < sizeof(Py_ssize_t)) || (sizeof(type) > sizeof(Py_ssize_t) && __builtin_expect(!!(i < (type )((Py_ssize_t)(((size_t)-1)>>1)) || i == (type)((Py_ssize_t )(((size_t)-1)>>1))), 1) && (!is_signed || __builtin_expect (!!(i > (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1) || i == (type)(-((Py_ssize_t)(((size_t)-1)>>1))-1)), 1))) || (sizeof(type) == sizeof(Py_ssize_t) && (is_signed || __builtin_expect(!!(i < (type)((Py_ssize_t)(((size_t)- 1)>>1)) || i == (type)((Py_ssize_t)(((size_t)-1)>> 1))), 1))) ) ? \ |
| 1141 | __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) : \ |
| 1142 | (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL((void*)0))) |
| 1143 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, |
| 1144 | int wraparound, int boundscheck); |
| 1145 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); |
| 1146 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, |
| 1147 | int is_list, int wraparound, int boundscheck); |
| 1148 | |
| 1149 | #if PY_MAJOR_VERSION2 >= 3 |
| 1150 | static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key)PyObject_GetItem(PyObject *d, PyObject* key) { |
| 1151 | PyObject *value; |
| 1152 | value = PyDict_GetItemWithError(d, key); |
| 1153 | if (unlikely(!value)__builtin_expect(!!(!value), 0)) { |
| 1154 | if (!PyErr_Occurred()) { |
| 1155 | PyObject* args = PyTuple_Pack(1, key); |
| 1156 | if (likely(args)__builtin_expect(!!(args), 1)) |
| 1157 | PyErr_SetObject(PyExc_KeyError, args); |
| 1158 | Py_XDECREF(args)do { if ((args) == ((void*)0)) ; else do { if ( --((PyObject* )(args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(args)))); } while (0); } while (0); |
| 1159 | } |
| 1160 | return NULL((void*)0); |
| 1161 | } |
| 1162 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 1163 | return value; |
| 1164 | } |
| 1165 | #else |
| 1166 | #define __Pyx_PyDict_GetItem(d, key)PyObject_GetItem(d, key) PyObject_GetItem(d, key) |
| 1167 | #endif |
| 1168 | |
| 1169 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyObject_GetSlice( |
| 1170 | PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, |
| 1171 | PyObject** py_start, PyObject** py_stop, PyObject** py_slice, |
| 1172 | int has_cstart, int has_cstop, int wraparound); |
| 1173 | |
| 1174 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 1175 | #define __Pyx_PyObject_DelAttrStr(o,n)__Pyx_PyObject_SetAttrStr(o,n,((void*)0)) __Pyx_PyObject_SetAttrStr(o,n,NULL((void*)0)) |
| 1176 | static CYTHON_INLINE__inline__ int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { |
| 1177 | PyTypeObject* tp = Py_TYPE(obj)(((PyObject*)(obj))->ob_type); |
| 1178 | if (likely(tp->tp_setattro)__builtin_expect(!!(tp->tp_setattro), 1)) |
| 1179 | return tp->tp_setattro(obj, attr_name, value); |
| 1180 | #if PY_MAJOR_VERSION2 < 3 |
| 1181 | if (likely(tp->tp_setattr)__builtin_expect(!!(tp->tp_setattr), 1)) |
| 1182 | return tp->tp_setattr(obj, PyString_AS_STRING(attr_name)(((PyStringObject *)(attr_name))->ob_sval), value); |
| 1183 | #endif |
| 1184 | return PyObject_SetAttr(obj, attr_name, value); |
| 1185 | } |
| 1186 | #else |
| 1187 | #define __Pyx_PyObject_DelAttrStr(o,n)__Pyx_PyObject_SetAttrStr(o,n,((void*)0)) PyObject_DelAttr(o,n)PyObject_SetAttr((o),(n),((void*)0)) |
| 1188 | #define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) |
| 1189 | #endif |
| 1190 | |
| 1191 | static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value); /*proto*/ |
| 1192 | |
| 1193 | static CYTHON_INLINE__inline__ int __Pyx_PyDict_Contains(PyObject* item, PyObject* dict, int eq) { |
| 1194 | int result = PyDict_Contains(dict, item); |
| 1195 | return unlikely(result < 0)__builtin_expect(!!(result < 0), 0) ? result : (result == (eq == Py_EQ2)); |
| 1196 | } |
| 1197 | |
| 1198 | #include <string.h> |
| 1199 | |
| 1200 | static CYTHON_INLINE__inline__ int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); /*proto*/ |
| 1201 | |
| 1202 | static CYTHON_INLINE__inline__ int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); /*proto*/ |
| 1203 | |
| 1204 | #if PY_MAJOR_VERSION2 >= 3 |
| 1205 | #define __Pyx_PyString_Equals__Pyx_PyBytes_Equals __Pyx_PyUnicode_Equals |
| 1206 | #else |
| 1207 | #define __Pyx_PyString_Equals__Pyx_PyBytes_Equals __Pyx_PyBytes_Equals |
| 1208 | #endif |
| 1209 | |
| 1210 | static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse); |
| 1211 | |
| 1212 | static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_dealloc); |
| 1213 | |
| 1214 | static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/ |
| 1215 | |
| 1216 | static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); /*proto*/ |
| 1217 | |
| 1218 | static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); |
| 1219 | |
| 1220 | static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, |
| 1221 | PyObject *mkw, PyObject *modname, PyObject *doc); /*proto*/ |
| 1222 | static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, |
| 1223 | PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); /*proto*/ |
| 1224 | |
| 1225 | static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); |
| 1226 | |
| 1227 | #define __Pyx_CyFunction_USED1 1 |
| 1228 | #include <structmember.h> |
| 1229 | #define __Pyx_CYFUNCTION_STATICMETHOD0x01 0x01 |
| 1230 | #define __Pyx_CYFUNCTION_CLASSMETHOD0x02 0x02 |
| 1231 | #define __Pyx_CYFUNCTION_CCLASS0x04 0x04 |
| 1232 | #define __Pyx_CyFunction_GetClosure(f)(((__pyx_CyFunctionObject *) (f))->func_closure) \ |
| 1233 | (((__pyx_CyFunctionObject *) (f))->func_closure) |
| 1234 | #define __Pyx_CyFunction_GetClassObj(f)(((__pyx_CyFunctionObject *) (f))->func_classobj) \ |
| 1235 | (((__pyx_CyFunctionObject *) (f))->func_classobj) |
| 1236 | #define __Pyx_CyFunction_Defaults(type, f)((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) \ |
| 1237 | ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) |
| 1238 | #define __Pyx_CyFunction_SetDefaultsGetter(f, g)((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) \ |
| 1239 | ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) |
| 1240 | typedef struct { |
| 1241 | PyCFunctionObject func; |
| 1242 | PyObject *func_dict; |
| 1243 | PyObject *func_weakreflist; |
| 1244 | PyObject *func_name; |
| 1245 | PyObject *func_qualname; |
| 1246 | PyObject *func_doc; |
| 1247 | PyObject *func_globals; |
| 1248 | PyObject *func_code; |
| 1249 | PyObject *func_closure; |
| 1250 | PyObject *func_classobj; /* No-args super() class cell */ |
| 1251 | void *defaults; |
| 1252 | int defaults_pyobjects; |
| 1253 | int flags; |
| 1254 | PyObject *defaults_tuple; /* Const defaults tuple */ |
| 1255 | PyObject *defaults_kwdict; /* Const kwonly defaults dict */ |
| 1256 | PyObject *(*defaults_getter)(PyObject *); |
| 1257 | PyObject *func_annotations; /* function annotations dict */ |
| 1258 | } __pyx_CyFunctionObject; |
| 1259 | static PyTypeObject *__pyx_CyFunctionType = 0; |
| 1260 | #define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)__Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname , self, module, globals, code) \ |
| 1261 | __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) |
| 1262 | static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, |
| 1263 | int flags, PyObject* qualname, |
| 1264 | PyObject *self, |
| 1265 | PyObject *module, PyObject *globals, |
| 1266 | PyObject* code); |
| 1267 | static CYTHON_INLINE__inline__ void *__Pyx_CyFunction_InitDefaults(PyObject *m, |
| 1268 | size_t size, |
| 1269 | int pyobjects); |
| 1270 | static CYTHON_INLINE__inline__ void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, |
| 1271 | PyObject *tuple); |
| 1272 | static CYTHON_INLINE__inline__ void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, |
| 1273 | PyObject *dict); |
| 1274 | static CYTHON_INLINE__inline__ void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, |
| 1275 | PyObject *dict); |
| 1276 | static int __Pyx_CyFunction_init(void); |
| 1277 | |
| 1278 | static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); /*proto*/ |
| 1279 | |
| 1280 | static CYTHON_INLINE__inline__ int __Pyx_PyInt_As_int(PyObject *); |
| 1281 | |
| 1282 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyInt_From_int64_t(int64_t value); |
| 1283 | |
| 1284 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyInt_From_int(int value); |
| 1285 | |
| 1286 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyInt_From_long(long value); |
| 1287 | |
| 1288 | static CYTHON_INLINE__inline__ long __Pyx_PyInt_As_long(PyObject *); |
| 1289 | |
| 1290 | static CYTHON_INLINE__inline__ void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb); /*proto*/ |
| 1291 | |
| 1292 | #define __Pyx_Generator_USED |
| 1293 | #include <structmember.h> |
| 1294 | #include <frameobject.h> |
| 1295 | typedef PyObject *(*__pyx_generator_body_t)(PyObject *, PyObject *); |
| 1296 | typedef struct { |
| 1297 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
| 1298 | __pyx_generator_body_t body; |
| 1299 | PyObject *closure; |
| 1300 | PyObject *exc_type; |
| 1301 | PyObject *exc_value; |
| 1302 | PyObject *exc_traceback; |
| 1303 | PyObject *gi_weakreflist; |
| 1304 | PyObject *classobj; |
| 1305 | PyObject *yieldfrom; |
| 1306 | int resume_label; |
| 1307 | char is_running; |
| 1308 | } __pyx_GeneratorObject; |
| 1309 | static __pyx_GeneratorObject *__Pyx_Generator_New(__pyx_generator_body_t body, |
| 1310 | PyObject *closure); |
| 1311 | static int __pyx_Generator_init(void); |
| 1312 | static int __Pyx_Generator_clear(PyObject* self); |
| 1313 | #if 1 || PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030300B0 |
| 1314 | static int __Pyx_PyGen_FetchStopIterationValue(PyObject **pvalue); |
| 1315 | #else |
| 1316 | #define __Pyx_PyGen_FetchStopIterationValue(pvalue) PyGen_FetchStopIterationValue(pvalue) |
| 1317 | #endif |
| 1318 | |
| 1319 | static int __Pyx_check_binary_version(void); |
| 1320 | |
| 1321 | static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig); /*proto*/ |
| 1322 | |
| 1323 | typedef struct { |
| 1324 | int code_line; |
| 1325 | PyCodeObject* code_object; |
| 1326 | } __Pyx_CodeObjectCacheEntry; |
| 1327 | struct __Pyx_CodeObjectCache { |
| 1328 | int count; |
| 1329 | int max_count; |
| 1330 | __Pyx_CodeObjectCacheEntry* entries; |
| 1331 | }; |
| 1332 | static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL((void*)0)}; |
| 1333 | static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line); |
| 1334 | static PyCodeObject *__pyx_find_code_object(int code_line); |
| 1335 | static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object); |
| 1336 | |
| 1337 | static void __Pyx_AddTraceback(const char *funcname, int c_line, |
| 1338 | int py_line, const char *filename); /*proto*/ |
| 1339 | |
| 1340 | static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/ |
| 1341 | |
| 1342 | |
| 1343 | /* Module declarations from 'cpython.unicode' */ |
| 1344 | |
| 1345 | /* Module declarations from 'libc.string' */ |
| 1346 | |
| 1347 | /* Module declarations from 'xmmsutils' */ |
| 1348 | static CYTHON_INLINE__inline__ PyObject *__pyx_f_9xmmsutils_to_unicode(const char *); /*proto*/ |
| 1349 | static CYTHON_INLINE__inline__ PyObject *__pyx_f_9xmmsutils_from_unicode(PyObject *); /*proto*/ |
| 1350 | |
| 1351 | /* Module declarations from 'cpython.ref' */ |
| 1352 | |
| 1353 | /* Module declarations from 'cpython.bytes' */ |
| 1354 | |
| 1355 | /* Module declarations from 'cython' */ |
| 1356 | |
| 1357 | /* Module declarations from 'libc.stdint' */ |
| 1358 | |
| 1359 | /* Module declarations from 'cxmmsvalue' */ |
| 1360 | |
| 1361 | /* Module declarations from 'xmmsvalue' */ |
| 1362 | static PyTypeObject *__pyx_ptype_9xmmsvalue_XmmsValue = 0; |
| 1363 | static PyTypeObject *__pyx_ptype_9xmmsvalue_XmmsValueC2C = 0; |
| 1364 | static PyTypeObject *__pyx_ptype_9xmmsvalue_XmmsListIter = 0; |
| 1365 | static PyTypeObject *__pyx_ptype_9xmmsvalue_XmmsDictIter = 0; |
| 1366 | static PyTypeObject *__pyx_ptype_9xmmsvalue_CollectionRef = 0; |
| 1367 | static PyTypeObject *__pyx_ptype_9xmmsvalue_Collection = 0; |
| 1368 | static PyTypeObject *__pyx_ptype_9xmmsvalue_CollectionAttributes = 0; |
| 1369 | static PyTypeObject *__pyx_ptype_9xmmsvalue_AttributesIterator = 0; |
| 1370 | static PyTypeObject *__pyx_ptype_9xmmsvalue_CollectionOperands = 0; |
| 1371 | static PyTypeObject *__pyx_ptype_9xmmsvalue_CollectionIDList = 0; |
| 1372 | static PyTypeObject *__pyx_ptype_9xmmsvalue___pyx_scope_struct____iter__ = 0; |
| 1373 | static PyObject *__pyx_v_9xmmsvalue__idlist_types = 0; |
| 1374 | static PyObject *__pyx_v_9xmmsvalue__collclass = 0; |
| 1375 | static PyObject *__pyx_f_9xmmsvalue_create_coll(xmmsv_t *); /*proto*/ |
| 1376 | static xmmsv_t *__pyx_f_9xmmsvalue_create_native_value(PyObject *); /*proto*/ |
| 1377 | #define __Pyx_MODULE_NAME"xmmsvalue" "xmmsvalue" |
| 1378 | int __pyx_module_is_main_xmmsvalue = 0; |
| 1379 | |
| 1380 | /* Implementation of 'xmmsvalue' */ |
| 1381 | static PyObject *__pyx_builtin_Exception; |
| 1382 | static PyObject *__pyx_builtin_TypeError; |
| 1383 | static PyObject *__pyx_builtin_ValueError; |
| 1384 | static PyObject *__pyx_builtin_RuntimeError; |
| 1385 | static PyObject *__pyx_builtin_StopIteration; |
| 1386 | static PyObject *__pyx_builtin_KeyError; |
| 1387 | static PyObject *__pyx_builtin_IndexError; |
| 1388 | static int __pyx_pf_9xmmsvalue_9XmmsValue___cinit__(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1389 | static int __pyx_pf_9xmmsvalue_9XmmsValue_2__init__(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, PyObject *__pyx_v_sourcepref, PyObject *__pyx_v_pyval); /* proto */ |
| 1390 | static void __pyx_pf_9xmmsvalue_9XmmsValue_4__dealloc__(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1391 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_6set_pyval(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, PyObject *__pyx_v_pyval); /* proto */ |
| 1392 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_8get_type(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1393 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_10iserror(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1394 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_12is_error(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1395 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_14get_error(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1396 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_16get_int(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1397 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_18get_float(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1398 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_20get_string(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1399 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_22get_bin(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1400 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_24get_coll(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1401 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_26get_dict(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1402 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_28get_dict_iter(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1403 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_30get_propdict(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1404 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_32get_list(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1405 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_34get_list_iter(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1406 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_36value(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1407 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_38copy(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, PyObject *__pyx_v_cls); /* proto */ |
| 1408 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_40__iter__(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self); /* proto */ |
| 1409 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsValueC2C_6sender___get__(struct __pyx_obj_9xmmsvalue_XmmsValueC2C *__pyx_v_self); /* proto */ |
| 1410 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsValueC2C_2id___get__(struct __pyx_obj_9xmmsvalue_XmmsValueC2C *__pyx_v_self); /* proto */ |
| 1411 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsValueC2C_11destination___get__(struct __pyx_obj_9xmmsvalue_XmmsValueC2C *__pyx_v_self); /* proto */ |
| 1412 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsValueC2C_7payload___get__(struct __pyx_obj_9xmmsvalue_XmmsValueC2C *__pyx_v_self); /* proto */ |
| 1413 | static int __pyx_pf_9xmmsvalue_12XmmsListIter___cinit__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self); /* proto */ |
| 1414 | static void __pyx_pf_9xmmsvalue_12XmmsListIter_2__dealloc__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self); /* proto */ |
| 1415 | static int __pyx_pf_9xmmsvalue_12XmmsListIter_4__init__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self, struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_value); /* proto */ |
| 1416 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsListIter_6__iter__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self); /* proto */ |
| 1417 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsListIter_8__next__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self); /* proto */ |
| 1418 | static int __pyx_pf_9xmmsvalue_12XmmsDictIter___cinit__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self); /* proto */ |
| 1419 | static void __pyx_pf_9xmmsvalue_12XmmsDictIter_2__dealloc__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self); /* proto */ |
| 1420 | static int __pyx_pf_9xmmsvalue_12XmmsDictIter_4__init__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self, struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_value); /* proto */ |
| 1421 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsDictIter_6__iter__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self); /* proto */ |
| 1422 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsDictIter_8__next__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self); /* proto */ |
| 1423 | static int __pyx_pf_9xmmsvalue_13CollectionRef___cinit__(struct __pyx_obj_9xmmsvalue_CollectionRef *__pyx_v_self); /* proto */ |
| 1424 | static void __pyx_pf_9xmmsvalue_13CollectionRef_2__dealloc__(struct __pyx_obj_9xmmsvalue_CollectionRef *__pyx_v_self); /* proto */ |
| 1425 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_10attributes___get__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self); /* proto */ |
| 1426 | static int __pyx_pf_9xmmsvalue_10Collection_10attributes_2__set__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_attrs); /* proto */ |
| 1427 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_8operands___get__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self); /* proto */ |
| 1428 | static int __pyx_pf_9xmmsvalue_10Collection_8operands_2__set__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ops); /* proto */ |
| 1429 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_3ids___get__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self); /* proto */ |
| 1430 | static int __pyx_pf_9xmmsvalue_10Collection_3ids_2__set__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ids); /* proto */ |
| 1431 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_copy(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self); /* proto */ |
| 1432 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_2__repr__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self); /* proto */ |
| 1433 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_4__or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ |
| 1434 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_6__and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /* proto */ |
| 1435 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_8__invert__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self); /* proto */ |
| 1436 | static int __pyx_pf_9xmmsvalue_18AttributesIterator___cinit__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self); /* proto */ |
| 1437 | static void __pyx_pf_9xmmsvalue_18AttributesIterator_2__dealloc__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self); /* proto */ |
| 1438 | static int __pyx_pf_9xmmsvalue_18AttributesIterator_4__init__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self, struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_attributes, enum __pyx_t_9xmmsvalue_AttributesIterType __pyx_v_itertype); /* proto */ |
| 1439 | static PyObject *__pyx_pf_9xmmsvalue_18AttributesIterator_6__iter__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self); /* proto */ |
| 1440 | static PyObject *__pyx_pf_9xmmsvalue_18AttributesIterator_8__next__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self); /* proto */ |
| 1441 | static PyObject *__pyx_pf_9xmmsvalue_18AttributesIterator_10reset(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self); /* proto */ |
| 1442 | static int __pyx_pf_9xmmsvalue_20CollectionAttributes___init__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c); /* proto */ |
| 1443 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_2get_dict(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1444 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_4iterkeys(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1445 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_6keys(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1446 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_8itervalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1447 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_10iterxvalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1448 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_12values(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1449 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_14xvalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1450 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_16iteritems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1451 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_18iterxitems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1452 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_20items(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1453 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_22xitems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1454 | static int __pyx_pf_9xmmsvalue_20CollectionAttributes_24__contains__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ |
| 1455 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_26__iter__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1456 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_28__repr__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1457 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_30__str__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1458 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_32__getitem__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ |
| 1459 | static int __pyx_pf_9xmmsvalue_20CollectionAttributes_34__setitem__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ |
| 1460 | static int __pyx_pf_9xmmsvalue_20CollectionAttributes_36__delitem__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ |
| 1461 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_38get(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_default); /* proto */ |
| 1462 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_40xget(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ |
| 1463 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_42clear(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1464 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_44update(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_kargs); /* proto */ |
| 1465 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_46copy(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self); /* proto */ |
| 1466 | static int __pyx_pf_9xmmsvalue_18CollectionOperands___init__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c); /* proto */ |
| 1467 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_2__repr__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self); /* proto */ |
| 1468 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_4__str__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self); /* proto */ |
| 1469 | static Py_ssize_t __pyx_pf_9xmmsvalue_18CollectionOperands_6__len__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self); /* proto */ |
| 1470 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_8__getitem__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, PyObject *__pyx_v_i); /* proto */ |
| 1471 | static int __pyx_pf_9xmmsvalue_18CollectionOperands_10__delitem__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, PyObject *__pyx_v_i); /* proto */ |
| 1472 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_12__iter__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self); /* proto */ |
| 1473 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_14append(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_op); /* proto */ |
| 1474 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_16extend(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, PyObject *__pyx_v_ops); /* proto */ |
| 1475 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_18remove(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_op); /* proto */ |
| 1476 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_20clear(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self); /* proto */ |
| 1477 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_22list(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self); /* proto */ |
| 1478 | static int __pyx_pf_9xmmsvalue_16CollectionIDList___init__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c); /* proto */ |
| 1479 | static Py_ssize_t __pyx_pf_9xmmsvalue_16CollectionIDList_2__len__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self); /* proto */ |
| 1480 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_4__iter__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self); /* proto */ |
| 1481 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_7list(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self); /* proto */ |
| 1482 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_9__repr__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self); /* proto */ |
| 1483 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_11append(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_v); /* proto */ |
| 1484 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_13extend(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, PyObject *__pyx_v_v); /* proto */ |
| 1485 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_15__iadd__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, PyObject *__pyx_v_v); /* proto */ |
| 1486 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_17insert(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_v, int __pyx_v_i); /* proto */ |
| 1487 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_19remove(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i); /* proto */ |
| 1488 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_21pop(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i); /* proto */ |
| 1489 | static int __pyx_pf_9xmmsvalue_16CollectionIDList_23__delitem__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i); /* proto */ |
| 1490 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_25__getitem__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i); /* proto */ |
| 1491 | static int __pyx_pf_9xmmsvalue_16CollectionIDList_27__setitem__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i, int __pyx_v_v); /* proto */ |
| 1492 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_29clear(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self); /* proto */ |
| 1493 | static PyObject *__pyx_pf_9xmmsvalue_14BaseCollection___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, int __pyx_v__colltype, PyObject *__pyx_v_kargs); /* proto */ |
| 1494 | static PyObject *__pyx_pf_9xmmsvalue_9Reference___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ref, PyObject *__pyx_v_ns, PyObject *__pyx_v_kargs); /* proto */ |
| 1495 | static PyObject *__pyx_pf_9xmmsvalue_8Universe___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ |
| 1496 | static PyObject *__pyx_pf_9xmmsvalue_8Universe_2__repr__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ |
| 1497 | static PyObject *__pyx_pf_9xmmsvalue_16FilterCollection___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v__operation, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1498 | static PyObject *__pyx_pf_9xmmsvalue_6Equals___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1499 | static PyObject *__pyx_pf_9xmmsvalue_8NotEqual___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1500 | static PyObject *__pyx_pf_9xmmsvalue_7Smaller___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1501 | static PyObject *__pyx_pf_9xmmsvalue_12SmallerEqual___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1502 | static PyObject *__pyx_pf_9xmmsvalue_7Greater___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1503 | static PyObject *__pyx_pf_9xmmsvalue_12GreaterEqual___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1504 | static PyObject *__pyx_pf_9xmmsvalue_5Match___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1505 | static PyObject *__pyx_pf_9xmmsvalue_5Token___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1506 | static PyObject *__pyx_pf_9xmmsvalue_3Has___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1507 | static PyObject *__pyx_pf_9xmmsvalue_5Order___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_operand, PyObject *__pyx_v_field, PyObject *__pyx_v_direction, PyObject *__pyx_v_kargs); /* proto */ |
| 1508 | static PyObject *__pyx_pf_9xmmsvalue_8Mediaset___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_operand, PyObject *__pyx_v_kargs); /* proto */ |
| 1509 | static PyObject *__pyx_pf_9xmmsvalue_5Limit___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_operand, PyObject *__pyx_v_start, PyObject *__pyx_v_length, PyObject *__pyx_v_kargs); /* proto */ |
| 1510 | static PyObject *__pyx_pf_9xmmsvalue_6IDList___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ids, PyObject *__pyx_v_kargs); /* proto */ |
| 1511 | static PyObject *__pyx_pf_9xmmsvalue_5Queue___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ids, PyObject *__pyx_v_kargs); /* proto */ |
| 1512 | static PyObject *__pyx_pf_9xmmsvalue_8PShuffle___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ids, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs); /* proto */ |
| 1513 | static PyObject *__pyx_pf_9xmmsvalue_5Union___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_kargs); /* proto */ |
| 1514 | static PyObject *__pyx_pf_9xmmsvalue_12Intersection___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_kargs); /* proto */ |
| 1515 | static PyObject *__pyx_pf_9xmmsvalue_10Complement___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_operand, PyObject *__pyx_v_kargs); /* proto */ |
| 1516 | static PyObject *__pyx_pf_9xmmsvalue_coll_parse(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_pattern); /* proto */ |
| 1517 | static PyObject *__pyx_tp_new_9xmmsvalue_XmmsValue(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1518 | static PyObject *__pyx_tp_new_9xmmsvalue_XmmsValueC2C(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1519 | static PyObject *__pyx_tp_new_9xmmsvalue_XmmsListIter(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1520 | static PyObject *__pyx_tp_new_9xmmsvalue_XmmsDictIter(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1521 | static PyObject *__pyx_tp_new_9xmmsvalue_CollectionRef(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1522 | static PyObject *__pyx_tp_new_9xmmsvalue_Collection(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1523 | static PyObject *__pyx_tp_new_9xmmsvalue_CollectionAttributes(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1524 | static PyObject *__pyx_tp_new_9xmmsvalue_AttributesIterator(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1525 | static PyObject *__pyx_tp_new_9xmmsvalue_CollectionOperands(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1526 | static PyObject *__pyx_tp_new_9xmmsvalue_CollectionIDList(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1527 | static PyObject *__pyx_tp_new_9xmmsvalue___pyx_scope_struct____iter__(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ |
| 1528 | static char __pyx_k_a[] = "a"; |
| 1529 | static char __pyx_k_c[] = "c"; |
| 1530 | static char __pyx_k_i[] = "i"; |
| 1531 | static char __pyx_k_s[] = "%s()"; |
| 1532 | static char __pyx_k_v[] = "v"; |
| 1533 | static char __pyx_k_id[] = "id"; |
| 1534 | static char __pyx_k_ns[] = "ns"; |
| 1535 | static char __pyx_k_ASC[] = "ASC"; |
| 1536 | static char __pyx_k_Has[] = "Has"; |
| 1537 | static char __pyx_k__16[] = ", "; |
| 1538 | static char __pyx_k__36[] = ""; |
| 1539 | static char __pyx_k_cls[] = "cls"; |
| 1540 | static char __pyx_k_doc[] = "__doc__"; |
| 1541 | static char __pyx_k_get[] = "get"; |
| 1542 | static char __pyx_k_ids[] = "ids"; |
| 1543 | static char __pyx_k_pop[] = "pop"; |
| 1544 | static char __pyx_k_ref[] = "ref"; |
| 1545 | static char __pyx_k_s_s[] = "%s=%s"; |
| 1546 | static char __pyx_k_DESC[] = "DESC"; |
| 1547 | static char __pyx_k_args[] = "args"; |
| 1548 | static char __pyx_k_call[] = "__call__"; |
| 1549 | static char __pyx_k_coll[] = "coll"; |
| 1550 | static char __pyx_k_copy[] = "copy"; |
| 1551 | static char __pyx_k_init[] = "__init__"; |
| 1552 | static char __pyx_k_join[] = "join"; |
| 1553 | static char __pyx_k_keys[] = "keys"; |
| 1554 | static char __pyx_k_list[] = "list"; |
| 1555 | static char __pyx_k_main[] = "__main__"; |
| 1556 | static char __pyx_k_name[] = "__name__"; |
| 1557 | static char __pyx_k_repr[] = "__repr__"; |
| 1558 | static char __pyx_k_self[] = "self"; |
| 1559 | static char __pyx_k_send[] = "send"; |
| 1560 | static char __pyx_k_test[] = "__test__"; |
| 1561 | static char __pyx_k_type[] = "type"; |
| 1562 | static char __pyx_k_xget[] = "xget"; |
| 1563 | static char __pyx_k_Limit[] = "Limit"; |
| 1564 | static char __pyx_k_Match[] = "Match"; |
| 1565 | static char __pyx_k_Order[] = "Order"; |
| 1566 | static char __pyx_k_Queue[] = "Queue"; |
| 1567 | static char __pyx_k_Token[] = "Token"; |
| 1568 | static char __pyx_k_Union[] = "Union"; |
| 1569 | static char __pyx_k_class[] = "__class__"; |
| 1570 | static char __pyx_k_clear[] = "clear"; |
| 1571 | static char __pyx_k_close[] = "close"; |
| 1572 | static char __pyx_k_field[] = "field"; |
| 1573 | static char __pyx_k_ids_r[] = "ids=%r"; |
| 1574 | static char __pyx_k_items[] = "items"; |
| 1575 | static char __pyx_k_kargs[] = "kargs"; |
| 1576 | static char __pyx_k_pyval[] = "pyval"; |
| 1577 | static char __pyx_k_queue[] = "queue"; |
| 1578 | static char __pyx_k_reset[] = "reset"; |
| 1579 | static char __pyx_k_s_s_2[] = "%s(%s)"; |
| 1580 | static char __pyx_k_start[] = "start"; |
| 1581 | static char __pyx_k_throw[] = "throw"; |
| 1582 | static char __pyx_k_upper[] = "upper"; |
| 1583 | static char __pyx_k_value[] = "value"; |
| 1584 | static char __pyx_k_Equals[] = "Equals"; |
| 1585 | static char __pyx_k_IDList[] = "IDList"; |
| 1586 | static char __pyx_k_append[] = "append"; |
| 1587 | static char __pyx_k_extend[] = "extend"; |
| 1588 | static char __pyx_k_import[] = "__import__"; |
| 1589 | static char __pyx_k_insert[] = "insert"; |
| 1590 | static char __pyx_k_length[] = "length"; |
| 1591 | static char __pyx_k_module[] = "__module__"; |
| 1592 | static char __pyx_k_name_2[] = "name"; |
| 1593 | static char __pyx_k_parent[] = "parent"; |
| 1594 | static char __pyx_k_random[] = "random"; |
| 1595 | static char __pyx_k_remove[] = "remove"; |
| 1596 | static char __pyx_k_update[] = "update"; |
| 1597 | static char __pyx_k_values[] = "values"; |
| 1598 | static char __pyx_k_xitems[] = "xitems"; |
| 1599 | static char __pyx_k_Greater[] = "Greater"; |
| 1600 | static char __pyx_k_Smaller[] = "Smaller"; |
| 1601 | static char __pyx_k_default[] = "default"; |
| 1602 | static char __pyx_k_get_bin[] = "get_bin"; |
| 1603 | static char __pyx_k_get_int[] = "get_int"; |
| 1604 | static char __pyx_k_iserror[] = "iserror"; |
| 1605 | static char __pyx_k_operand[] = "operand"; |
| 1606 | static char __pyx_k_pattern[] = "pattern"; |
| 1607 | static char __pyx_k_prepare[] = "__prepare__"; |
| 1608 | static char __pyx_k_replace[] = "replace"; |
| 1609 | static char __pyx_k_xvalues[] = "xvalues"; |
| 1610 | static char __pyx_k_KeyError[] = "KeyError"; |
| 1611 | static char __pyx_k_Mediaset[] = "Mediaset"; |
| 1612 | static char __pyx_k_NotEqual[] = "NotEqual"; |
| 1613 | static char __pyx_k_PShuffle[] = "PShuffle"; |
| 1614 | static char __pyx_k_PropDict[] = "PropDict"; |
| 1615 | static char __pyx_k_Universe[] = "Universe"; |
| 1616 | static char __pyx_k_colltype[] = "_colltype"; |
| 1617 | static char __pyx_k_get_coll[] = "get_coll"; |
| 1618 | static char __pyx_k_get_dict[] = "get_dict"; |
| 1619 | static char __pyx_k_get_list[] = "get_list"; |
| 1620 | static char __pyx_k_get_type[] = "get_type"; |
| 1621 | static char __pyx_k_is_error[] = "is_error"; |
| 1622 | static char __pyx_k_iterkeys[] = "iterkeys"; |
| 1623 | static char __pyx_k_itertype[] = "itertype"; |
| 1624 | static char __pyx_k_operands[] = "operands"; |
| 1625 | static char __pyx_k_propdict[] = "propdict"; |
| 1626 | static char __pyx_k_pshuffle[] = "pshuffle"; |
| 1627 | static char __pyx_k_qualname[] = "__qualname__"; |
| 1628 | static char __pyx_k_All_Media[] = "All Media"; |
| 1629 | static char __pyx_k_Exception[] = "Exception"; |
| 1630 | static char __pyx_k_Reference[] = "Reference"; |
| 1631 | static char __pyx_k_TypeError[] = "TypeError"; |
| 1632 | static char __pyx_k_XmmsError[] = "XmmsError"; |
| 1633 | static char __pyx_k_direction[] = "direction"; |
| 1634 | static char __pyx_k_get_error[] = "get_error"; |
| 1635 | static char __pyx_k_get_float[] = "get_float"; |
| 1636 | static char __pyx_k_iteritems[] = "iteritems"; |
| 1637 | static char __pyx_k_metaclass[] = "__metaclass__"; |
| 1638 | static char __pyx_k_namespace[] = "namespace"; |
| 1639 | static char __pyx_k_operation[] = "_operation"; |
| 1640 | static char __pyx_k_pattern_2[] = "_pattern"; |
| 1641 | static char __pyx_k_reference[] = "reference"; |
| 1642 | static char __pyx_k_set_pyval[] = "set_pyval"; |
| 1643 | static char __pyx_k_xmmsvalue[] = "xmmsvalue"; |
| 1644 | static char __pyx_k_Complement[] = "Complement"; |
| 1645 | static char __pyx_k_Has___init[] = "Has.__init__"; |
| 1646 | static char __pyx_k_IndexError[] = "IndexError"; |
| 1647 | static char __pyx_k_ValueError[] = "ValueError"; |
| 1648 | static char __pyx_k_attributes[] = "attributes"; |
| 1649 | static char __pyx_k_coll_parse[] = "coll_parse"; |
| 1650 | static char __pyx_k_get_string[] = "get_string"; |
| 1651 | static char __pyx_k_itervalues[] = "itervalues"; |
| 1652 | static char __pyx_k_iterxitems[] = "iterxitems"; |
| 1653 | static char __pyx_k_operands_s[] = "operands=[%s]"; |
| 1654 | static char __pyx_k_pyx_vtable[] = "__pyx_vtable__"; |
| 1655 | static char __pyx_k_sourcepref[] = "sourcepref"; |
| 1656 | static char __pyx_k_Collections[] = "Collections"; |
| 1657 | static char __pyx_k_iterxvalues[] = "iterxvalues"; |
| 1658 | static char __pyx_k_GreaterEqual[] = "GreaterEqual"; |
| 1659 | static char __pyx_k_Intersection[] = "Intersection"; |
| 1660 | static char __pyx_k_Limit___init[] = "Limit.__init__"; |
| 1661 | static char __pyx_k_Match___init[] = "Match.__init__"; |
| 1662 | static char __pyx_k_Order___init[] = "Order.__init__"; |
| 1663 | static char __pyx_k_Queue___init[] = "Queue.__init__"; |
| 1664 | static char __pyx_k_RuntimeError[] = "RuntimeError"; |
| 1665 | static char __pyx_k_SmallerEqual[] = "SmallerEqual"; |
| 1666 | static char __pyx_k_Token___init[] = "Token.__init__"; |
| 1667 | static char __pyx_k_Union___init[] = "Union.__init__"; |
| 1668 | static char __pyx_k_get_propdict[] = "get_propdict"; |
| 1669 | static char __pyx_k_Equals___init[] = "Equals.__init__"; |
| 1670 | static char __pyx_k_IDList___init[] = "IDList.__init__"; |
| 1671 | static char __pyx_k_StopIteration[] = "StopIteration"; |
| 1672 | static char __pyx_k_get_dict_iter[] = "get_dict_iter"; |
| 1673 | static char __pyx_k_get_list_iter[] = "get_list_iter"; |
| 1674 | static char __pyx_k_Bad_collection[] = "Bad collection"; |
| 1675 | static char __pyx_k_BaseCollection[] = "BaseCollection"; |
| 1676 | static char __pyx_k_Greater___init[] = "Greater.__init__"; |
| 1677 | static char __pyx_k_Smaller___init[] = "Smaller.__init__"; |
| 1678 | static char __pyx_k_VALUE_TYPE_BIN[] = "VALUE_TYPE_BIN"; |
| 1679 | static char __pyx_k_Mediaset___init[] = "Mediaset.__init__"; |
| 1680 | static char __pyx_k_NotEqual___init[] = "NotEqual.__init__"; |
| 1681 | static char __pyx_k_PShuffle___init[] = "PShuffle.__init__"; |
| 1682 | static char __pyx_k_Universe___init[] = "Universe.__init__"; |
| 1683 | static char __pyx_k_Universe___repr[] = "Universe.__repr__"; |
| 1684 | static char __pyx_k_VALUE_TYPE_COLL[] = "VALUE_TYPE_COLL"; |
| 1685 | static char __pyx_k_VALUE_TYPE_DICT[] = "VALUE_TYPE_DICT"; |
| 1686 | static char __pyx_k_VALUE_TYPE_LIST[] = "VALUE_TYPE_LIST"; |
| 1687 | static char __pyx_k_VALUE_TYPE_NONE[] = "VALUE_TYPE_NONE"; |
| 1688 | static char __pyx_k_FilterCollection[] = "FilterCollection"; |
| 1689 | static char __pyx_k_Reference___init[] = "Reference.__init__"; |
| 1690 | static char __pyx_k_VALUE_TYPE_ERROR[] = "VALUE_TYPE_ERROR"; |
| 1691 | static char __pyx_k_VALUE_TYPE_FLOAT[] = "VALUE_TYPE_FLOAT"; |
| 1692 | static char __pyx_k_VALUE_TYPE_INT64[] = "VALUE_TYPE_INT64"; |
| 1693 | static char __pyx_k_CollectionWrapper[] = "CollectionWrapper"; |
| 1694 | static char __pyx_k_Complement___init[] = "Complement.__init__"; |
| 1695 | static char __pyx_k_Unknown_iter_type[] = "Unknown iter type"; |
| 1696 | static char __pyx_k_VALUE_TYPE_STRING[] = "VALUE_TYPE_STRING"; |
| 1697 | static char __pyx_k_Index_out_of_range[] = "Index out of range"; |
| 1698 | static char __pyx_k_COLLECTION_TYPE_HAS[] = "COLLECTION_TYPE_HAS"; |
| 1699 | static char __pyx_k_Failed_to_clear_ids[] = "Failed to clear ids"; |
| 1700 | static char __pyx_k_GreaterEqual___init[] = "GreaterEqual.__init__"; |
| 1701 | static char __pyx_k_Intersection___init[] = "Intersection.__init__"; |
| 1702 | static char __pyx_k_SmallerEqual___init[] = "SmallerEqual.__init__"; |
| 1703 | static char __pyx_k_BaseCollection___init[] = "BaseCollection.__init__"; |
| 1704 | static char __pyx_k_COLLECTION_TYPE_LIMIT[] = "COLLECTION_TYPE_LIMIT"; |
| 1705 | static char __pyx_k_COLLECTION_TYPE_MATCH[] = "COLLECTION_TYPE_MATCH"; |
| 1706 | static char __pyx_k_COLLECTION_TYPE_ORDER[] = "COLLECTION_TYPE_ORDER"; |
| 1707 | static char __pyx_k_COLLECTION_TYPE_TOKEN[] = "COLLECTION_TYPE_TOKEN"; |
| 1708 | static char __pyx_k_COLLECTION_TYPE_UNION[] = "COLLECTION_TYPE_UNION"; |
| 1709 | static char __pyx_k_COLLECTION_TYPE_EQUALS[] = "COLLECTION_TYPE_EQUALS"; |
| 1710 | static char __pyx_k_COLLECTION_TYPE_IDLIST[] = "COLLECTION_TYPE_IDLIST"; |
| 1711 | static char __pyx_k_Failed_to_append_an_id[] = "Failed to append an id"; |
| 1712 | static char __pyx_k_COLLECTION_TYPE_GREATER[] = "COLLECTION_TYPE_GREATER"; |
| 1713 | static char __pyx_k_COLLECTION_TYPE_SMALLER[] = "COLLECTION_TYPE_SMALLER"; |
| 1714 | static char __pyx_k_FilterCollection___init[] = "FilterCollection.__init__"; |
| 1715 | static char __pyx_k_The_value_is_not_a_dict[] = "The value is not a dict."; |
| 1716 | static char __pyx_k_The_value_is_not_a_list[] = "The value is not a list."; |
| 1717 | static char __pyx_k_Unknown_collection_type[] = "Unknown collection type"; |
| 1718 | static char __pyx_k_Value_type_not_iterable[] = "Value type not iterable"; |
| 1719 | static char __pyx_k_COLLECTION_TYPE_MEDIASET[] = "COLLECTION_TYPE_MEDIASET"; |
| 1720 | static char __pyx_k_COLLECTION_TYPE_NOTEQUAL[] = "COLLECTION_TYPE_NOTEQUAL"; |
| 1721 | static char __pyx_k_COLLECTION_TYPE_UNIVERSE[] = "COLLECTION_TYPE_UNIVERSE"; |
| 1722 | static char __pyx_k_Failed_to_retrieve_value[] = "Failed to retrieve value"; |
| 1723 | static char __pyx_k_Uninitialized_collection[] = "Uninitialized collection"; |
| 1724 | static char __pyx_k_COLLECTION_TYPE_GREATEREQ[] = "COLLECTION_TYPE_GREATEREQ"; |
| 1725 | static char __pyx_k_COLLECTION_TYPE_REFERENCE[] = "COLLECTION_TYPE_REFERENCE"; |
| 1726 | static char __pyx_k_COLLECTION_TYPE_SMALLEREQ[] = "COLLECTION_TYPE_SMALLEREQ"; |
| 1727 | static char __pyx_k_COLLECTION_TYPE_COMPLEMENT[] = "COLLECTION_TYPE_COMPLEMENT"; |
| 1728 | static char __pyx_k_Failed_to_get_fict_iterator[] = "Failed to get fict iterator"; |
| 1729 | static char __pyx_k_Unable_to_parse_the_pattern[] = "Unable to parse the pattern"; |
| 1730 | static char __pyx_k_COLLECTION_TYPE_INTERSECTION[] = "COLLECTION_TYPE_INTERSECTION"; |
| 1731 | static char __pyx_k_Failed_to_retrieve_dict_item[] = "Failed to retrieve dict item"; |
| 1732 | static char __pyx_k_Failed_to_retrieve_list_entry[] = "Failed to retrieve list entry."; |
| 1733 | static char __pyx_k_The_attribute_s_doesn_t_exist[] = "The attribute '%s' doesn't exist"; |
| 1734 | static char __pyx_k_The_value_is_not_a_collection[] = "The value is not a collection"; |
| 1735 | static char __pyx_k_init___argument_must_not_be_No[] = "__init__() argument must not be None"; |
| 1736 | static char __pyx_k_Custom_class_must_be_a_subclass[] = "Custom class must be a subclass of XmmsValue"; |
| 1737 | static char __pyx_k_Python_bindings_for_xmmsv_manip[] = "\nPython bindings for xmmsv manipulations.\n"; |
| 1738 | static char __pyx_k_direction_must_be_an_integer_or[] = "'direction' must be an integer or one of 'ASC', 'DESC'"; |
| 1739 | static char __pyx_k_home_travis_build_dsvensson_xmm[] = "/home/travis/build/dsvensson/xmms2-devel/src/clients/lib/python/xmmsvalue.pyx"; |
| 1740 | static char __pyx_k_Can_t_set_idlist_for_this_type_o[] = "Can't set idlist for this type of collection"; |
| 1741 | static char __pyx_k_Failed_to_initialize_the_iterato[] = "Failed to initialize the iterator."; |
| 1742 | static char __pyx_k_Failed_to_retrieve_id_at_index_d[] = "Failed to retrieve id at index %d"; |
| 1743 | static char __pyx_k_Type_s_has_no_corresponding_nati[] = "Type '%s' has no corresponding native value type"; |
| 1744 | static char __pyx_k_Unknown_value_type_from_the_serv[] = "Unknown value type from the server: %d"; |
| 1745 | static char __pyx_k_Unsupported_operand_type_s_for_r[] = "Unsupported operand type(s) for |: %r and %r"; |
| 1746 | static char __pyx_k_Unsupported_operand_type_s_for_r_2[] = "Unsupported operand type(s) for &: %r and %r"; |
| 1747 | static PyObject *__pyx_n_s_ASC; |
| 1748 | static PyObject *__pyx_kp_s_All_Media; |
| 1749 | static PyObject *__pyx_kp_s_Bad_collection; |
| 1750 | static PyObject *__pyx_n_s_BaseCollection; |
| 1751 | static PyObject *__pyx_n_s_BaseCollection___init; |
| 1752 | static PyObject *__pyx_n_s_COLLECTION_TYPE_COMPLEMENT; |
| 1753 | static PyObject *__pyx_n_s_COLLECTION_TYPE_EQUALS; |
| 1754 | static PyObject *__pyx_n_s_COLLECTION_TYPE_GREATER; |
| 1755 | static PyObject *__pyx_n_s_COLLECTION_TYPE_GREATEREQ; |
| 1756 | static PyObject *__pyx_n_s_COLLECTION_TYPE_HAS; |
| 1757 | static PyObject *__pyx_n_s_COLLECTION_TYPE_IDLIST; |
| 1758 | static PyObject *__pyx_n_s_COLLECTION_TYPE_INTERSECTION; |
| 1759 | static PyObject *__pyx_n_s_COLLECTION_TYPE_LIMIT; |
| 1760 | static PyObject *__pyx_n_s_COLLECTION_TYPE_MATCH; |
| 1761 | static PyObject *__pyx_n_s_COLLECTION_TYPE_MEDIASET; |
| 1762 | static PyObject *__pyx_n_s_COLLECTION_TYPE_NOTEQUAL; |
| 1763 | static PyObject *__pyx_n_s_COLLECTION_TYPE_ORDER; |
| 1764 | static PyObject *__pyx_n_s_COLLECTION_TYPE_REFERENCE; |
| 1765 | static PyObject *__pyx_n_s_COLLECTION_TYPE_SMALLER; |
| 1766 | static PyObject *__pyx_n_s_COLLECTION_TYPE_SMALLEREQ; |
| 1767 | static PyObject *__pyx_n_s_COLLECTION_TYPE_TOKEN; |
| 1768 | static PyObject *__pyx_n_s_COLLECTION_TYPE_UNION; |
| 1769 | static PyObject *__pyx_n_s_COLLECTION_TYPE_UNIVERSE; |
| 1770 | static PyObject *__pyx_kp_s_Can_t_set_idlist_for_this_type_o; |
| 1771 | static PyObject *__pyx_n_s_CollectionWrapper; |
| 1772 | static PyObject *__pyx_n_s_Collections; |
| 1773 | static PyObject *__pyx_n_s_Complement; |
| 1774 | static PyObject *__pyx_n_s_Complement___init; |
| 1775 | static PyObject *__pyx_kp_s_Custom_class_must_be_a_subclass; |
| 1776 | static PyObject *__pyx_n_s_DESC; |
| 1777 | static PyObject *__pyx_n_s_Equals; |
| 1778 | static PyObject *__pyx_n_s_Equals___init; |
| 1779 | static PyObject *__pyx_n_s_Exception; |
| 1780 | static PyObject *__pyx_kp_s_Failed_to_append_an_id; |
| 1781 | static PyObject *__pyx_kp_s_Failed_to_clear_ids; |
| 1782 | static PyObject *__pyx_kp_s_Failed_to_get_fict_iterator; |
| 1783 | static PyObject *__pyx_kp_s_Failed_to_initialize_the_iterato; |
| 1784 | static PyObject *__pyx_kp_s_Failed_to_retrieve_dict_item; |
| 1785 | static PyObject *__pyx_kp_s_Failed_to_retrieve_id_at_index_d; |
| 1786 | static PyObject *__pyx_kp_s_Failed_to_retrieve_list_entry; |
| 1787 | static PyObject *__pyx_kp_s_Failed_to_retrieve_value; |
| 1788 | static PyObject *__pyx_n_s_FilterCollection; |
| 1789 | static PyObject *__pyx_n_s_FilterCollection___init; |
| 1790 | static PyObject *__pyx_n_s_Greater; |
| 1791 | static PyObject *__pyx_n_s_GreaterEqual; |
| 1792 | static PyObject *__pyx_n_s_GreaterEqual___init; |
| 1793 | static PyObject *__pyx_n_s_Greater___init; |
| 1794 | static PyObject *__pyx_n_s_Has; |
| 1795 | static PyObject *__pyx_n_s_Has___init; |
| 1796 | static PyObject *__pyx_n_s_IDList; |
| 1797 | static PyObject *__pyx_n_s_IDList___init; |
| 1798 | static PyObject *__pyx_n_s_IndexError; |
| 1799 | static PyObject *__pyx_kp_s_Index_out_of_range; |
| 1800 | static PyObject *__pyx_n_s_Intersection; |
| 1801 | static PyObject *__pyx_n_s_Intersection___init; |
| 1802 | static PyObject *__pyx_n_s_KeyError; |
| 1803 | static PyObject *__pyx_n_s_Limit; |
| 1804 | static PyObject *__pyx_n_s_Limit___init; |
| 1805 | static PyObject *__pyx_n_s_Match; |
| 1806 | static PyObject *__pyx_n_s_Match___init; |
| 1807 | static PyObject *__pyx_n_s_Mediaset; |
| 1808 | static PyObject *__pyx_n_s_Mediaset___init; |
| 1809 | static PyObject *__pyx_n_s_NotEqual; |
| 1810 | static PyObject *__pyx_n_s_NotEqual___init; |
| 1811 | static PyObject *__pyx_n_s_Order; |
| 1812 | static PyObject *__pyx_n_s_Order___init; |
| 1813 | static PyObject *__pyx_n_s_PShuffle; |
| 1814 | static PyObject *__pyx_n_s_PShuffle___init; |
| 1815 | static PyObject *__pyx_n_s_PropDict; |
| 1816 | static PyObject *__pyx_n_s_Queue; |
| 1817 | static PyObject *__pyx_n_s_Queue___init; |
| 1818 | static PyObject *__pyx_n_s_Reference; |
| 1819 | static PyObject *__pyx_n_s_Reference___init; |
| 1820 | static PyObject *__pyx_n_s_RuntimeError; |
| 1821 | static PyObject *__pyx_n_s_Smaller; |
| 1822 | static PyObject *__pyx_n_s_SmallerEqual; |
| 1823 | static PyObject *__pyx_n_s_SmallerEqual___init; |
| 1824 | static PyObject *__pyx_n_s_Smaller___init; |
| 1825 | static PyObject *__pyx_n_s_StopIteration; |
| 1826 | static PyObject *__pyx_kp_s_The_attribute_s_doesn_t_exist; |
| 1827 | static PyObject *__pyx_kp_s_The_value_is_not_a_collection; |
| 1828 | static PyObject *__pyx_kp_s_The_value_is_not_a_dict; |
| 1829 | static PyObject *__pyx_kp_s_The_value_is_not_a_list; |
| 1830 | static PyObject *__pyx_n_s_Token; |
| 1831 | static PyObject *__pyx_n_s_Token___init; |
| 1832 | static PyObject *__pyx_n_s_TypeError; |
| 1833 | static PyObject *__pyx_kp_s_Type_s_has_no_corresponding_nati; |
| 1834 | static PyObject *__pyx_kp_s_Unable_to_parse_the_pattern; |
| 1835 | static PyObject *__pyx_kp_s_Uninitialized_collection; |
| 1836 | static PyObject *__pyx_n_s_Union; |
| 1837 | static PyObject *__pyx_n_s_Union___init; |
| 1838 | static PyObject *__pyx_n_s_Universe; |
| 1839 | static PyObject *__pyx_n_s_Universe___init; |
| 1840 | static PyObject *__pyx_n_s_Universe___repr; |
| 1841 | static PyObject *__pyx_kp_s_Unknown_collection_type; |
| 1842 | static PyObject *__pyx_kp_s_Unknown_iter_type; |
| 1843 | static PyObject *__pyx_kp_s_Unknown_value_type_from_the_serv; |
| 1844 | static PyObject *__pyx_kp_s_Unsupported_operand_type_s_for_r; |
| 1845 | static PyObject *__pyx_kp_s_Unsupported_operand_type_s_for_r_2; |
| 1846 | static PyObject *__pyx_n_s_VALUE_TYPE_BIN; |
| 1847 | static PyObject *__pyx_n_s_VALUE_TYPE_COLL; |
| 1848 | static PyObject *__pyx_n_s_VALUE_TYPE_DICT; |
| 1849 | static PyObject *__pyx_n_s_VALUE_TYPE_ERROR; |
| 1850 | static PyObject *__pyx_n_s_VALUE_TYPE_FLOAT; |
| 1851 | static PyObject *__pyx_n_s_VALUE_TYPE_INT64; |
| 1852 | static PyObject *__pyx_n_s_VALUE_TYPE_LIST; |
| 1853 | static PyObject *__pyx_n_s_VALUE_TYPE_NONE; |
| 1854 | static PyObject *__pyx_n_s_VALUE_TYPE_STRING; |
| 1855 | static PyObject *__pyx_n_s_ValueError; |
| 1856 | static PyObject *__pyx_kp_s_Value_type_not_iterable; |
| 1857 | static PyObject *__pyx_n_s_XmmsError; |
| 1858 | static PyObject *__pyx_kp_s__16; |
| 1859 | static PyObject *__pyx_kp_s__36; |
| 1860 | static PyObject *__pyx_n_s_a; |
| 1861 | static PyObject *__pyx_n_s_append; |
| 1862 | static PyObject *__pyx_n_s_args; |
| 1863 | static PyObject *__pyx_n_s_attributes; |
| 1864 | static PyObject *__pyx_n_s_c; |
| 1865 | static PyObject *__pyx_n_s_call; |
| 1866 | static PyObject *__pyx_n_s_class; |
| 1867 | static PyObject *__pyx_n_s_clear; |
| 1868 | static PyObject *__pyx_n_s_close; |
| 1869 | static PyObject *__pyx_n_s_cls; |
| 1870 | static PyObject *__pyx_n_s_coll; |
| 1871 | static PyObject *__pyx_n_s_coll_parse; |
| 1872 | static PyObject *__pyx_n_s_colltype; |
| 1873 | static PyObject *__pyx_n_s_copy; |
| 1874 | static PyObject *__pyx_n_s_default; |
| 1875 | static PyObject *__pyx_n_s_direction; |
| 1876 | static PyObject *__pyx_kp_s_direction_must_be_an_integer_or; |
| 1877 | static PyObject *__pyx_n_s_doc; |
| 1878 | static PyObject *__pyx_n_s_extend; |
| 1879 | static PyObject *__pyx_n_s_field; |
| 1880 | static PyObject *__pyx_n_s_get; |
| 1881 | static PyObject *__pyx_n_s_get_bin; |
| 1882 | static PyObject *__pyx_n_s_get_coll; |
| 1883 | static PyObject *__pyx_n_s_get_dict; |
| 1884 | static PyObject *__pyx_n_s_get_dict_iter; |
| 1885 | static PyObject *__pyx_n_s_get_error; |
| 1886 | static PyObject *__pyx_n_s_get_float; |
| 1887 | static PyObject *__pyx_n_s_get_int; |
| 1888 | static PyObject *__pyx_n_s_get_list; |
| 1889 | static PyObject *__pyx_n_s_get_list_iter; |
| 1890 | static PyObject *__pyx_n_s_get_propdict; |
| 1891 | static PyObject *__pyx_n_s_get_string; |
| 1892 | static PyObject *__pyx_n_s_get_type; |
| 1893 | static PyObject *__pyx_kp_s_home_travis_build_dsvensson_xmm; |
| 1894 | static PyObject *__pyx_n_s_i; |
| 1895 | static PyObject *__pyx_n_s_id; |
| 1896 | static PyObject *__pyx_n_s_ids; |
| 1897 | static PyObject *__pyx_kp_s_ids_r; |
| 1898 | static PyObject *__pyx_n_s_import; |
| 1899 | static PyObject *__pyx_n_s_init; |
| 1900 | static PyObject *__pyx_kp_s_init___argument_must_not_be_No; |
| 1901 | static PyObject *__pyx_n_s_insert; |
| 1902 | static PyObject *__pyx_n_s_is_error; |
| 1903 | static PyObject *__pyx_n_s_iserror; |
| 1904 | static PyObject *__pyx_n_s_items; |
| 1905 | static PyObject *__pyx_n_s_iteritems; |
| 1906 | static PyObject *__pyx_n_s_iterkeys; |
| 1907 | static PyObject *__pyx_n_s_itertype; |
| 1908 | static PyObject *__pyx_n_s_itervalues; |
| 1909 | static PyObject *__pyx_n_s_iterxitems; |
| 1910 | static PyObject *__pyx_n_s_iterxvalues; |
| 1911 | static PyObject *__pyx_n_s_join; |
| 1912 | static PyObject *__pyx_n_s_kargs; |
| 1913 | static PyObject *__pyx_n_s_keys; |
| 1914 | static PyObject *__pyx_n_s_length; |
| 1915 | static PyObject *__pyx_n_s_list; |
| 1916 | static PyObject *__pyx_n_s_main; |
| 1917 | static PyObject *__pyx_n_s_metaclass; |
| 1918 | static PyObject *__pyx_n_s_module; |
| 1919 | static PyObject *__pyx_n_s_name; |
| 1920 | static PyObject *__pyx_n_s_name_2; |
| 1921 | static PyObject *__pyx_n_s_namespace; |
| 1922 | static PyObject *__pyx_n_s_ns; |
| 1923 | static PyObject *__pyx_n_s_operand; |
| 1924 | static PyObject *__pyx_n_s_operands; |
| 1925 | static PyObject *__pyx_kp_s_operands_s; |
| 1926 | static PyObject *__pyx_n_s_operation; |
| 1927 | static PyObject *__pyx_n_s_parent; |
| 1928 | static PyObject *__pyx_n_s_pattern; |
| 1929 | static PyObject *__pyx_n_s_pattern_2; |
| 1930 | static PyObject *__pyx_n_s_pop; |
| 1931 | static PyObject *__pyx_n_s_prepare; |
| 1932 | static PyObject *__pyx_n_s_propdict; |
| 1933 | static PyObject *__pyx_n_s_pshuffle; |
| 1934 | static PyObject *__pyx_n_s_pyval; |
| 1935 | static PyObject *__pyx_n_s_pyx_vtable; |
| 1936 | static PyObject *__pyx_n_s_qualname; |
| 1937 | static PyObject *__pyx_n_s_queue; |
| 1938 | static PyObject *__pyx_n_s_random; |
| 1939 | static PyObject *__pyx_n_s_ref; |
| 1940 | static PyObject *__pyx_n_s_reference; |
| 1941 | static PyObject *__pyx_n_s_remove; |
| 1942 | static PyObject *__pyx_n_s_repr; |
| 1943 | static PyObject *__pyx_n_s_reset; |
| 1944 | static PyObject *__pyx_kp_s_s; |
| 1945 | static PyObject *__pyx_kp_s_s_s; |
| 1946 | static PyObject *__pyx_kp_s_s_s_2; |
| 1947 | static PyObject *__pyx_n_s_self; |
| 1948 | static PyObject *__pyx_n_s_send; |
| 1949 | static PyObject *__pyx_n_s_set_pyval; |
| 1950 | static PyObject *__pyx_n_s_sourcepref; |
| 1951 | static PyObject *__pyx_n_s_start; |
| 1952 | static PyObject *__pyx_n_s_test; |
| 1953 | static PyObject *__pyx_n_s_throw; |
| 1954 | static PyObject *__pyx_n_s_type; |
| 1955 | static PyObject *__pyx_n_s_update; |
| 1956 | static PyObject *__pyx_n_s_upper; |
| 1957 | static PyObject *__pyx_n_s_v; |
| 1958 | static PyObject *__pyx_n_s_value; |
| 1959 | static PyObject *__pyx_n_s_values; |
| 1960 | static PyObject *__pyx_n_s_xget; |
| 1961 | static PyObject *__pyx_n_s_xitems; |
| 1962 | static PyObject *__pyx_n_s_xmmsvalue; |
| 1963 | static PyObject *__pyx_n_s_xvalues; |
| 1964 | static PyObject *__pyx_int_0; |
| 1965 | static PyObject *__pyx_int_neg_1; |
| 1966 | static PyObject *__pyx_tuple_; |
| 1967 | static PyObject *__pyx_tuple__2; |
| 1968 | static PyObject *__pyx_tuple__3; |
| 1969 | static PyObject *__pyx_tuple__4; |
| 1970 | static PyObject *__pyx_tuple__5; |
| 1971 | static PyObject *__pyx_tuple__6; |
| 1972 | static PyObject *__pyx_tuple__7; |
| 1973 | static PyObject *__pyx_tuple__8; |
| 1974 | static PyObject *__pyx_tuple__9; |
| 1975 | static PyObject *__pyx_slice__23; |
| 1976 | static PyObject *__pyx_tuple__10; |
| 1977 | static PyObject *__pyx_tuple__11; |
| 1978 | static PyObject *__pyx_tuple__12; |
| 1979 | static PyObject *__pyx_tuple__13; |
| 1980 | static PyObject *__pyx_tuple__14; |
| 1981 | static PyObject *__pyx_tuple__15; |
| 1982 | static PyObject *__pyx_tuple__17; |
| 1983 | static PyObject *__pyx_tuple__18; |
| 1984 | static PyObject *__pyx_tuple__19; |
| 1985 | static PyObject *__pyx_tuple__20; |
| 1986 | static PyObject *__pyx_tuple__21; |
| 1987 | static PyObject *__pyx_tuple__22; |
| 1988 | static PyObject *__pyx_tuple__24; |
| 1989 | static PyObject *__pyx_tuple__25; |
| 1990 | static PyObject *__pyx_tuple__26; |
| 1991 | static PyObject *__pyx_tuple__27; |
| 1992 | static PyObject *__pyx_tuple__28; |
| 1993 | static PyObject *__pyx_tuple__29; |
| 1994 | static PyObject *__pyx_tuple__30; |
| 1995 | static PyObject *__pyx_tuple__31; |
| 1996 | static PyObject *__pyx_tuple__32; |
| 1997 | static PyObject *__pyx_tuple__33; |
| 1998 | static PyObject *__pyx_tuple__34; |
| 1999 | static PyObject *__pyx_tuple__35; |
| 2000 | static PyObject *__pyx_tuple__37; |
| 2001 | static PyObject *__pyx_tuple__38; |
| 2002 | static PyObject *__pyx_tuple__39; |
| 2003 | static PyObject *__pyx_tuple__41; |
| 2004 | static PyObject *__pyx_tuple__43; |
| 2005 | static PyObject *__pyx_tuple__44; |
| 2006 | static PyObject *__pyx_tuple__46; |
| 2007 | static PyObject *__pyx_tuple__48; |
| 2008 | static PyObject *__pyx_tuple__50; |
| 2009 | static PyObject *__pyx_tuple__51; |
| 2010 | static PyObject *__pyx_tuple__53; |
| 2011 | static PyObject *__pyx_tuple__54; |
| 2012 | static PyObject *__pyx_tuple__56; |
| 2013 | static PyObject *__pyx_tuple__57; |
| 2014 | static PyObject *__pyx_tuple__59; |
| 2015 | static PyObject *__pyx_tuple__60; |
| 2016 | static PyObject *__pyx_tuple__62; |
| 2017 | static PyObject *__pyx_tuple__63; |
| 2018 | static PyObject *__pyx_tuple__65; |
| 2019 | static PyObject *__pyx_tuple__66; |
| 2020 | static PyObject *__pyx_tuple__68; |
| 2021 | static PyObject *__pyx_tuple__69; |
| 2022 | static PyObject *__pyx_tuple__71; |
| 2023 | static PyObject *__pyx_tuple__72; |
| 2024 | static PyObject *__pyx_tuple__74; |
| 2025 | static PyObject *__pyx_tuple__75; |
| 2026 | static PyObject *__pyx_tuple__77; |
| 2027 | static PyObject *__pyx_tuple__78; |
| 2028 | static PyObject *__pyx_tuple__80; |
| 2029 | static PyObject *__pyx_tuple__81; |
| 2030 | static PyObject *__pyx_tuple__83; |
| 2031 | static PyObject *__pyx_tuple__84; |
| 2032 | static PyObject *__pyx_tuple__86; |
| 2033 | static PyObject *__pyx_tuple__87; |
| 2034 | static PyObject *__pyx_tuple__89; |
| 2035 | static PyObject *__pyx_tuple__90; |
| 2036 | static PyObject *__pyx_tuple__92; |
| 2037 | static PyObject *__pyx_tuple__93; |
| 2038 | static PyObject *__pyx_tuple__95; |
| 2039 | static PyObject *__pyx_tuple__96; |
| 2040 | static PyObject *__pyx_tuple__98; |
| 2041 | static PyObject *__pyx_tuple__100; |
| 2042 | static PyObject *__pyx_tuple__102; |
| 2043 | static PyObject *__pyx_tuple__103; |
| 2044 | static PyObject *__pyx_codeobj__40; |
| 2045 | static PyObject *__pyx_codeobj__42; |
| 2046 | static PyObject *__pyx_codeobj__45; |
| 2047 | static PyObject *__pyx_codeobj__47; |
| 2048 | static PyObject *__pyx_codeobj__49; |
| 2049 | static PyObject *__pyx_codeobj__52; |
| 2050 | static PyObject *__pyx_codeobj__55; |
| 2051 | static PyObject *__pyx_codeobj__58; |
| 2052 | static PyObject *__pyx_codeobj__61; |
| 2053 | static PyObject *__pyx_codeobj__64; |
| 2054 | static PyObject *__pyx_codeobj__67; |
| 2055 | static PyObject *__pyx_codeobj__70; |
| 2056 | static PyObject *__pyx_codeobj__73; |
| 2057 | static PyObject *__pyx_codeobj__76; |
| 2058 | static PyObject *__pyx_codeobj__79; |
| 2059 | static PyObject *__pyx_codeobj__82; |
| 2060 | static PyObject *__pyx_codeobj__85; |
| 2061 | static PyObject *__pyx_codeobj__88; |
| 2062 | static PyObject *__pyx_codeobj__91; |
| 2063 | static PyObject *__pyx_codeobj__94; |
| 2064 | static PyObject *__pyx_codeobj__97; |
| 2065 | static PyObject *__pyx_codeobj__99; |
| 2066 | static PyObject *__pyx_codeobj__101; |
| 2067 | static PyObject *__pyx_codeobj__104; |
| 2068 | |
| 2069 | /* "xmmsvalue.pyx":43 |
| 2070 | * |
| 2071 | * |
| 2072 | * cdef xmmsv_t *create_native_value(value) except NULL: # <<<<<<<<<<<<<< |
| 2073 | * cdef xmmsv_t *ret = NULL |
| 2074 | * cdef xmmsv_t *v |
| 2075 | */ |
| 2076 | |
| 2077 | static xmmsv_t *__pyx_f_9xmmsvalue_create_native_value(PyObject *__pyx_v_value) { |
| 2078 | xmmsv_t *__pyx_v_ret; |
| 2079 | xmmsv_t *__pyx_v_v; |
| 2080 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_xv = 0; |
| 2081 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c = 0; |
| 2082 | PyObject *__pyx_v_s = NULL((void*)0); |
| 2083 | PyObject *__pyx_v_key = NULL((void*)0); |
| 2084 | PyObject *__pyx_v_k = NULL((void*)0); |
| 2085 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_v_it = NULL((void*)0); |
| 2086 | PyObject *__pyx_v_item = NULL((void*)0); |
| 2087 | xmmsv_t *__pyx_r; |
| 2088 | __Pyx_RefNannyDeclarations |
| 2089 | int __pyx_t_1; |
| 2090 | int __pyx_t_2; |
| 2091 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 2092 | int __pyx_t_4; |
| 2093 | int __pyx_t_5; |
| 2094 | char *__pyx_t_6; |
| 2095 | PyObject *__pyx_t_7 = NULL((void*)0); |
| 2096 | Py_ssize_t __pyx_t_8; |
| 2097 | PyObject *(*__pyx_t_9)(PyObject *); |
| 2098 | xmmsv_t *__pyx_t_10; |
| 2099 | PyObject *__pyx_t_11 = NULL((void*)0); |
| 2100 | PyObject *__pyx_t_12 = NULL((void*)0); |
| 2101 | PyObject *__pyx_t_13 = NULL((void*)0); |
| 2102 | PyObject *__pyx_t_14 = NULL((void*)0); |
| 2103 | PyObject *__pyx_t_15 = NULL((void*)0); |
| 2104 | PyObject *__pyx_t_16 = NULL((void*)0); |
| 2105 | int __pyx_lineno = 0; |
| 2106 | const char *__pyx_filename = NULL((void*)0); |
| 2107 | int __pyx_clineno = 0; |
| 2108 | __Pyx_RefNannySetupContext("create_native_value", 0); |
| 2109 | |
| 2110 | /* "xmmsvalue.pyx":44 |
| 2111 | * |
| 2112 | * cdef xmmsv_t *create_native_value(value) except NULL: |
| 2113 | * cdef xmmsv_t *ret = NULL # <<<<<<<<<<<<<< |
| 2114 | * cdef xmmsv_t *v |
| 2115 | * cdef XmmsValue xv |
| 2116 | */ |
| 2117 | __pyx_v_ret = NULL((void*)0); |
| 2118 | |
| 2119 | /* "xmmsvalue.pyx":49 |
| 2120 | * cdef Collection c |
| 2121 | * |
| 2122 | * if value is None: # <<<<<<<<<<<<<< |
| 2123 | * ret = xmmsv_new_none() |
| 2124 | * elif isinstance(value, XmmsValue): |
| 2125 | */ |
| 2126 | __pyx_t_1 = (__pyx_v_value == Py_None(&_Py_NoneStruct)); |
| 2127 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 2128 | if (__pyx_t_2) { |
| 2129 | |
| 2130 | /* "xmmsvalue.pyx":50 |
| 2131 | * |
| 2132 | * if value is None: |
| 2133 | * ret = xmmsv_new_none() # <<<<<<<<<<<<<< |
| 2134 | * elif isinstance(value, XmmsValue): |
| 2135 | * xv = value |
| 2136 | */ |
| 2137 | __pyx_v_ret = xmmsv_new_none(); |
| 2138 | goto __pyx_L3; |
| 2139 | } |
| 2140 | |
| 2141 | /* "xmmsvalue.pyx":51 |
| 2142 | * if value is None: |
| 2143 | * ret = xmmsv_new_none() |
| 2144 | * elif isinstance(value, XmmsValue): # <<<<<<<<<<<<<< |
| 2145 | * xv = value |
| 2146 | * ret = xmmsv_copy(xv.val) # Prevent side effects. |
| 2147 | */ |
| 2148 | __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_value, ((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue))((((PyObject*)(__pyx_v_value))->ob_type) == ((PyTypeObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)) || PyType_IsSubtype ((((PyObject*)(__pyx_v_value))->ob_type), ((PyTypeObject * )((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)))); |
| 2149 | __pyx_t_1 = (__pyx_t_2 != 0); |
| 2150 | if (__pyx_t_1) { |
| 2151 | |
| 2152 | /* "xmmsvalue.pyx":52 |
| 2153 | * ret = xmmsv_new_none() |
| 2154 | * elif isinstance(value, XmmsValue): |
| 2155 | * xv = value # <<<<<<<<<<<<<< |
| 2156 | * ret = xmmsv_copy(xv.val) # Prevent side effects. |
| 2157 | * elif isinstance(value, Collection): |
| 2158 | */ |
| 2159 | if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_9xmmsvalue_XmmsValue)))__builtin_expect(!!(((__pyx_v_value) == (&_Py_NoneStruct) ) || __builtin_expect(!!(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_9xmmsvalue_XmmsValue )), 1)), 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__2159; goto __pyx_L1_error;} |
| 2160 | __pyx_t_3 = __pyx_v_value; |
| 2161 | __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); |
| 2162 | __pyx_v_xv = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_t_3); |
| 2163 | __pyx_t_3 = 0; |
| 2164 | |
| 2165 | /* "xmmsvalue.pyx":53 |
| 2166 | * elif isinstance(value, XmmsValue): |
| 2167 | * xv = value |
| 2168 | * ret = xmmsv_copy(xv.val) # Prevent side effects. # <<<<<<<<<<<<<< |
| 2169 | * elif isinstance(value, Collection): |
| 2170 | * c = value |
| 2171 | */ |
| 2172 | __pyx_v_ret = xmmsv_copy(__pyx_v_xv->val); |
| 2173 | goto __pyx_L3; |
| 2174 | } |
| 2175 | |
| 2176 | /* "xmmsvalue.pyx":54 |
| 2177 | * xv = value |
| 2178 | * ret = xmmsv_copy(xv.val) # Prevent side effects. |
| 2179 | * elif isinstance(value, Collection): # <<<<<<<<<<<<<< |
| 2180 | * c = value |
| 2181 | * ret = xmmsv_copy(<xmmsv_t *>c.coll) #Prevent side effects. |
| 2182 | */ |
| 2183 | __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_value, ((PyObject*)__pyx_ptype_9xmmsvalue_Collection))((((PyObject*)(__pyx_v_value))->ob_type) == ((PyTypeObject *)((PyObject*)__pyx_ptype_9xmmsvalue_Collection)) || PyType_IsSubtype ((((PyObject*)(__pyx_v_value))->ob_type), ((PyTypeObject * )((PyObject*)__pyx_ptype_9xmmsvalue_Collection)))); |
| 2184 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 2185 | if (__pyx_t_2) { |
| 2186 | |
| 2187 | /* "xmmsvalue.pyx":55 |
| 2188 | * ret = xmmsv_copy(xv.val) # Prevent side effects. |
| 2189 | * elif isinstance(value, Collection): |
| 2190 | * c = value # <<<<<<<<<<<<<< |
| 2191 | * ret = xmmsv_copy(<xmmsv_t *>c.coll) #Prevent side effects. |
| 2192 | * elif isinstance(value, int): |
| 2193 | */ |
| 2194 | if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_9xmmsvalue_Collection)))__builtin_expect(!!(((__pyx_v_value) == (&_Py_NoneStruct) ) || __builtin_expect(!!(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_9xmmsvalue_Collection )), 1)), 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__2194; goto __pyx_L1_error;} |
| 2195 | __pyx_t_3 = __pyx_v_value; |
| 2196 | __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); |
| 2197 | __pyx_v_c = ((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_t_3); |
| 2198 | __pyx_t_3 = 0; |
| 2199 | |
| 2200 | /* "xmmsvalue.pyx":56 |
| 2201 | * elif isinstance(value, Collection): |
| 2202 | * c = value |
| 2203 | * ret = xmmsv_copy(<xmmsv_t *>c.coll) #Prevent side effects. # <<<<<<<<<<<<<< |
| 2204 | * elif isinstance(value, int): |
| 2205 | * ret = xmmsv_new_int(value) |
| 2206 | */ |
| 2207 | __pyx_v_ret = xmmsv_copy(((xmmsv_t *)__pyx_v_c->__pyx_base.coll)); |
| 2208 | goto __pyx_L3; |
| 2209 | } |
| 2210 | |
| 2211 | /* "xmmsvalue.pyx":57 |
| 2212 | * c = value |
| 2213 | * ret = xmmsv_copy(<xmmsv_t *>c.coll) #Prevent side effects. |
| 2214 | * elif isinstance(value, int): # <<<<<<<<<<<<<< |
| 2215 | * ret = xmmsv_new_int(value) |
| 2216 | * elif isinstance(value, (unicode, str)): |
| 2217 | */ |
| 2218 | __pyx_t_2 = PyInt_Check(__pyx_v_value)((((__pyx_v_value)->ob_type)->tp_flags & ((1L<< 23))) != 0); |
| 2219 | __pyx_t_1 = (__pyx_t_2 != 0); |
| 2220 | if (__pyx_t_1) { |
| 2221 | |
| 2222 | /* "xmmsvalue.pyx":58 |
| 2223 | * ret = xmmsv_copy(<xmmsv_t *>c.coll) #Prevent side effects. |
| 2224 | * elif isinstance(value, int): |
| 2225 | * ret = xmmsv_new_int(value) # <<<<<<<<<<<<<< |
| 2226 | * elif isinstance(value, (unicode, str)): |
| 2227 | * s = from_unicode(value) |
| 2228 | */ |
| 2229 | __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_4 == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__2229; goto __pyx_L1_error;} |
| 2230 | __pyx_v_ret = xmmsv_new_int(__pyx_t_4); |
| 2231 | goto __pyx_L3; |
| 2232 | } |
| 2233 | |
| 2234 | /* "xmmsvalue.pyx":59 |
| 2235 | * elif isinstance(value, int): |
| 2236 | * ret = xmmsv_new_int(value) |
| 2237 | * elif isinstance(value, (unicode, str)): # <<<<<<<<<<<<<< |
| 2238 | * s = from_unicode(value) |
| 2239 | * ret = xmmsv_new_string(s) |
| 2240 | */ |
| 2241 | __pyx_t_1 = PyUnicode_Check(__pyx_v_value)((((((PyObject*)(__pyx_v_value))->ob_type))->tp_flags & ((1L<<28))) != 0); |
| 2242 | if (!__pyx_t_1) { |
| 2243 | __pyx_t_2 = PyString_Check(__pyx_v_value)((((((PyObject*)(__pyx_v_value))->ob_type))->tp_flags & ((1L<<27))) != 0); |
| 2244 | __pyx_t_5 = __pyx_t_2; |
| 2245 | } else { |
| 2246 | __pyx_t_5 = __pyx_t_1; |
| 2247 | } |
| 2248 | __pyx_t_1 = (__pyx_t_5 != 0); |
| 2249 | if (__pyx_t_1) { |
| 2250 | |
| 2251 | /* "xmmsvalue.pyx":60 |
| 2252 | * ret = xmmsv_new_int(value) |
| 2253 | * elif isinstance(value, (unicode, str)): |
| 2254 | * s = from_unicode(value) # <<<<<<<<<<<<<< |
| 2255 | * ret = xmmsv_new_string(s) |
| 2256 | * elif hasattr(value, "keys"): |
| 2257 | */ |
| 2258 | __pyx_t_3 = __pyx_f_9xmmsutils_from_unicode(__pyx_v_value); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__2258; goto __pyx_L1_error;} |
| 2259 | __Pyx_GOTREF(__pyx_t_3); |
| 2260 | __pyx_v_s = __pyx_t_3; |
| 2261 | __pyx_t_3 = 0; |
| 2262 | |
| 2263 | /* "xmmsvalue.pyx":61 |
| 2264 | * elif isinstance(value, (unicode, str)): |
| 2265 | * s = from_unicode(value) |
| 2266 | * ret = xmmsv_new_string(s) # <<<<<<<<<<<<<< |
| 2267 | * elif hasattr(value, "keys"): |
| 2268 | * ret = xmmsv_new_dict() |
| 2269 | */ |
| 2270 | __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_s); if (unlikely((!__pyx_t_6) && PyErr_Occurred())__builtin_expect(!!((!__pyx_t_6) && PyErr_Occurred()) , 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__2270; goto __pyx_L1_error;} |
| 2271 | __pyx_v_ret = xmmsv_new_string(__pyx_t_6); |
| 2272 | goto __pyx_L3; |
| 2273 | } |
| 2274 | |
| 2275 | /* "xmmsvalue.pyx":62 |
| 2276 | * s = from_unicode(value) |
| 2277 | * ret = xmmsv_new_string(s) |
| 2278 | * elif hasattr(value, "keys"): # <<<<<<<<<<<<<< |
| 2279 | * ret = xmmsv_new_dict() |
| 2280 | * for key in value.keys(): |
| 2281 | */ |
| 2282 | __pyx_t_1 = PyObject_HasAttr(__pyx_v_value, __pyx_n_s_keys); if (unlikely(__pyx_t_1 == -1)__builtin_expect(!!(__pyx_t_1 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 62; __pyx_clineno = __LINE__2282; goto __pyx_L1_error;} |
| 2283 | __pyx_t_5 = (__pyx_t_1 != 0); |
| 2284 | if (__pyx_t_5) { |
| 2285 | |
| 2286 | /* "xmmsvalue.pyx":63 |
| 2287 | * ret = xmmsv_new_string(s) |
| 2288 | * elif hasattr(value, "keys"): |
| 2289 | * ret = xmmsv_new_dict() # <<<<<<<<<<<<<< |
| 2290 | * for key in value.keys(): |
| 2291 | * k = from_unicode(key) |
| 2292 | */ |
| 2293 | __pyx_v_ret = xmmsv_new_dict(); |
| 2294 | |
| 2295 | /* "xmmsvalue.pyx":64 |
| 2296 | * elif hasattr(value, "keys"): |
| 2297 | * ret = xmmsv_new_dict() |
| 2298 | * for key in value.keys(): # <<<<<<<<<<<<<< |
| 2299 | * k = from_unicode(key) |
| 2300 | * v = create_native_value(value[key]) |
| 2301 | */ |
| 2302 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__2302; goto __pyx_L1_error;} |
| 2303 | __Pyx_GOTREF(__pyx_t_3); |
| 2304 | __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__2304; goto __pyx_L1_error;} |
| 2305 | __Pyx_GOTREF(__pyx_t_7); |
| 2306 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 2307 | if (PyList_CheckExact(__pyx_t_7)((((PyObject*)(__pyx_t_7))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_t_7)((((PyObject*)(__pyx_t_7))->ob_type) == &PyTuple_Type)) { |
| 2308 | __pyx_t_3 = __pyx_t_7; __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_8 = 0; |
| 2309 | __pyx_t_9 = NULL((void*)0); |
| 2310 | } else { |
| 2311 | __pyx_t_8 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__2311; goto __pyx_L1_error;} |
| 2312 | __Pyx_GOTREF(__pyx_t_3); |
| 2313 | __pyx_t_9 = Py_TYPE(__pyx_t_3)(((PyObject*)(__pyx_t_3))->ob_type)->tp_iternext; |
| 2314 | } |
| 2315 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 2316 | for (;;) { |
| 2317 | if (!__pyx_t_9 && PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type)) { |
| 2318 | if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 2319 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 2320 | __pyx_t_7 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_8)(((PyListObject *)(__pyx_t_3))->ob_item[__pyx_t_8]); __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); __pyx_t_8++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__2320; goto __pyx_L1_error;} |
| 2321 | #else |
| 2322 | __pyx_t_7 = PySequence_ITEM(__pyx_t_3, __pyx_t_8)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_8) ); __pyx_t_8++; if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__2322; goto __pyx_L1_error;} |
| 2323 | #endif |
| 2324 | } else if (!__pyx_t_9 && PyTuple_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)) { |
| 2325 | if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 2326 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 2327 | __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_8)(((PyTupleObject *)(__pyx_t_3))->ob_item[__pyx_t_8]); __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); __pyx_t_8++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__2327; goto __pyx_L1_error;} |
| 2328 | #else |
| 2329 | __pyx_t_7 = PySequence_ITEM(__pyx_t_3, __pyx_t_8)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_8) ); __pyx_t_8++; if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__2329; goto __pyx_L1_error;} |
| 2330 | #endif |
| 2331 | } else { |
| 2332 | __pyx_t_7 = __pyx_t_9(__pyx_t_3); |
| 2333 | if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) { |
| 2334 | PyObject* exc_type = PyErr_Occurred(); |
| 2335 | if (exc_type) { |
| 2336 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 2337 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__2337; goto __pyx_L1_error;} |
| 2338 | } |
| 2339 | break; |
| 2340 | } |
| 2341 | __Pyx_GOTREF(__pyx_t_7); |
| 2342 | } |
| 2343 | __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_7)do { PyObject *tmp = (PyObject *) __pyx_v_key; __pyx_v_key = __pyx_t_7 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 2344 | __pyx_t_7 = 0; |
| 2345 | |
| 2346 | /* "xmmsvalue.pyx":65 |
| 2347 | * ret = xmmsv_new_dict() |
| 2348 | * for key in value.keys(): |
| 2349 | * k = from_unicode(key) # <<<<<<<<<<<<<< |
| 2350 | * v = create_native_value(value[key]) |
| 2351 | * xmmsv_dict_set(ret, k, v) |
| 2352 | */ |
| 2353 | __pyx_t_7 = __pyx_f_9xmmsutils_from_unicode(__pyx_v_key); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__2353; goto __pyx_L1_error;} |
| 2354 | __Pyx_GOTREF(__pyx_t_7); |
| 2355 | __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_7)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_t_7 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 2356 | __pyx_t_7 = 0; |
| 2357 | |
| 2358 | /* "xmmsvalue.pyx":66 |
| 2359 | * for key in value.keys(): |
| 2360 | * k = from_unicode(key) |
| 2361 | * v = create_native_value(value[key]) # <<<<<<<<<<<<<< |
| 2362 | * xmmsv_dict_set(ret, k, v) |
| 2363 | * xmmsv_unref(v) |
| 2364 | */ |
| 2365 | __pyx_t_7 = PyObject_GetItem(__pyx_v_value, __pyx_v_key); if (unlikely(__pyx_t_7 == NULL)__builtin_expect(!!(__pyx_t_7 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__2365; goto __pyx_L1_error;}; |
| 2366 | __Pyx_GOTREF(__pyx_t_7); |
| 2367 | __pyx_t_10 = __pyx_f_9xmmsvalue_create_native_value(__pyx_t_7); if (unlikely(__pyx_t_10 == NULL)__builtin_expect(!!(__pyx_t_10 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__2367; goto __pyx_L1_error;} |
| 2368 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 2369 | __pyx_v_v = __pyx_t_10; |
| 2370 | |
| 2371 | /* "xmmsvalue.pyx":67 |
| 2372 | * k = from_unicode(key) |
| 2373 | * v = create_native_value(value[key]) |
| 2374 | * xmmsv_dict_set(ret, k, v) # <<<<<<<<<<<<<< |
| 2375 | * xmmsv_unref(v) |
| 2376 | * else: |
| 2377 | */ |
| 2378 | __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_v_k); if (unlikely((!__pyx_t_6) && PyErr_Occurred())__builtin_expect(!!((!__pyx_t_6) && PyErr_Occurred()) , 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 67; __pyx_clineno = __LINE__2378; goto __pyx_L1_error;} |
| 2379 | xmmsv_dict_set(__pyx_v_ret, __pyx_t_6, __pyx_v_v); |
| 2380 | |
| 2381 | /* "xmmsvalue.pyx":68 |
| 2382 | * v = create_native_value(value[key]) |
| 2383 | * xmmsv_dict_set(ret, k, v) |
| 2384 | * xmmsv_unref(v) # <<<<<<<<<<<<<< |
| 2385 | * else: |
| 2386 | * try: |
| 2387 | */ |
| 2388 | xmmsv_unref(__pyx_v_v); |
| 2389 | } |
| 2390 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 2391 | goto __pyx_L3; |
| 2392 | } |
| 2393 | /*else*/ { |
| 2394 | |
| 2395 | /* "xmmsvalue.pyx":70 |
| 2396 | * xmmsv_unref(v) |
| 2397 | * else: |
| 2398 | * try: # <<<<<<<<<<<<<< |
| 2399 | * it = iter(value) |
| 2400 | * except TypeError: |
| 2401 | */ |
| 2402 | { |
| 2403 | __Pyx_ExceptionSave(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13); |
| 2404 | __Pyx_XGOTREF(__pyx_t_11); |
| 2405 | __Pyx_XGOTREF(__pyx_t_12); |
| 2406 | __Pyx_XGOTREF(__pyx_t_13); |
| 2407 | /*try:*/ { |
| 2408 | |
| 2409 | /* "xmmsvalue.pyx":71 |
| 2410 | * else: |
| 2411 | * try: |
| 2412 | * it = iter(value) # <<<<<<<<<<<<<< |
| 2413 | * except TypeError: |
| 2414 | * raise TypeError("Type '%s' has no corresponding native value type" |
| 2415 | */ |
| 2416 | __pyx_t_3 = PyObject_GetIter(__pyx_v_value); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__2416; goto __pyx_L6_error;} |
| 2417 | __Pyx_GOTREF(__pyx_t_3); |
| 2418 | __pyx_v_it = __pyx_t_3; |
| 2419 | __pyx_t_3 = 0; |
| 2420 | } |
| 2421 | /*else:*/ { |
| 2422 | |
| 2423 | /* "xmmsvalue.pyx":76 |
| 2424 | * % value.__class__.__name__) |
| 2425 | * else: |
| 2426 | * ret = xmmsv_new_list() # <<<<<<<<<<<<<< |
| 2427 | * for item in value: |
| 2428 | * v = create_native_value(item) |
| 2429 | */ |
| 2430 | __pyx_v_ret = xmmsv_new_list(); |
| 2431 | |
| 2432 | /* "xmmsvalue.pyx":77 |
| 2433 | * else: |
| 2434 | * ret = xmmsv_new_list() |
| 2435 | * for item in value: # <<<<<<<<<<<<<< |
| 2436 | * v = create_native_value(item) |
| 2437 | * xmmsv_list_append(ret, v) |
| 2438 | */ |
| 2439 | if (PyList_CheckExact(__pyx_v_value)((((PyObject*)(__pyx_v_value))->ob_type) == &PyList_Type ) || PyTuple_CheckExact(__pyx_v_value)((((PyObject*)(__pyx_v_value))->ob_type) == &PyTuple_Type )) { |
| 2440 | __pyx_t_3 = __pyx_v_value; __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_8 = 0; |
| 2441 | __pyx_t_9 = NULL((void*)0); |
| 2442 | } else { |
| 2443 | __pyx_t_8 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_value); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__2443; goto __pyx_L8_except_error;} |
| 2444 | __Pyx_GOTREF(__pyx_t_3); |
| 2445 | __pyx_t_9 = Py_TYPE(__pyx_t_3)(((PyObject*)(__pyx_t_3))->ob_type)->tp_iternext; |
| 2446 | } |
| 2447 | for (;;) { |
| 2448 | if (!__pyx_t_9 && PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type)) { |
| 2449 | if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 2450 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 2451 | __pyx_t_7 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_8)(((PyListObject *)(__pyx_t_3))->ob_item[__pyx_t_8]); __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); __pyx_t_8++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__2451; goto __pyx_L8_except_error;} |
| 2452 | #else |
| 2453 | __pyx_t_7 = PySequence_ITEM(__pyx_t_3, __pyx_t_8)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_8) ); __pyx_t_8++; if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__2453; goto __pyx_L8_except_error;} |
| 2454 | #endif |
| 2455 | } else if (!__pyx_t_9 && PyTuple_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)) { |
| 2456 | if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 2457 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 2458 | __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_8)(((PyTupleObject *)(__pyx_t_3))->ob_item[__pyx_t_8]); __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); __pyx_t_8++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__2458; goto __pyx_L8_except_error;} |
| 2459 | #else |
| 2460 | __pyx_t_7 = PySequence_ITEM(__pyx_t_3, __pyx_t_8)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_8) ); __pyx_t_8++; if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__2460; goto __pyx_L8_except_error;} |
| 2461 | #endif |
| 2462 | } else { |
| 2463 | __pyx_t_7 = __pyx_t_9(__pyx_t_3); |
| 2464 | if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) { |
| 2465 | PyObject* exc_type = PyErr_Occurred(); |
| 2466 | if (exc_type) { |
| 2467 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 2468 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__2468; goto __pyx_L8_except_error;} |
| 2469 | } |
| 2470 | break; |
| 2471 | } |
| 2472 | __Pyx_GOTREF(__pyx_t_7); |
| 2473 | } |
| 2474 | __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_7)do { PyObject *tmp = (PyObject *) __pyx_v_item; __pyx_v_item = __pyx_t_7; do { if ((tmp) == ((void*)0)) ; else do { if ( -- ((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while ( 0); |
| 2475 | __pyx_t_7 = 0; |
| 2476 | |
| 2477 | /* "xmmsvalue.pyx":78 |
| 2478 | * ret = xmmsv_new_list() |
| 2479 | * for item in value: |
| 2480 | * v = create_native_value(item) # <<<<<<<<<<<<<< |
| 2481 | * xmmsv_list_append(ret, v) |
| 2482 | * xmmsv_unref(v) # the list took its own reference |
| 2483 | */ |
| 2484 | __pyx_t_10 = __pyx_f_9xmmsvalue_create_native_value(__pyx_v_item); if (unlikely(__pyx_t_10 == NULL)__builtin_expect(!!(__pyx_t_10 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__2484; goto __pyx_L8_except_error;} |
| 2485 | __pyx_v_v = __pyx_t_10; |
| 2486 | |
| 2487 | /* "xmmsvalue.pyx":79 |
| 2488 | * for item in value: |
| 2489 | * v = create_native_value(item) |
| 2490 | * xmmsv_list_append(ret, v) # <<<<<<<<<<<<<< |
| 2491 | * xmmsv_unref(v) # the list took its own reference |
| 2492 | * return ret |
| 2493 | */ |
| 2494 | xmmsv_list_append(__pyx_v_ret, __pyx_v_v); |
| 2495 | |
| 2496 | /* "xmmsvalue.pyx":80 |
| 2497 | * v = create_native_value(item) |
| 2498 | * xmmsv_list_append(ret, v) |
| 2499 | * xmmsv_unref(v) # the list took its own reference # <<<<<<<<<<<<<< |
| 2500 | * return ret |
| 2501 | * |
| 2502 | */ |
| 2503 | xmmsv_unref(__pyx_v_v); |
| 2504 | } |
| 2505 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 2506 | } |
| 2507 | __Pyx_XDECREF(__pyx_t_11)do { if ((__pyx_t_11) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_11))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_11)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_11)))); } while (0); } while (0); __pyx_t_11 = 0; |
| 2508 | __Pyx_XDECREF(__pyx_t_12)do { if ((__pyx_t_12) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_12))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_12)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_12)))); } while (0); } while (0); __pyx_t_12 = 0; |
| 2509 | __Pyx_XDECREF(__pyx_t_13)do { if ((__pyx_t_13) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_13))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_13)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_13)))); } while (0); } while (0); __pyx_t_13 = 0; |
| 2510 | goto __pyx_L13_try_end; |
| 2511 | __pyx_L6_error:; |
| 2512 | __Pyx_XDECREF(__pyx_t_7)do { if ((__pyx_t_7) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_7)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while (0); } while (0); __pyx_t_7 = 0; |
| 2513 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); __pyx_t_3 = 0; |
| 2514 | |
| 2515 | /* "xmmsvalue.pyx":72 |
| 2516 | * try: |
| 2517 | * it = iter(value) |
| 2518 | * except TypeError: # <<<<<<<<<<<<<< |
| 2519 | * raise TypeError("Type '%s' has no corresponding native value type" |
| 2520 | * % value.__class__.__name__) |
| 2521 | */ |
| 2522 | __pyx_t_4 = PyErr_ExceptionMatches(__pyx_builtin_TypeError); |
| 2523 | if (__pyx_t_4) { |
| 2524 | __Pyx_AddTraceback("xmmsvalue.create_native_value", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 2525 | if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_7, &__pyx_t_14) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__2525; goto __pyx_L8_except_error;} |
| 2526 | __Pyx_GOTREF(__pyx_t_3); |
| 2527 | __Pyx_GOTREF(__pyx_t_7); |
| 2528 | __Pyx_GOTREF(__pyx_t_14); |
| 2529 | |
| 2530 | /* "xmmsvalue.pyx":74 |
| 2531 | * except TypeError: |
| 2532 | * raise TypeError("Type '%s' has no corresponding native value type" |
| 2533 | * % value.__class__.__name__) # <<<<<<<<<<<<<< |
| 2534 | * else: |
| 2535 | * ret = xmmsv_new_list() |
| 2536 | */ |
| 2537 | __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_class); if (unlikely(!__pyx_t_15)__builtin_expect(!!(!__pyx_t_15), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__2537; goto __pyx_L8_except_error;} |
| 2538 | __Pyx_GOTREF(__pyx_t_15); |
| 2539 | __pyx_t_16 = __Pyx_PyObject_GetAttrStr(__pyx_t_15, __pyx_n_s_name); if (unlikely(!__pyx_t_16)__builtin_expect(!!(!__pyx_t_16), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__2539; goto __pyx_L8_except_error;} |
| 2540 | __Pyx_GOTREF(__pyx_t_16); |
| 2541 | __Pyx_DECREF(__pyx_t_15)do { if ( --((PyObject*)(__pyx_t_15))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_15)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_15)))); } while (0); __pyx_t_15 = 0; |
| 2542 | __pyx_t_15 = __Pyx_PyString_Format(__pyx_kp_s_Type_s_has_no_corresponding_nati, __pyx_t_16)PyString_Format(__pyx_kp_s_Type_s_has_no_corresponding_nati, __pyx_t_16 ); if (unlikely(!__pyx_t_15)__builtin_expect(!!(!__pyx_t_15), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__2542; goto __pyx_L8_except_error;} |
| 2543 | __Pyx_GOTREF(__pyx_t_15); |
| 2544 | __Pyx_DECREF(__pyx_t_16)do { if ( --((PyObject*)(__pyx_t_16))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_16)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_16)))); } while (0); __pyx_t_16 = 0; |
| 2545 | |
| 2546 | /* "xmmsvalue.pyx":73 |
| 2547 | * it = iter(value) |
| 2548 | * except TypeError: |
| 2549 | * raise TypeError("Type '%s' has no corresponding native value type" # <<<<<<<<<<<<<< |
| 2550 | * % value.__class__.__name__) |
| 2551 | * else: |
| 2552 | */ |
| 2553 | __pyx_t_16 = PyTuple_New(1); if (unlikely(!__pyx_t_16)__builtin_expect(!!(!__pyx_t_16), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__2553; goto __pyx_L8_except_error;} |
| 2554 | __Pyx_GOTREF(__pyx_t_16); |
| 2555 | PyTuple_SET_ITEM(__pyx_t_16, 0, __pyx_t_15)(((PyTupleObject *)(__pyx_t_16))->ob_item[0] = __pyx_t_15); |
| 2556 | __Pyx_GIVEREF(__pyx_t_15); |
| 2557 | __pyx_t_15 = 0; |
| 2558 | __pyx_t_15 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_16, NULL((void*)0)); if (unlikely(!__pyx_t_15)__builtin_expect(!!(!__pyx_t_15), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__2558; goto __pyx_L8_except_error;} |
| 2559 | __Pyx_GOTREF(__pyx_t_15); |
| 2560 | __Pyx_DECREF(__pyx_t_16)do { if ( --((PyObject*)(__pyx_t_16))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_16)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_16)))); } while (0); __pyx_t_16 = 0; |
| 2561 | __Pyx_Raise(__pyx_t_15, 0, 0, 0); |
| 2562 | __Pyx_DECREF(__pyx_t_15)do { if ( --((PyObject*)(__pyx_t_15))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_15)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_15)))); } while (0); __pyx_t_15 = 0; |
| 2563 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__2563; goto __pyx_L8_except_error;} |
| 2564 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 2565 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 2566 | __Pyx_DECREF(__pyx_t_14)do { if ( --((PyObject*)(__pyx_t_14))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_14)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_14)))); } while (0); __pyx_t_14 = 0; |
| 2567 | goto __pyx_L7_exception_handled; |
| 2568 | } |
| 2569 | goto __pyx_L8_except_error; |
| 2570 | __pyx_L8_except_error:; |
| 2571 | __Pyx_XGIVEREF(__pyx_t_11); |
| 2572 | __Pyx_XGIVEREF(__pyx_t_12); |
| 2573 | __Pyx_XGIVEREF(__pyx_t_13); |
| 2574 | __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); |
| 2575 | goto __pyx_L1_error; |
| 2576 | __pyx_L7_exception_handled:; |
| 2577 | __Pyx_XGIVEREF(__pyx_t_11); |
| 2578 | __Pyx_XGIVEREF(__pyx_t_12); |
| 2579 | __Pyx_XGIVEREF(__pyx_t_13); |
| 2580 | __Pyx_ExceptionReset(__pyx_t_11, __pyx_t_12, __pyx_t_13); |
| 2581 | __pyx_L13_try_end:; |
| 2582 | } |
| 2583 | } |
| 2584 | __pyx_L3:; |
| 2585 | |
| 2586 | /* "xmmsvalue.pyx":81 |
| 2587 | * xmmsv_list_append(ret, v) |
| 2588 | * xmmsv_unref(v) # the list took its own reference |
| 2589 | * return ret # <<<<<<<<<<<<<< |
| 2590 | * |
| 2591 | * class XmmsError(Exception): pass |
| 2592 | */ |
| 2593 | __pyx_r = __pyx_v_ret; |
| 2594 | goto __pyx_L0; |
| 2595 | |
| 2596 | /* "xmmsvalue.pyx":43 |
| 2597 | * |
| 2598 | * |
| 2599 | * cdef xmmsv_t *create_native_value(value) except NULL: # <<<<<<<<<<<<<< |
| 2600 | * cdef xmmsv_t *ret = NULL |
| 2601 | * cdef xmmsv_t *v |
| 2602 | */ |
| 2603 | |
| 2604 | /* function exit code */ |
| 2605 | __pyx_L1_error:; |
| 2606 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 2607 | __Pyx_XDECREF(__pyx_t_7)do { if ((__pyx_t_7) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_7)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while (0); } while (0); |
| 2608 | __Pyx_XDECREF(__pyx_t_14)do { if ((__pyx_t_14) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_14))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_14)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_14)))); } while (0); } while (0); |
| 2609 | __Pyx_XDECREF(__pyx_t_15)do { if ((__pyx_t_15) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_15))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_15)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_15)))); } while (0); } while (0); |
| 2610 | __Pyx_XDECREF(__pyx_t_16)do { if ((__pyx_t_16) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_16))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_16)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_16)))); } while (0); } while (0); |
| 2611 | __Pyx_AddTraceback("xmmsvalue.create_native_value", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 2612 | __pyx_r = NULL((void*)0); |
| 2613 | __pyx_L0:; |
| 2614 | __Pyx_XDECREF((PyObject *)__pyx_v_xv)do { if (((PyObject *)__pyx_v_xv) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_xv))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_xv )))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_xv)))); } while (0); } while (0); |
| 2615 | __Pyx_XDECREF((PyObject *)__pyx_v_c)do { if (((PyObject *)__pyx_v_c) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_c))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_c) ))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_c)))); } while (0); } while (0); |
| 2616 | __Pyx_XDECREF(__pyx_v_s)do { if ((__pyx_v_s) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_s))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_s)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_s)))); } while (0); } while (0); |
| 2617 | __Pyx_XDECREF(__pyx_v_key)do { if ((__pyx_v_key) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_key))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(__pyx_v_key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_key)))); } while (0); } while (0); |
| 2618 | __Pyx_XDECREF(__pyx_v_k)do { if ((__pyx_v_k) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_k))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_k)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_k)))); } while (0); } while (0); |
| 2619 | __Pyx_XDECREF(__pyx_v_it)do { if ((__pyx_v_it) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_it))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_v_it)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_it)))); } while (0); } while (0); |
| 2620 | __Pyx_XDECREF(__pyx_v_item)do { if ((__pyx_v_item) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_item))->ob_refcnt != 0) ; else ( (*(((PyObject* )((PyObject *)(__pyx_v_item)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(__pyx_v_item)))); } while (0); } while (0); |
| 2621 | __Pyx_RefNannyFinishContext(); |
| 2622 | return __pyx_r; |
| 2623 | } |
| 2624 | |
| 2625 | /* "xmmsvalue.pyx":90 |
| 2626 | * #cdef int ispropdict |
| 2627 | * |
| 2628 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 2629 | * # Prevent stupid segfault from user missuse. |
| 2630 | * self.val = xmmsv_new_none() |
| 2631 | */ |
| 2632 | |
| 2633 | /* Python wrapper */ |
| 2634 | static int __pyx_pw_9xmmsvalue_9XmmsValue_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 2635 | static int __pyx_pw_9xmmsvalue_9XmmsValue_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 2636 | int __pyx_r; |
| 2637 | __Pyx_RefNannyDeclarations |
| 2638 | __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); |
| 2639 | if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)__builtin_expect(!!((((PyVarObject*)(__pyx_args))->ob_size ) > 0), 0)) { |
| 2640 | __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); return -1;} |
| 2641 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0) && unlikely(PyDict_Size(__pyx_kwds) > 0)__builtin_expect(!!(PyDict_Size(__pyx_kwds) > 0), 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))__builtin_expect(!!(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__" , 0)), 0)) return -1; |
| 2642 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue___cinit__(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 2643 | |
| 2644 | /* function exit code */ |
| 2645 | __Pyx_RefNannyFinishContext(); |
| 2646 | return __pyx_r; |
| 2647 | } |
| 2648 | |
| 2649 | static int __pyx_pf_9xmmsvalue_9XmmsValue___cinit__(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 2650 | int __pyx_r; |
| 2651 | __Pyx_RefNannyDeclarations |
| 2652 | __Pyx_RefNannySetupContext("__cinit__", 0); |
| 2653 | |
| 2654 | /* "xmmsvalue.pyx":92 |
| 2655 | * def __cinit__(self): |
| 2656 | * # Prevent stupid segfault from user missuse. |
| 2657 | * self.val = xmmsv_new_none() # <<<<<<<<<<<<<< |
| 2658 | * self.ispropdict = 0 |
| 2659 | * |
| 2660 | */ |
| 2661 | __pyx_v_self->val = xmmsv_new_none(); |
| 2662 | |
| 2663 | /* "xmmsvalue.pyx":93 |
| 2664 | * # Prevent stupid segfault from user missuse. |
| 2665 | * self.val = xmmsv_new_none() |
| 2666 | * self.ispropdict = 0 # <<<<<<<<<<<<<< |
| 2667 | * |
| 2668 | * def __init__(self, sourcepref = None, pyval = None): |
| 2669 | */ |
| 2670 | __pyx_v_self->ispropdict = 0; |
| 2671 | |
| 2672 | /* "xmmsvalue.pyx":90 |
| 2673 | * #cdef int ispropdict |
| 2674 | * |
| 2675 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 2676 | * # Prevent stupid segfault from user missuse. |
| 2677 | * self.val = xmmsv_new_none() |
| 2678 | */ |
| 2679 | |
| 2680 | /* function exit code */ |
| 2681 | __pyx_r = 0; |
| 2682 | __Pyx_RefNannyFinishContext(); |
| 2683 | return __pyx_r; |
| 2684 | } |
| 2685 | |
| 2686 | /* "xmmsvalue.pyx":95 |
| 2687 | * self.ispropdict = 0 |
| 2688 | * |
| 2689 | * def __init__(self, sourcepref = None, pyval = None): # <<<<<<<<<<<<<< |
| 2690 | * cdef xmmsv_t *v |
| 2691 | * self.sourcepref = sourcepref |
| 2692 | */ |
| 2693 | |
| 2694 | /* Python wrapper */ |
| 2695 | static int __pyx_pw_9xmmsvalue_9XmmsValue_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 2696 | static int __pyx_pw_9xmmsvalue_9XmmsValue_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 2697 | PyObject *__pyx_v_sourcepref = 0; |
| 2698 | PyObject *__pyx_v_pyval = 0; |
| 2699 | int __pyx_lineno = 0; |
| 2700 | const char *__pyx_filename = NULL((void*)0); |
| 2701 | int __pyx_clineno = 0; |
| 2702 | int __pyx_r; |
| 2703 | __Pyx_RefNannyDeclarations |
| 2704 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 2705 | { |
| 2706 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_sourcepref,&__pyx_n_s_pyval,0}; |
| 2707 | PyObject* values[2] = {0,0}; |
| 2708 | values[0] = ((PyObject *)Py_None(&_Py_NoneStruct)); |
| 2709 | values[1] = ((PyObject *)Py_None(&_Py_NoneStruct)); |
| 2710 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 2711 | Py_ssize_t kw_args; |
| 2712 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 2713 | switch (pos_args) { |
| 2714 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 2715 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 2716 | case 0: break; |
| 2717 | default: goto __pyx_L5_argtuple_error; |
| 2718 | } |
| 2719 | kw_args = PyDict_Size(__pyx_kwds); |
| 2720 | switch (pos_args) { |
| 2721 | case 0: |
| 2722 | if (kw_args > 0) { |
| 2723 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_sourcepref); |
| 2724 | if (value) { values[0] = value; kw_args--; } |
| 2725 | } |
| 2726 | case 1: |
| 2727 | if (kw_args > 0) { |
| 2728 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_pyval); |
| 2729 | if (value) { values[1] = value; kw_args--; } |
| 2730 | } |
| 2731 | } |
| 2732 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 2733 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__2733; goto __pyx_L3_error;} |
| 2734 | } |
| 2735 | } else { |
| 2736 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 2737 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 2738 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 2739 | case 0: break; |
| 2740 | default: goto __pyx_L5_argtuple_error; |
| 2741 | } |
| 2742 | } |
| 2743 | __pyx_v_sourcepref = values[0]; |
| 2744 | __pyx_v_pyval = values[1]; |
| 2745 | } |
| 2746 | goto __pyx_L4_argument_unpacking_done; |
| 2747 | __pyx_L5_argtuple_error:; |
| 2748 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__2748; goto __pyx_L3_error;} |
| 2749 | __pyx_L3_error:; |
| 2750 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 2751 | __Pyx_RefNannyFinishContext(); |
| 2752 | return -1; |
| 2753 | __pyx_L4_argument_unpacking_done:; |
| 2754 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_2__init__(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self), __pyx_v_sourcepref, __pyx_v_pyval); |
| 2755 | |
| 2756 | /* function exit code */ |
| 2757 | __Pyx_RefNannyFinishContext(); |
| 2758 | return __pyx_r; |
| 2759 | } |
| 2760 | |
| 2761 | static int __pyx_pf_9xmmsvalue_9XmmsValue_2__init__(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, PyObject *__pyx_v_sourcepref, PyObject *__pyx_v_pyval) { |
| 2762 | int __pyx_r; |
| 2763 | __Pyx_RefNannyDeclarations |
| 2764 | int __pyx_t_1; |
| 2765 | int __pyx_t_2; |
| 2766 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 2767 | int __pyx_lineno = 0; |
| 2768 | const char *__pyx_filename = NULL((void*)0); |
| 2769 | int __pyx_clineno = 0; |
| 2770 | __Pyx_RefNannySetupContext("__init__", 0); |
| 2771 | |
| 2772 | /* "xmmsvalue.pyx":97 |
| 2773 | * def __init__(self, sourcepref = None, pyval = None): |
| 2774 | * cdef xmmsv_t *v |
| 2775 | * self.sourcepref = sourcepref # <<<<<<<<<<<<<< |
| 2776 | * |
| 2777 | * if pyval is not None: # None value already created. |
| 2778 | */ |
| 2779 | __Pyx_INCREF(__pyx_v_sourcepref)( ((PyObject*)(__pyx_v_sourcepref))->ob_refcnt++); |
| 2780 | __Pyx_GIVEREF(__pyx_v_sourcepref); |
| 2781 | __Pyx_GOTREF(__pyx_v_self->sourcepref); |
| 2782 | __Pyx_DECREF(__pyx_v_self->sourcepref)do { if ( --((PyObject*)(__pyx_v_self->sourcepref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_self-> sourcepref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_self->sourcepref)))); } while (0); |
| 2783 | __pyx_v_self->sourcepref = __pyx_v_sourcepref; |
| 2784 | |
| 2785 | /* "xmmsvalue.pyx":99 |
| 2786 | * self.sourcepref = sourcepref |
| 2787 | * |
| 2788 | * if pyval is not None: # None value already created. # <<<<<<<<<<<<<< |
| 2789 | * XmmsValue.set_pyval(self, pyval) # Use cdef version of the function |
| 2790 | * |
| 2791 | */ |
| 2792 | __pyx_t_1 = (__pyx_v_pyval != Py_None(&_Py_NoneStruct)); |
| 2793 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 2794 | if (__pyx_t_2) { |
| 2795 | |
| 2796 | /* "xmmsvalue.pyx":100 |
| 2797 | * |
| 2798 | * if pyval is not None: # None value already created. |
| 2799 | * XmmsValue.set_pyval(self, pyval) # Use cdef version of the function # <<<<<<<<<<<<<< |
| 2800 | * |
| 2801 | * def __dealloc__(self): |
| 2802 | */ |
| 2803 | __pyx_t_3 = __pyx_vtabptr_9xmmsvalue_XmmsValue->set_pyval(__pyx_v_self, __pyx_v_pyval, 1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__2803; goto __pyx_L1_error;} |
| 2804 | __Pyx_GOTREF(__pyx_t_3); |
| 2805 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 2806 | goto __pyx_L3; |
| 2807 | } |
| 2808 | __pyx_L3:; |
| 2809 | |
| 2810 | /* "xmmsvalue.pyx":95 |
| 2811 | * self.ispropdict = 0 |
| 2812 | * |
| 2813 | * def __init__(self, sourcepref = None, pyval = None): # <<<<<<<<<<<<<< |
| 2814 | * cdef xmmsv_t *v |
| 2815 | * self.sourcepref = sourcepref |
| 2816 | */ |
| 2817 | |
| 2818 | /* function exit code */ |
| 2819 | __pyx_r = 0; |
| 2820 | goto __pyx_L0; |
| 2821 | __pyx_L1_error:; |
| 2822 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 2823 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 2824 | __pyx_r = -1; |
| 2825 | __pyx_L0:; |
| 2826 | __Pyx_RefNannyFinishContext(); |
| 2827 | return __pyx_r; |
| 2828 | } |
| 2829 | |
| 2830 | /* "xmmsvalue.pyx":102 |
| 2831 | * XmmsValue.set_pyval(self, pyval) # Use cdef version of the function |
| 2832 | * |
| 2833 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 2834 | * if self.val != NULL: |
| 2835 | * xmmsv_unref(self.val) |
| 2836 | */ |
| 2837 | |
| 2838 | /* Python wrapper */ |
| 2839 | static void __pyx_pw_9xmmsvalue_9XmmsValue_5__dealloc__(PyObject *__pyx_v_self); /*proto*/ |
| 2840 | static void __pyx_pw_9xmmsvalue_9XmmsValue_5__dealloc__(PyObject *__pyx_v_self) { |
| 2841 | __Pyx_RefNannyDeclarations |
| 2842 | __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); |
| 2843 | __pyx_pf_9xmmsvalue_9XmmsValue_4__dealloc__(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 2844 | |
| 2845 | /* function exit code */ |
| 2846 | __Pyx_RefNannyFinishContext(); |
| 2847 | } |
| 2848 | |
| 2849 | static void __pyx_pf_9xmmsvalue_9XmmsValue_4__dealloc__(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 2850 | __Pyx_RefNannyDeclarations |
| 2851 | int __pyx_t_1; |
| 2852 | __Pyx_RefNannySetupContext("__dealloc__", 0); |
| 2853 | |
| 2854 | /* "xmmsvalue.pyx":103 |
| 2855 | * |
| 2856 | * def __dealloc__(self): |
| 2857 | * if self.val != NULL: # <<<<<<<<<<<<<< |
| 2858 | * xmmsv_unref(self.val) |
| 2859 | * self.val = NULL |
| 2860 | */ |
| 2861 | __pyx_t_1 = ((__pyx_v_self->val != NULL((void*)0)) != 0); |
| 2862 | if (__pyx_t_1) { |
| 2863 | |
| 2864 | /* "xmmsvalue.pyx":104 |
| 2865 | * def __dealloc__(self): |
| 2866 | * if self.val != NULL: |
| 2867 | * xmmsv_unref(self.val) # <<<<<<<<<<<<<< |
| 2868 | * self.val = NULL |
| 2869 | * |
| 2870 | */ |
| 2871 | xmmsv_unref(__pyx_v_self->val); |
| 2872 | |
| 2873 | /* "xmmsvalue.pyx":105 |
| 2874 | * if self.val != NULL: |
| 2875 | * xmmsv_unref(self.val) |
| 2876 | * self.val = NULL # <<<<<<<<<<<<<< |
| 2877 | * |
| 2878 | * cdef set_value(self, xmmsv_t *value, int ispropdict = -1): |
| 2879 | */ |
| 2880 | __pyx_v_self->val = NULL((void*)0); |
| 2881 | goto __pyx_L3; |
| 2882 | } |
| 2883 | __pyx_L3:; |
| 2884 | |
| 2885 | /* "xmmsvalue.pyx":102 |
| 2886 | * XmmsValue.set_pyval(self, pyval) # Use cdef version of the function |
| 2887 | * |
| 2888 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 2889 | * if self.val != NULL: |
| 2890 | * xmmsv_unref(self.val) |
| 2891 | */ |
| 2892 | |
| 2893 | /* function exit code */ |
| 2894 | __Pyx_RefNannyFinishContext(); |
| 2895 | } |
| 2896 | |
| 2897 | /* "xmmsvalue.pyx":107 |
| 2898 | * self.val = NULL |
| 2899 | * |
| 2900 | * cdef set_value(self, xmmsv_t *value, int ispropdict = -1): # <<<<<<<<<<<<<< |
| 2901 | * if self.val != NULL: |
| 2902 | * xmmsv_unref(self.val) |
| 2903 | */ |
| 2904 | |
| 2905 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_set_value(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, xmmsv_t *__pyx_v_value, struct __pyx_opt_args_9xmmsvalue_9XmmsValue_set_value *__pyx_optional_args) { |
| 2906 | int __pyx_v_ispropdict = ((int)-1); |
| 2907 | PyObject *__pyx_r = NULL((void*)0); |
| 2908 | __Pyx_RefNannyDeclarations |
| 2909 | int __pyx_t_1; |
| 2910 | __Pyx_RefNannySetupContext("set_value", 0); |
| 2911 | if (__pyx_optional_args) { |
| 2912 | if (__pyx_optional_args->__pyx_n > 0) { |
| 2913 | __pyx_v_ispropdict = __pyx_optional_args->ispropdict; |
| 2914 | } |
| 2915 | } |
| 2916 | |
| 2917 | /* "xmmsvalue.pyx":108 |
| 2918 | * |
| 2919 | * cdef set_value(self, xmmsv_t *value, int ispropdict = -1): |
| 2920 | * if self.val != NULL: # <<<<<<<<<<<<<< |
| 2921 | * xmmsv_unref(self.val) |
| 2922 | * xmmsv_ref(value) |
| 2923 | */ |
| 2924 | __pyx_t_1 = ((__pyx_v_self->val != NULL((void*)0)) != 0); |
| 2925 | if (__pyx_t_1) { |
| 2926 | |
| 2927 | /* "xmmsvalue.pyx":109 |
| 2928 | * cdef set_value(self, xmmsv_t *value, int ispropdict = -1): |
| 2929 | * if self.val != NULL: |
| 2930 | * xmmsv_unref(self.val) # <<<<<<<<<<<<<< |
| 2931 | * xmmsv_ref(value) |
| 2932 | * self.val = value |
| 2933 | */ |
| 2934 | xmmsv_unref(__pyx_v_self->val); |
| 2935 | goto __pyx_L3; |
| 2936 | } |
| 2937 | __pyx_L3:; |
| 2938 | |
| 2939 | /* "xmmsvalue.pyx":110 |
| 2940 | * if self.val != NULL: |
| 2941 | * xmmsv_unref(self.val) |
| 2942 | * xmmsv_ref(value) # <<<<<<<<<<<<<< |
| 2943 | * self.val = value |
| 2944 | * if ispropdict >= 0: |
| 2945 | */ |
| 2946 | xmmsv_ref(__pyx_v_value); |
| 2947 | |
| 2948 | /* "xmmsvalue.pyx":111 |
| 2949 | * xmmsv_unref(self.val) |
| 2950 | * xmmsv_ref(value) |
| 2951 | * self.val = value # <<<<<<<<<<<<<< |
| 2952 | * if ispropdict >= 0: |
| 2953 | * self.ispropdict = ispropdict |
| 2954 | */ |
| 2955 | __pyx_v_self->val = __pyx_v_value; |
| 2956 | |
| 2957 | /* "xmmsvalue.pyx":112 |
| 2958 | * xmmsv_ref(value) |
| 2959 | * self.val = value |
| 2960 | * if ispropdict >= 0: # <<<<<<<<<<<<<< |
| 2961 | * self.ispropdict = ispropdict |
| 2962 | * |
| 2963 | */ |
| 2964 | __pyx_t_1 = ((__pyx_v_ispropdict >= 0) != 0); |
| 2965 | if (__pyx_t_1) { |
| 2966 | |
| 2967 | /* "xmmsvalue.pyx":113 |
| 2968 | * self.val = value |
| 2969 | * if ispropdict >= 0: |
| 2970 | * self.ispropdict = ispropdict # <<<<<<<<<<<<<< |
| 2971 | * |
| 2972 | * cpdef set_pyval(self, pyval): |
| 2973 | */ |
| 2974 | __pyx_v_self->ispropdict = __pyx_v_ispropdict; |
| 2975 | goto __pyx_L4; |
| 2976 | } |
| 2977 | __pyx_L4:; |
| 2978 | |
| 2979 | /* "xmmsvalue.pyx":107 |
| 2980 | * self.val = NULL |
| 2981 | * |
| 2982 | * cdef set_value(self, xmmsv_t *value, int ispropdict = -1): # <<<<<<<<<<<<<< |
| 2983 | * if self.val != NULL: |
| 2984 | * xmmsv_unref(self.val) |
| 2985 | */ |
| 2986 | |
| 2987 | /* function exit code */ |
| 2988 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 2989 | __Pyx_XGIVEREF(__pyx_r); |
| 2990 | __Pyx_RefNannyFinishContext(); |
| 2991 | return __pyx_r; |
| 2992 | } |
| 2993 | |
| 2994 | /* "xmmsvalue.pyx":115 |
| 2995 | * self.ispropdict = ispropdict |
| 2996 | * |
| 2997 | * cpdef set_pyval(self, pyval): # <<<<<<<<<<<<<< |
| 2998 | * cdef xmmsv_t *v |
| 2999 | * v = create_native_value(pyval) |
| 3000 | */ |
| 3001 | |
| 3002 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_7set_pyval(PyObject *__pyx_v_self, PyObject *__pyx_v_pyval); /*proto*/ |
| 3003 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_set_pyval(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, PyObject *__pyx_v_pyval, int __pyx_skip_dispatch) { |
| 3004 | xmmsv_t *__pyx_v_v; |
| 3005 | PyObject *__pyx_r = NULL((void*)0); |
| 3006 | __Pyx_RefNannyDeclarations |
| 3007 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3008 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 3009 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 3010 | xmmsv_t *__pyx_t_4; |
| 3011 | int __pyx_lineno = 0; |
| 3012 | const char *__pyx_filename = NULL((void*)0); |
| 3013 | int __pyx_clineno = 0; |
| 3014 | __Pyx_RefNannySetupContext("set_pyval", 0); |
| 3015 | /* Check if called by wrapper */ |
| 3016 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 3017 | /* Check if overridden in Python */ |
| 3018 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 3019 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_set_pyval); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__3019; goto __pyx_L1_error;} |
| 3020 | __Pyx_GOTREF(__pyx_t_1); |
| 3021 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_7set_pyval)) { |
| 3022 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3023 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__3023; goto __pyx_L1_error;} |
| 3024 | __Pyx_GOTREF(__pyx_t_2); |
| 3025 | __Pyx_INCREF(__pyx_v_pyval)( ((PyObject*)(__pyx_v_pyval))->ob_refcnt++); |
| 3026 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_pyval)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_pyval ); |
| 3027 | __Pyx_GIVEREF(__pyx_v_pyval); |
| 3028 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__3028; goto __pyx_L1_error;} |
| 3029 | __Pyx_GOTREF(__pyx_t_3); |
| 3030 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 3031 | __pyx_r = __pyx_t_3; |
| 3032 | __pyx_t_3 = 0; |
| 3033 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3034 | goto __pyx_L0; |
| 3035 | } |
| 3036 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3037 | } |
| 3038 | |
| 3039 | /* "xmmsvalue.pyx":117 |
| 3040 | * cpdef set_pyval(self, pyval): |
| 3041 | * cdef xmmsv_t *v |
| 3042 | * v = create_native_value(pyval) # <<<<<<<<<<<<<< |
| 3043 | * self.set_value(v) |
| 3044 | * xmmsv_unref(v) |
| 3045 | */ |
| 3046 | __pyx_t_4 = __pyx_f_9xmmsvalue_create_native_value(__pyx_v_pyval); if (unlikely(__pyx_t_4 == NULL)__builtin_expect(!!(__pyx_t_4 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__3046; goto __pyx_L1_error;} |
| 3047 | __pyx_v_v = __pyx_t_4; |
| 3048 | |
| 3049 | /* "xmmsvalue.pyx":118 |
| 3050 | * cdef xmmsv_t *v |
| 3051 | * v = create_native_value(pyval) |
| 3052 | * self.set_value(v) # <<<<<<<<<<<<<< |
| 3053 | * xmmsv_unref(v) |
| 3054 | * |
| 3055 | */ |
| 3056 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->set_value(__pyx_v_self, __pyx_v_v, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__3056; goto __pyx_L1_error;} |
| 3057 | __Pyx_GOTREF(__pyx_t_1); |
| 3058 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3059 | |
| 3060 | /* "xmmsvalue.pyx":119 |
| 3061 | * v = create_native_value(pyval) |
| 3062 | * self.set_value(v) |
| 3063 | * xmmsv_unref(v) # <<<<<<<<<<<<<< |
| 3064 | * |
| 3065 | * cpdef get_type(self): |
| 3066 | */ |
| 3067 | xmmsv_unref(__pyx_v_v); |
| 3068 | |
| 3069 | /* "xmmsvalue.pyx":115 |
| 3070 | * self.ispropdict = ispropdict |
| 3071 | * |
| 3072 | * cpdef set_pyval(self, pyval): # <<<<<<<<<<<<<< |
| 3073 | * cdef xmmsv_t *v |
| 3074 | * v = create_native_value(pyval) |
| 3075 | */ |
| 3076 | |
| 3077 | /* function exit code */ |
| 3078 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 3079 | goto __pyx_L0; |
| 3080 | __pyx_L1_error:; |
| 3081 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3082 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 3083 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 3084 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.set_pyval", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3085 | __pyx_r = 0; |
| 3086 | __pyx_L0:; |
| 3087 | __Pyx_XGIVEREF(__pyx_r); |
| 3088 | __Pyx_RefNannyFinishContext(); |
| 3089 | return __pyx_r; |
| 3090 | } |
| 3091 | |
| 3092 | /* Python wrapper */ |
| 3093 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_7set_pyval(PyObject *__pyx_v_self, PyObject *__pyx_v_pyval); /*proto*/ |
| 3094 | static char __pyx_doc_9xmmsvalue_9XmmsValue_6set_pyval[] = "XmmsValue.set_pyval(self, pyval)"; |
| 3095 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_7set_pyval(PyObject *__pyx_v_self, PyObject *__pyx_v_pyval) { |
| 3096 | PyObject *__pyx_r = 0; |
| 3097 | __Pyx_RefNannyDeclarations |
| 3098 | __Pyx_RefNannySetupContext("set_pyval (wrapper)", 0); |
| 3099 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_6set_pyval(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self), ((PyObject *)__pyx_v_pyval)); |
| 3100 | |
| 3101 | /* function exit code */ |
| 3102 | __Pyx_RefNannyFinishContext(); |
| 3103 | return __pyx_r; |
| 3104 | } |
| 3105 | |
| 3106 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_6set_pyval(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, PyObject *__pyx_v_pyval) { |
| 3107 | PyObject *__pyx_r = NULL((void*)0); |
| 3108 | __Pyx_RefNannyDeclarations |
| 3109 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3110 | int __pyx_lineno = 0; |
| 3111 | const char *__pyx_filename = NULL((void*)0); |
| 3112 | int __pyx_clineno = 0; |
| 3113 | __Pyx_RefNannySetupContext("set_pyval", 0); |
| 3114 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3115 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->set_pyval(__pyx_v_self, __pyx_v_pyval, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__3115; goto __pyx_L1_error;} |
| 3116 | __Pyx_GOTREF(__pyx_t_1); |
| 3117 | __pyx_r = __pyx_t_1; |
| 3118 | __pyx_t_1 = 0; |
| 3119 | goto __pyx_L0; |
| 3120 | |
| 3121 | /* function exit code */ |
| 3122 | __pyx_L1_error:; |
| 3123 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3124 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.set_pyval", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3125 | __pyx_r = NULL((void*)0); |
| 3126 | __pyx_L0:; |
| 3127 | __Pyx_XGIVEREF(__pyx_r); |
| 3128 | __Pyx_RefNannyFinishContext(); |
| 3129 | return __pyx_r; |
| 3130 | } |
| 3131 | |
| 3132 | /* "xmmsvalue.pyx":121 |
| 3133 | * xmmsv_unref(v) |
| 3134 | * |
| 3135 | * cpdef get_type(self): # <<<<<<<<<<<<<< |
| 3136 | * """ |
| 3137 | * Return the type of the value. |
| 3138 | */ |
| 3139 | |
| 3140 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_9get_type(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3141 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_type(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 3142 | PyObject *__pyx_r = NULL((void*)0); |
| 3143 | __Pyx_RefNannyDeclarations |
| 3144 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3145 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 3146 | int __pyx_lineno = 0; |
| 3147 | const char *__pyx_filename = NULL((void*)0); |
| 3148 | int __pyx_clineno = 0; |
| 3149 | __Pyx_RefNannySetupContext("get_type", 0); |
| 3150 | /* Check if called by wrapper */ |
| 3151 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 3152 | /* Check if overridden in Python */ |
| 3153 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 3154 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_type); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__3154; goto __pyx_L1_error;} |
| 3155 | __Pyx_GOTREF(__pyx_t_1); |
| 3156 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_9get_type)) { |
| 3157 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3158 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__3158; goto __pyx_L1_error;} |
| 3159 | __Pyx_GOTREF(__pyx_t_2); |
| 3160 | __pyx_r = __pyx_t_2; |
| 3161 | __pyx_t_2 = 0; |
| 3162 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3163 | goto __pyx_L0; |
| 3164 | } |
| 3165 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3166 | } |
| 3167 | |
| 3168 | /* "xmmsvalue.pyx":126 |
| 3169 | * The return value is one of the VALUE_TYPE_* constants. |
| 3170 | * """ |
| 3171 | * return xmmsv_get_type(self.val) # <<<<<<<<<<<<<< |
| 3172 | * |
| 3173 | * cpdef iserror(self): |
| 3174 | */ |
| 3175 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3176 | __pyx_t_1 = PyInt_FromLong(xmmsv_get_type(__pyx_v_self->val)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__3176; goto __pyx_L1_error;} |
| 3177 | __Pyx_GOTREF(__pyx_t_1); |
| 3178 | __pyx_r = __pyx_t_1; |
| 3179 | __pyx_t_1 = 0; |
| 3180 | goto __pyx_L0; |
| 3181 | |
| 3182 | /* "xmmsvalue.pyx":121 |
| 3183 | * xmmsv_unref(v) |
| 3184 | * |
| 3185 | * cpdef get_type(self): # <<<<<<<<<<<<<< |
| 3186 | * """ |
| 3187 | * Return the type of the value. |
| 3188 | */ |
| 3189 | |
| 3190 | /* function exit code */ |
| 3191 | __pyx_L1_error:; |
| 3192 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3193 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 3194 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_type", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3195 | __pyx_r = 0; |
| 3196 | __pyx_L0:; |
| 3197 | __Pyx_XGIVEREF(__pyx_r); |
| 3198 | __Pyx_RefNannyFinishContext(); |
| 3199 | return __pyx_r; |
| 3200 | } |
| 3201 | |
| 3202 | /* Python wrapper */ |
| 3203 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_9get_type(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3204 | static char __pyx_doc_9xmmsvalue_9XmmsValue_8get_type[] = "XmmsValue.get_type(self)\n\n\t\tReturn the type of the value.\n\t\tThe return value is one of the VALUE_TYPE_* constants.\n\t\t"; |
| 3205 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_9get_type(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 3206 | PyObject *__pyx_r = 0; |
| 3207 | __Pyx_RefNannyDeclarations |
| 3208 | __Pyx_RefNannySetupContext("get_type (wrapper)", 0); |
| 3209 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_8get_type(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 3210 | |
| 3211 | /* function exit code */ |
| 3212 | __Pyx_RefNannyFinishContext(); |
| 3213 | return __pyx_r; |
| 3214 | } |
| 3215 | |
| 3216 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_8get_type(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 3217 | PyObject *__pyx_r = NULL((void*)0); |
| 3218 | __Pyx_RefNannyDeclarations |
| 3219 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3220 | int __pyx_lineno = 0; |
| 3221 | const char *__pyx_filename = NULL((void*)0); |
| 3222 | int __pyx_clineno = 0; |
| 3223 | __Pyx_RefNannySetupContext("get_type", 0); |
| 3224 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3225 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_type(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__3225; goto __pyx_L1_error;} |
| 3226 | __Pyx_GOTREF(__pyx_t_1); |
| 3227 | __pyx_r = __pyx_t_1; |
| 3228 | __pyx_t_1 = 0; |
| 3229 | goto __pyx_L0; |
| 3230 | |
| 3231 | /* function exit code */ |
| 3232 | __pyx_L1_error:; |
| 3233 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3234 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_type", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3235 | __pyx_r = NULL((void*)0); |
| 3236 | __pyx_L0:; |
| 3237 | __Pyx_XGIVEREF(__pyx_r); |
| 3238 | __Pyx_RefNannyFinishContext(); |
| 3239 | return __pyx_r; |
| 3240 | } |
| 3241 | |
| 3242 | /* "xmmsvalue.pyx":128 |
| 3243 | * return xmmsv_get_type(self.val) |
| 3244 | * |
| 3245 | * cpdef iserror(self): # <<<<<<<<<<<<<< |
| 3246 | * """ |
| 3247 | * @deprecated |
| 3248 | */ |
| 3249 | |
| 3250 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_11iserror(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3251 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_iserror(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 3252 | PyObject *__pyx_r = NULL((void*)0); |
| 3253 | __Pyx_RefNannyDeclarations |
| 3254 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3255 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 3256 | int __pyx_lineno = 0; |
| 3257 | const char *__pyx_filename = NULL((void*)0); |
| 3258 | int __pyx_clineno = 0; |
| 3259 | __Pyx_RefNannySetupContext("iserror", 0); |
| 3260 | /* Check if called by wrapper */ |
| 3261 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 3262 | /* Check if overridden in Python */ |
| 3263 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 3264 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_iserror); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__3264; goto __pyx_L1_error;} |
| 3265 | __Pyx_GOTREF(__pyx_t_1); |
| 3266 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_11iserror)) { |
| 3267 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3268 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__3268; goto __pyx_L1_error;} |
| 3269 | __Pyx_GOTREF(__pyx_t_2); |
| 3270 | __pyx_r = __pyx_t_2; |
| 3271 | __pyx_t_2 = 0; |
| 3272 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3273 | goto __pyx_L0; |
| 3274 | } |
| 3275 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3276 | } |
| 3277 | |
| 3278 | /* "xmmsvalue.pyx":134 |
| 3279 | * @rtype: Boolean |
| 3280 | * """ |
| 3281 | * return self.is_error() # <<<<<<<<<<<<<< |
| 3282 | * |
| 3283 | * cpdef is_error(self): |
| 3284 | */ |
| 3285 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3286 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->is_error(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__3286; goto __pyx_L1_error;} |
| 3287 | __Pyx_GOTREF(__pyx_t_1); |
| 3288 | __pyx_r = __pyx_t_1; |
| 3289 | __pyx_t_1 = 0; |
| 3290 | goto __pyx_L0; |
| 3291 | |
| 3292 | /* "xmmsvalue.pyx":128 |
| 3293 | * return xmmsv_get_type(self.val) |
| 3294 | * |
| 3295 | * cpdef iserror(self): # <<<<<<<<<<<<<< |
| 3296 | * """ |
| 3297 | * @deprecated |
| 3298 | */ |
| 3299 | |
| 3300 | /* function exit code */ |
| 3301 | __pyx_L1_error:; |
| 3302 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3303 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 3304 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.iserror", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3305 | __pyx_r = 0; |
| 3306 | __pyx_L0:; |
| 3307 | __Pyx_XGIVEREF(__pyx_r); |
| 3308 | __Pyx_RefNannyFinishContext(); |
| 3309 | return __pyx_r; |
| 3310 | } |
| 3311 | |
| 3312 | /* Python wrapper */ |
| 3313 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_11iserror(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3314 | static char __pyx_doc_9xmmsvalue_9XmmsValue_10iserror[] = "XmmsValue.iserror(self)\n\n\t\t@deprecated\n\t\t@return: Whether the value represents an error or not.\n\t\t@rtype: Boolean\n\t\t"; |
| 3315 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_11iserror(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 3316 | PyObject *__pyx_r = 0; |
| 3317 | __Pyx_RefNannyDeclarations |
| 3318 | __Pyx_RefNannySetupContext("iserror (wrapper)", 0); |
| 3319 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_10iserror(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 3320 | |
| 3321 | /* function exit code */ |
| 3322 | __Pyx_RefNannyFinishContext(); |
| 3323 | return __pyx_r; |
| 3324 | } |
| 3325 | |
| 3326 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_10iserror(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 3327 | PyObject *__pyx_r = NULL((void*)0); |
| 3328 | __Pyx_RefNannyDeclarations |
| 3329 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3330 | int __pyx_lineno = 0; |
| 3331 | const char *__pyx_filename = NULL((void*)0); |
| 3332 | int __pyx_clineno = 0; |
| 3333 | __Pyx_RefNannySetupContext("iserror", 0); |
| 3334 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3335 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->iserror(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__3335; goto __pyx_L1_error;} |
| 3336 | __Pyx_GOTREF(__pyx_t_1); |
| 3337 | __pyx_r = __pyx_t_1; |
| 3338 | __pyx_t_1 = 0; |
| 3339 | goto __pyx_L0; |
| 3340 | |
| 3341 | /* function exit code */ |
| 3342 | __pyx_L1_error:; |
| 3343 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3344 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.iserror", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3345 | __pyx_r = NULL((void*)0); |
| 3346 | __pyx_L0:; |
| 3347 | __Pyx_XGIVEREF(__pyx_r); |
| 3348 | __Pyx_RefNannyFinishContext(); |
| 3349 | return __pyx_r; |
| 3350 | } |
| 3351 | |
| 3352 | /* "xmmsvalue.pyx":136 |
| 3353 | * return self.is_error() |
| 3354 | * |
| 3355 | * cpdef is_error(self): # <<<<<<<<<<<<<< |
| 3356 | * """ |
| 3357 | * @return: Whether the value represents an error or not. |
| 3358 | */ |
| 3359 | |
| 3360 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_13is_error(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3361 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_is_error(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 3362 | PyObject *__pyx_r = NULL((void*)0); |
| 3363 | __Pyx_RefNannyDeclarations |
| 3364 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3365 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 3366 | int __pyx_lineno = 0; |
| 3367 | const char *__pyx_filename = NULL((void*)0); |
| 3368 | int __pyx_clineno = 0; |
| 3369 | __Pyx_RefNannySetupContext("is_error", 0); |
| 3370 | /* Check if called by wrapper */ |
| 3371 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 3372 | /* Check if overridden in Python */ |
| 3373 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 3374 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_is_error); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__3374; goto __pyx_L1_error;} |
| 3375 | __Pyx_GOTREF(__pyx_t_1); |
| 3376 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_13is_error)) { |
| 3377 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3378 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__3378; goto __pyx_L1_error;} |
| 3379 | __Pyx_GOTREF(__pyx_t_2); |
| 3380 | __pyx_r = __pyx_t_2; |
| 3381 | __pyx_t_2 = 0; |
| 3382 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3383 | goto __pyx_L0; |
| 3384 | } |
| 3385 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3386 | } |
| 3387 | |
| 3388 | /* "xmmsvalue.pyx":141 |
| 3389 | * @rtype: Boolean |
| 3390 | * """ |
| 3391 | * return xmmsv_is_type(self.val, XMMSV_TYPE_ERROR) # <<<<<<<<<<<<<< |
| 3392 | * |
| 3393 | * cpdef get_error(self): |
| 3394 | */ |
| 3395 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3396 | __pyx_t_1 = __Pyx_PyBool_FromLong(xmmsv_is_type(__pyx_v_self->val, XMMSV_TYPE_ERROR))((xmmsv_is_type(__pyx_v_self->val, XMMSV_TYPE_ERROR)) ? (( ((PyObject*)(((PyObject *) &_Py_TrueStruct)))->ob_refcnt ++), ((PyObject *) &_Py_TrueStruct)) : (( ((PyObject*)((( PyObject *) &_Py_ZeroStruct)))->ob_refcnt++), ((PyObject *) &_Py_ZeroStruct))); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__3396; goto __pyx_L1_error;} |
| 3397 | __Pyx_GOTREF(__pyx_t_1); |
| 3398 | __pyx_r = __pyx_t_1; |
| 3399 | __pyx_t_1 = 0; |
| 3400 | goto __pyx_L0; |
| 3401 | |
| 3402 | /* "xmmsvalue.pyx":136 |
| 3403 | * return self.is_error() |
| 3404 | * |
| 3405 | * cpdef is_error(self): # <<<<<<<<<<<<<< |
| 3406 | * """ |
| 3407 | * @return: Whether the value represents an error or not. |
| 3408 | */ |
| 3409 | |
| 3410 | /* function exit code */ |
| 3411 | __pyx_L1_error:; |
| 3412 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3413 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 3414 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.is_error", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3415 | __pyx_r = 0; |
| 3416 | __pyx_L0:; |
| 3417 | __Pyx_XGIVEREF(__pyx_r); |
| 3418 | __Pyx_RefNannyFinishContext(); |
| 3419 | return __pyx_r; |
| 3420 | } |
| 3421 | |
| 3422 | /* Python wrapper */ |
| 3423 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_13is_error(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3424 | static char __pyx_doc_9xmmsvalue_9XmmsValue_12is_error[] = "XmmsValue.is_error(self)\n\n\t\t@return: Whether the value represents an error or not.\n\t\t@rtype: Boolean\n\t\t"; |
| 3425 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_13is_error(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 3426 | PyObject *__pyx_r = 0; |
| 3427 | __Pyx_RefNannyDeclarations |
| 3428 | __Pyx_RefNannySetupContext("is_error (wrapper)", 0); |
| 3429 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_12is_error(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 3430 | |
| 3431 | /* function exit code */ |
| 3432 | __Pyx_RefNannyFinishContext(); |
| 3433 | return __pyx_r; |
| 3434 | } |
| 3435 | |
| 3436 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_12is_error(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 3437 | PyObject *__pyx_r = NULL((void*)0); |
| 3438 | __Pyx_RefNannyDeclarations |
| 3439 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3440 | int __pyx_lineno = 0; |
| 3441 | const char *__pyx_filename = NULL((void*)0); |
| 3442 | int __pyx_clineno = 0; |
| 3443 | __Pyx_RefNannySetupContext("is_error", 0); |
| 3444 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3445 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->is_error(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__3445; goto __pyx_L1_error;} |
| 3446 | __Pyx_GOTREF(__pyx_t_1); |
| 3447 | __pyx_r = __pyx_t_1; |
| 3448 | __pyx_t_1 = 0; |
| 3449 | goto __pyx_L0; |
| 3450 | |
| 3451 | /* function exit code */ |
| 3452 | __pyx_L1_error:; |
| 3453 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3454 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.is_error", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3455 | __pyx_r = NULL((void*)0); |
| 3456 | __pyx_L0:; |
| 3457 | __Pyx_XGIVEREF(__pyx_r); |
| 3458 | __Pyx_RefNannyFinishContext(); |
| 3459 | return __pyx_r; |
| 3460 | } |
| 3461 | |
| 3462 | /* "xmmsvalue.pyx":143 |
| 3463 | * return xmmsv_is_type(self.val, XMMSV_TYPE_ERROR) |
| 3464 | * |
| 3465 | * cpdef get_error(self): # <<<<<<<<<<<<<< |
| 3466 | * """ |
| 3467 | * @return: Error string from the result. |
| 3468 | */ |
| 3469 | |
| 3470 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_15get_error(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3471 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_error(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 3472 | char *__pyx_v_ret; |
| 3473 | PyObject *__pyx_r = NULL((void*)0); |
| 3474 | __Pyx_RefNannyDeclarations |
| 3475 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3476 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 3477 | int __pyx_t_3; |
| 3478 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 3479 | int __pyx_lineno = 0; |
| 3480 | const char *__pyx_filename = NULL((void*)0); |
| 3481 | int __pyx_clineno = 0; |
| 3482 | __Pyx_RefNannySetupContext("get_error", 0); |
| 3483 | /* Check if called by wrapper */ |
| 3484 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 3485 | /* Check if overridden in Python */ |
| 3486 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 3487 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_error); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__3487; goto __pyx_L1_error;} |
| 3488 | __Pyx_GOTREF(__pyx_t_1); |
| 3489 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_15get_error)) { |
| 3490 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3491 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__3491; goto __pyx_L1_error;} |
| 3492 | __Pyx_GOTREF(__pyx_t_2); |
| 3493 | __pyx_r = __pyx_t_2; |
| 3494 | __pyx_t_2 = 0; |
| 3495 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3496 | goto __pyx_L0; |
| 3497 | } |
| 3498 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3499 | } |
| 3500 | |
| 3501 | /* "xmmsvalue.pyx":148 |
| 3502 | * @rtype: String |
| 3503 | * """ |
| 3504 | * cdef char *ret = NULL # <<<<<<<<<<<<<< |
| 3505 | * if not xmmsv_get_error(self.val, <const_char **>&ret): |
| 3506 | * raise ValueError("Failed to retrieve value") |
| 3507 | */ |
| 3508 | __pyx_v_ret = NULL((void*)0); |
| 3509 | |
| 3510 | /* "xmmsvalue.pyx":149 |
| 3511 | * """ |
| 3512 | * cdef char *ret = NULL |
| 3513 | * if not xmmsv_get_error(self.val, <const_char **>&ret): # <<<<<<<<<<<<<< |
| 3514 | * raise ValueError("Failed to retrieve value") |
| 3515 | * return XmmsError(to_unicode(ret)) |
| 3516 | */ |
| 3517 | __pyx_t_3 = ((!(xmmsv_get_error(__pyx_v_self->val, ((const char **)(&__pyx_v_ret))) != 0)) != 0); |
| 3518 | if (__pyx_t_3) { |
| 3519 | |
| 3520 | /* "xmmsvalue.pyx":150 |
| 3521 | * cdef char *ret = NULL |
| 3522 | * if not xmmsv_get_error(self.val, <const_char **>&ret): |
| 3523 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 3524 | * return XmmsError(to_unicode(ret)) |
| 3525 | * |
| 3526 | */ |
| 3527 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple_, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__3527; goto __pyx_L1_error;} |
| 3528 | __Pyx_GOTREF(__pyx_t_1); |
| 3529 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 3530 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3531 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__3531; goto __pyx_L1_error;} |
| 3532 | } |
| 3533 | |
| 3534 | /* "xmmsvalue.pyx":151 |
| 3535 | * if not xmmsv_get_error(self.val, <const_char **>&ret): |
| 3536 | * raise ValueError("Failed to retrieve value") |
| 3537 | * return XmmsError(to_unicode(ret)) # <<<<<<<<<<<<<< |
| 3538 | * |
| 3539 | * cpdef get_int(self): |
| 3540 | */ |
| 3541 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3542 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_XmmsError); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__3542; goto __pyx_L1_error;} |
| 3543 | __Pyx_GOTREF(__pyx_t_1); |
| 3544 | __pyx_t_2 = __pyx_f_9xmmsutils_to_unicode(__pyx_v_ret); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__3544; goto __pyx_L1_error;} |
| 3545 | __Pyx_GOTREF(__pyx_t_2); |
| 3546 | __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__3546; goto __pyx_L1_error;} |
| 3547 | __Pyx_GOTREF(__pyx_t_4); |
| 3548 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_t_2); |
| 3549 | __Pyx_GIVEREF(__pyx_t_2); |
| 3550 | __pyx_t_2 = 0; |
| 3551 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 151; __pyx_clineno = __LINE__3551; goto __pyx_L1_error;} |
| 3552 | __Pyx_GOTREF(__pyx_t_2); |
| 3553 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3554 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 3555 | __pyx_r = __pyx_t_2; |
| 3556 | __pyx_t_2 = 0; |
| 3557 | goto __pyx_L0; |
| 3558 | |
| 3559 | /* "xmmsvalue.pyx":143 |
| 3560 | * return xmmsv_is_type(self.val, XMMSV_TYPE_ERROR) |
| 3561 | * |
| 3562 | * cpdef get_error(self): # <<<<<<<<<<<<<< |
| 3563 | * """ |
| 3564 | * @return: Error string from the result. |
| 3565 | */ |
| 3566 | |
| 3567 | /* function exit code */ |
| 3568 | __pyx_L1_error:; |
| 3569 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3570 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 3571 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 3572 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_error", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3573 | __pyx_r = 0; |
| 3574 | __pyx_L0:; |
| 3575 | __Pyx_XGIVEREF(__pyx_r); |
| 3576 | __Pyx_RefNannyFinishContext(); |
| 3577 | return __pyx_r; |
| 3578 | } |
| 3579 | |
| 3580 | /* Python wrapper */ |
| 3581 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_15get_error(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3582 | static char __pyx_doc_9xmmsvalue_9XmmsValue_14get_error[] = "XmmsValue.get_error(self)\n\n\t\t@return: Error string from the result.\n\t\t@rtype: String\n\t\t"; |
| 3583 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_15get_error(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 3584 | PyObject *__pyx_r = 0; |
| 3585 | __Pyx_RefNannyDeclarations |
| 3586 | __Pyx_RefNannySetupContext("get_error (wrapper)", 0); |
| 3587 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_14get_error(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 3588 | |
| 3589 | /* function exit code */ |
| 3590 | __Pyx_RefNannyFinishContext(); |
| 3591 | return __pyx_r; |
| 3592 | } |
| 3593 | |
| 3594 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_14get_error(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 3595 | PyObject *__pyx_r = NULL((void*)0); |
| 3596 | __Pyx_RefNannyDeclarations |
| 3597 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3598 | int __pyx_lineno = 0; |
| 3599 | const char *__pyx_filename = NULL((void*)0); |
| 3600 | int __pyx_clineno = 0; |
| 3601 | __Pyx_RefNannySetupContext("get_error", 0); |
| 3602 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3603 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_error(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__3603; goto __pyx_L1_error;} |
| 3604 | __Pyx_GOTREF(__pyx_t_1); |
| 3605 | __pyx_r = __pyx_t_1; |
| 3606 | __pyx_t_1 = 0; |
| 3607 | goto __pyx_L0; |
| 3608 | |
| 3609 | /* function exit code */ |
| 3610 | __pyx_L1_error:; |
| 3611 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3612 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_error", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3613 | __pyx_r = NULL((void*)0); |
| 3614 | __pyx_L0:; |
| 3615 | __Pyx_XGIVEREF(__pyx_r); |
| 3616 | __Pyx_RefNannyFinishContext(); |
| 3617 | return __pyx_r; |
| 3618 | } |
| 3619 | |
| 3620 | /* "xmmsvalue.pyx":153 |
| 3621 | * return XmmsError(to_unicode(ret)) |
| 3622 | * |
| 3623 | * cpdef get_int(self): # <<<<<<<<<<<<<< |
| 3624 | * """ |
| 3625 | * Get data from the result structure as an int. |
| 3626 | */ |
| 3627 | |
| 3628 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_17get_int(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3629 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_int(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 3630 | int64_t __pyx_v_ret; |
| 3631 | PyObject *__pyx_r = NULL((void*)0); |
| 3632 | __Pyx_RefNannyDeclarations |
| 3633 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3634 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 3635 | int __pyx_t_3; |
| 3636 | int __pyx_lineno = 0; |
| 3637 | const char *__pyx_filename = NULL((void*)0); |
| 3638 | int __pyx_clineno = 0; |
| 3639 | __Pyx_RefNannySetupContext("get_int", 0); |
| 3640 | /* Check if called by wrapper */ |
| 3641 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 3642 | /* Check if overridden in Python */ |
| 3643 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 3644 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_int); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__3644; goto __pyx_L1_error;} |
| 3645 | __Pyx_GOTREF(__pyx_t_1); |
| 3646 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_17get_int)) { |
| 3647 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3648 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__3648; goto __pyx_L1_error;} |
| 3649 | __Pyx_GOTREF(__pyx_t_2); |
| 3650 | __pyx_r = __pyx_t_2; |
| 3651 | __pyx_t_2 = 0; |
| 3652 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3653 | goto __pyx_L0; |
| 3654 | } |
| 3655 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3656 | } |
| 3657 | |
| 3658 | /* "xmmsvalue.pyx":158 |
| 3659 | * @rtype: int |
| 3660 | * """ |
| 3661 | * cdef int64_t ret = 0 # <<<<<<<<<<<<<< |
| 3662 | * if not xmmsv_get_int64(self.val, &ret): |
| 3663 | * raise ValueError("Failed to retrieve value") |
| 3664 | */ |
| 3665 | __pyx_v_ret = 0; |
| 3666 | |
| 3667 | /* "xmmsvalue.pyx":159 |
| 3668 | * """ |
| 3669 | * cdef int64_t ret = 0 |
| 3670 | * if not xmmsv_get_int64(self.val, &ret): # <<<<<<<<<<<<<< |
| 3671 | * raise ValueError("Failed to retrieve value") |
| 3672 | * return ret |
| 3673 | */ |
| 3674 | __pyx_t_3 = ((!(xmmsv_get_int64(__pyx_v_self->val, (&__pyx_v_ret)) != 0)) != 0); |
| 3675 | if (__pyx_t_3) { |
| 3676 | |
| 3677 | /* "xmmsvalue.pyx":160 |
| 3678 | * cdef int64_t ret = 0 |
| 3679 | * if not xmmsv_get_int64(self.val, &ret): |
| 3680 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 3681 | * return ret |
| 3682 | * |
| 3683 | */ |
| 3684 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__3684; goto __pyx_L1_error;} |
| 3685 | __Pyx_GOTREF(__pyx_t_1); |
| 3686 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 3687 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3688 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__3688; goto __pyx_L1_error;} |
| 3689 | } |
| 3690 | |
| 3691 | /* "xmmsvalue.pyx":161 |
| 3692 | * if not xmmsv_get_int64(self.val, &ret): |
| 3693 | * raise ValueError("Failed to retrieve value") |
| 3694 | * return ret # <<<<<<<<<<<<<< |
| 3695 | * |
| 3696 | * cpdef get_float(self): |
| 3697 | */ |
| 3698 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3699 | __pyx_t_1 = __Pyx_PyInt_From_int64_t(__pyx_v_ret); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__3699; goto __pyx_L1_error;} |
| 3700 | __Pyx_GOTREF(__pyx_t_1); |
| 3701 | __pyx_r = __pyx_t_1; |
| 3702 | __pyx_t_1 = 0; |
| 3703 | goto __pyx_L0; |
| 3704 | |
| 3705 | /* "xmmsvalue.pyx":153 |
| 3706 | * return XmmsError(to_unicode(ret)) |
| 3707 | * |
| 3708 | * cpdef get_int(self): # <<<<<<<<<<<<<< |
| 3709 | * """ |
| 3710 | * Get data from the result structure as an int. |
| 3711 | */ |
| 3712 | |
| 3713 | /* function exit code */ |
| 3714 | __pyx_L1_error:; |
| 3715 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3716 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 3717 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_int", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3718 | __pyx_r = 0; |
| 3719 | __pyx_L0:; |
| 3720 | __Pyx_XGIVEREF(__pyx_r); |
| 3721 | __Pyx_RefNannyFinishContext(); |
| 3722 | return __pyx_r; |
| 3723 | } |
| 3724 | |
| 3725 | /* Python wrapper */ |
| 3726 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_17get_int(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3727 | static char __pyx_doc_9xmmsvalue_9XmmsValue_16get_int[] = "XmmsValue.get_int(self)\n\n\t\tGet data from the result structure as an int.\n\t\t@rtype: int\n\t\t"; |
| 3728 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_17get_int(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 3729 | PyObject *__pyx_r = 0; |
| 3730 | __Pyx_RefNannyDeclarations |
| 3731 | __Pyx_RefNannySetupContext("get_int (wrapper)", 0); |
| 3732 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_16get_int(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 3733 | |
| 3734 | /* function exit code */ |
| 3735 | __Pyx_RefNannyFinishContext(); |
| 3736 | return __pyx_r; |
| 3737 | } |
| 3738 | |
| 3739 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_16get_int(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 3740 | PyObject *__pyx_r = NULL((void*)0); |
| 3741 | __Pyx_RefNannyDeclarations |
| 3742 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3743 | int __pyx_lineno = 0; |
| 3744 | const char *__pyx_filename = NULL((void*)0); |
| 3745 | int __pyx_clineno = 0; |
| 3746 | __Pyx_RefNannySetupContext("get_int", 0); |
| 3747 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3748 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_int(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__3748; goto __pyx_L1_error;} |
| 3749 | __Pyx_GOTREF(__pyx_t_1); |
| 3750 | __pyx_r = __pyx_t_1; |
| 3751 | __pyx_t_1 = 0; |
| 3752 | goto __pyx_L0; |
| 3753 | |
| 3754 | /* function exit code */ |
| 3755 | __pyx_L1_error:; |
| 3756 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3757 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_int", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3758 | __pyx_r = NULL((void*)0); |
| 3759 | __pyx_L0:; |
| 3760 | __Pyx_XGIVEREF(__pyx_r); |
| 3761 | __Pyx_RefNannyFinishContext(); |
| 3762 | return __pyx_r; |
| 3763 | } |
| 3764 | |
| 3765 | /* "xmmsvalue.pyx":163 |
| 3766 | * return ret |
| 3767 | * |
| 3768 | * cpdef get_float(self): # <<<<<<<<<<<<<< |
| 3769 | * """ |
| 3770 | * Get data from the result structure as an float. |
| 3771 | */ |
| 3772 | |
| 3773 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_19get_float(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3774 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_float(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 3775 | float __pyx_v_ret; |
| 3776 | PyObject *__pyx_r = NULL((void*)0); |
| 3777 | __Pyx_RefNannyDeclarations |
| 3778 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3779 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 3780 | int __pyx_t_3; |
| 3781 | int __pyx_lineno = 0; |
| 3782 | const char *__pyx_filename = NULL((void*)0); |
| 3783 | int __pyx_clineno = 0; |
| 3784 | __Pyx_RefNannySetupContext("get_float", 0); |
| 3785 | /* Check if called by wrapper */ |
| 3786 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 3787 | /* Check if overridden in Python */ |
| 3788 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 3789 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_float); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__3789; goto __pyx_L1_error;} |
| 3790 | __Pyx_GOTREF(__pyx_t_1); |
| 3791 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_19get_float)) { |
| 3792 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3793 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__3793; goto __pyx_L1_error;} |
| 3794 | __Pyx_GOTREF(__pyx_t_2); |
| 3795 | __pyx_r = __pyx_t_2; |
| 3796 | __pyx_t_2 = 0; |
| 3797 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3798 | goto __pyx_L0; |
| 3799 | } |
| 3800 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3801 | } |
| 3802 | |
| 3803 | /* "xmmsvalue.pyx":168 |
| 3804 | * @rtype: float |
| 3805 | * """ |
| 3806 | * cdef float ret = 0 # <<<<<<<<<<<<<< |
| 3807 | * if not xmmsv_get_float(self.val, &ret): |
| 3808 | * raise ValueError("Failed to retrieve value") |
| 3809 | */ |
| 3810 | __pyx_v_ret = 0.0; |
| 3811 | |
| 3812 | /* "xmmsvalue.pyx":169 |
| 3813 | * """ |
| 3814 | * cdef float ret = 0 |
| 3815 | * if not xmmsv_get_float(self.val, &ret): # <<<<<<<<<<<<<< |
| 3816 | * raise ValueError("Failed to retrieve value") |
| 3817 | * return ret |
| 3818 | */ |
| 3819 | __pyx_t_3 = ((!(xmmsv_get_float(__pyx_v_self->val, (&__pyx_v_ret)) != 0)) != 0); |
| 3820 | if (__pyx_t_3) { |
| 3821 | |
| 3822 | /* "xmmsvalue.pyx":170 |
| 3823 | * cdef float ret = 0 |
| 3824 | * if not xmmsv_get_float(self.val, &ret): |
| 3825 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 3826 | * return ret |
| 3827 | * |
| 3828 | */ |
| 3829 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__3, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__3829; goto __pyx_L1_error;} |
| 3830 | __Pyx_GOTREF(__pyx_t_1); |
| 3831 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 3832 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3833 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__3833; goto __pyx_L1_error;} |
| 3834 | } |
| 3835 | |
| 3836 | /* "xmmsvalue.pyx":171 |
| 3837 | * if not xmmsv_get_float(self.val, &ret): |
| 3838 | * raise ValueError("Failed to retrieve value") |
| 3839 | * return ret # <<<<<<<<<<<<<< |
| 3840 | * |
| 3841 | * cpdef get_string(self): |
| 3842 | */ |
| 3843 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3844 | __pyx_t_1 = PyFloat_FromDouble(__pyx_v_ret); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__3844; goto __pyx_L1_error;} |
| 3845 | __Pyx_GOTREF(__pyx_t_1); |
| 3846 | __pyx_r = __pyx_t_1; |
| 3847 | __pyx_t_1 = 0; |
| 3848 | goto __pyx_L0; |
| 3849 | |
| 3850 | /* "xmmsvalue.pyx":163 |
| 3851 | * return ret |
| 3852 | * |
| 3853 | * cpdef get_float(self): # <<<<<<<<<<<<<< |
| 3854 | * """ |
| 3855 | * Get data from the result structure as an float. |
| 3856 | */ |
| 3857 | |
| 3858 | /* function exit code */ |
| 3859 | __pyx_L1_error:; |
| 3860 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3861 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 3862 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_float", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3863 | __pyx_r = 0; |
| 3864 | __pyx_L0:; |
| 3865 | __Pyx_XGIVEREF(__pyx_r); |
| 3866 | __Pyx_RefNannyFinishContext(); |
| 3867 | return __pyx_r; |
| 3868 | } |
| 3869 | |
| 3870 | /* Python wrapper */ |
| 3871 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_19get_float(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3872 | static char __pyx_doc_9xmmsvalue_9XmmsValue_18get_float[] = "XmmsValue.get_float(self)\n\n\t\tGet data from the result structure as an float.\n\t\t@rtype: float\n\t\t"; |
| 3873 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_19get_float(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 3874 | PyObject *__pyx_r = 0; |
| 3875 | __Pyx_RefNannyDeclarations |
| 3876 | __Pyx_RefNannySetupContext("get_float (wrapper)", 0); |
| 3877 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_18get_float(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 3878 | |
| 3879 | /* function exit code */ |
| 3880 | __Pyx_RefNannyFinishContext(); |
| 3881 | return __pyx_r; |
| 3882 | } |
| 3883 | |
| 3884 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_18get_float(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 3885 | PyObject *__pyx_r = NULL((void*)0); |
| 3886 | __Pyx_RefNannyDeclarations |
| 3887 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3888 | int __pyx_lineno = 0; |
| 3889 | const char *__pyx_filename = NULL((void*)0); |
| 3890 | int __pyx_clineno = 0; |
| 3891 | __Pyx_RefNannySetupContext("get_float", 0); |
| 3892 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3893 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_float(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__3893; goto __pyx_L1_error;} |
| 3894 | __Pyx_GOTREF(__pyx_t_1); |
| 3895 | __pyx_r = __pyx_t_1; |
| 3896 | __pyx_t_1 = 0; |
| 3897 | goto __pyx_L0; |
| 3898 | |
| 3899 | /* function exit code */ |
| 3900 | __pyx_L1_error:; |
| 3901 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 3902 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_float", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 3903 | __pyx_r = NULL((void*)0); |
| 3904 | __pyx_L0:; |
| 3905 | __Pyx_XGIVEREF(__pyx_r); |
| 3906 | __Pyx_RefNannyFinishContext(); |
| 3907 | return __pyx_r; |
| 3908 | } |
| 3909 | |
| 3910 | /* "xmmsvalue.pyx":173 |
| 3911 | * return ret |
| 3912 | * |
| 3913 | * cpdef get_string(self): # <<<<<<<<<<<<<< |
| 3914 | * """ |
| 3915 | * Get data from the result structure as a string. |
| 3916 | */ |
| 3917 | |
| 3918 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_21get_string(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 3919 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_string(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 3920 | char *__pyx_v_ret; |
| 3921 | PyObject *__pyx_r = NULL((void*)0); |
| 3922 | __Pyx_RefNannyDeclarations |
| 3923 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 3924 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 3925 | int __pyx_t_3; |
| 3926 | int __pyx_lineno = 0; |
| 3927 | const char *__pyx_filename = NULL((void*)0); |
| 3928 | int __pyx_clineno = 0; |
| 3929 | __Pyx_RefNannySetupContext("get_string", 0); |
| 3930 | /* Check if called by wrapper */ |
| 3931 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 3932 | /* Check if overridden in Python */ |
| 3933 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 3934 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_string); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__3934; goto __pyx_L1_error;} |
| 3935 | __Pyx_GOTREF(__pyx_t_1); |
| 3936 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_21get_string)) { |
| 3937 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3938 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__3938; goto __pyx_L1_error;} |
| 3939 | __Pyx_GOTREF(__pyx_t_2); |
| 3940 | __pyx_r = __pyx_t_2; |
| 3941 | __pyx_t_2 = 0; |
| 3942 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3943 | goto __pyx_L0; |
| 3944 | } |
| 3945 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3946 | } |
| 3947 | |
| 3948 | /* "xmmsvalue.pyx":178 |
| 3949 | * @rtype: string |
| 3950 | * """ |
| 3951 | * cdef char *ret = NULL # <<<<<<<<<<<<<< |
| 3952 | * if not xmmsv_get_string(self.val, <const_char **>&ret): |
| 3953 | * raise ValueError("Failed to retrieve value") |
| 3954 | */ |
| 3955 | __pyx_v_ret = NULL((void*)0); |
| 3956 | |
| 3957 | /* "xmmsvalue.pyx":179 |
| 3958 | * """ |
| 3959 | * cdef char *ret = NULL |
| 3960 | * if not xmmsv_get_string(self.val, <const_char **>&ret): # <<<<<<<<<<<<<< |
| 3961 | * raise ValueError("Failed to retrieve value") |
| 3962 | * return to_unicode(ret) |
| 3963 | */ |
| 3964 | __pyx_t_3 = ((!(xmmsv_get_string(__pyx_v_self->val, ((const char **)(&__pyx_v_ret))) != 0)) != 0); |
| 3965 | if (__pyx_t_3) { |
| 3966 | |
| 3967 | /* "xmmsvalue.pyx":180 |
| 3968 | * cdef char *ret = NULL |
| 3969 | * if not xmmsv_get_string(self.val, <const_char **>&ret): |
| 3970 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 3971 | * return to_unicode(ret) |
| 3972 | * |
| 3973 | */ |
| 3974 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__4, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__3974; goto __pyx_L1_error;} |
| 3975 | __Pyx_GOTREF(__pyx_t_1); |
| 3976 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 3977 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 3978 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__3978; goto __pyx_L1_error;} |
| 3979 | } |
| 3980 | |
| 3981 | /* "xmmsvalue.pyx":181 |
| 3982 | * if not xmmsv_get_string(self.val, <const_char **>&ret): |
| 3983 | * raise ValueError("Failed to retrieve value") |
| 3984 | * return to_unicode(ret) # <<<<<<<<<<<<<< |
| 3985 | * |
| 3986 | * cpdef get_bin(self): |
| 3987 | */ |
| 3988 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 3989 | __pyx_t_1 = __pyx_f_9xmmsutils_to_unicode(__pyx_v_ret); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 181; __pyx_clineno = __LINE__3989; goto __pyx_L1_error;} |
| 3990 | __Pyx_GOTREF(__pyx_t_1); |
| 3991 | __pyx_r = __pyx_t_1; |
| 3992 | __pyx_t_1 = 0; |
| 3993 | goto __pyx_L0; |
| 3994 | |
| 3995 | /* "xmmsvalue.pyx":173 |
| 3996 | * return ret |
| 3997 | * |
| 3998 | * cpdef get_string(self): # <<<<<<<<<<<<<< |
| 3999 | * """ |
| 4000 | * Get data from the result structure as a string. |
| 4001 | */ |
| 4002 | |
| 4003 | /* function exit code */ |
| 4004 | __pyx_L1_error:; |
| 4005 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4006 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 4007 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_string", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4008 | __pyx_r = 0; |
| 4009 | __pyx_L0:; |
| 4010 | __Pyx_XGIVEREF(__pyx_r); |
| 4011 | __Pyx_RefNannyFinishContext(); |
| 4012 | return __pyx_r; |
| 4013 | } |
| 4014 | |
| 4015 | /* Python wrapper */ |
| 4016 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_21get_string(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4017 | static char __pyx_doc_9xmmsvalue_9XmmsValue_20get_string[] = "XmmsValue.get_string(self)\n\n\t\tGet data from the result structure as a string.\n\t\t@rtype: string\n\t\t"; |
| 4018 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_21get_string(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 4019 | PyObject *__pyx_r = 0; |
| 4020 | __Pyx_RefNannyDeclarations |
| 4021 | __Pyx_RefNannySetupContext("get_string (wrapper)", 0); |
| 4022 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_20get_string(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 4023 | |
| 4024 | /* function exit code */ |
| 4025 | __Pyx_RefNannyFinishContext(); |
| 4026 | return __pyx_r; |
| 4027 | } |
| 4028 | |
| 4029 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_20get_string(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 4030 | PyObject *__pyx_r = NULL((void*)0); |
| 4031 | __Pyx_RefNannyDeclarations |
| 4032 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4033 | int __pyx_lineno = 0; |
| 4034 | const char *__pyx_filename = NULL((void*)0); |
| 4035 | int __pyx_clineno = 0; |
| 4036 | __Pyx_RefNannySetupContext("get_string", 0); |
| 4037 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4038 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_string(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__4038; goto __pyx_L1_error;} |
| 4039 | __Pyx_GOTREF(__pyx_t_1); |
| 4040 | __pyx_r = __pyx_t_1; |
| 4041 | __pyx_t_1 = 0; |
| 4042 | goto __pyx_L0; |
| 4043 | |
| 4044 | /* function exit code */ |
| 4045 | __pyx_L1_error:; |
| 4046 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4047 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_string", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4048 | __pyx_r = NULL((void*)0); |
| 4049 | __pyx_L0:; |
| 4050 | __Pyx_XGIVEREF(__pyx_r); |
| 4051 | __Pyx_RefNannyFinishContext(); |
| 4052 | return __pyx_r; |
| 4053 | } |
| 4054 | |
| 4055 | /* "xmmsvalue.pyx":183 |
| 4056 | * return to_unicode(ret) |
| 4057 | * |
| 4058 | * cpdef get_bin(self): # <<<<<<<<<<<<<< |
| 4059 | * """ |
| 4060 | * Get data from the result structure as binary data. |
| 4061 | */ |
| 4062 | |
| 4063 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_23get_bin(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4064 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_bin(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 4065 | char *__pyx_v_ret; |
| 4066 | unsigned int __pyx_v_rlen; |
| 4067 | PyObject *__pyx_r = NULL((void*)0); |
| 4068 | __Pyx_RefNannyDeclarations |
| 4069 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4070 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 4071 | int __pyx_t_3; |
| 4072 | int __pyx_lineno = 0; |
| 4073 | const char *__pyx_filename = NULL((void*)0); |
| 4074 | int __pyx_clineno = 0; |
| 4075 | __Pyx_RefNannySetupContext("get_bin", 0); |
| 4076 | /* Check if called by wrapper */ |
| 4077 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 4078 | /* Check if overridden in Python */ |
| 4079 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 4080 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_bin); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__4080; goto __pyx_L1_error;} |
| 4081 | __Pyx_GOTREF(__pyx_t_1); |
| 4082 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_23get_bin)) { |
| 4083 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4084 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__4084; goto __pyx_L1_error;} |
| 4085 | __Pyx_GOTREF(__pyx_t_2); |
| 4086 | __pyx_r = __pyx_t_2; |
| 4087 | __pyx_t_2 = 0; |
| 4088 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4089 | goto __pyx_L0; |
| 4090 | } |
| 4091 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4092 | } |
| 4093 | |
| 4094 | /* "xmmsvalue.pyx":188 |
| 4095 | * @rtype: string |
| 4096 | * """ |
| 4097 | * cdef char *ret = NULL # <<<<<<<<<<<<<< |
| 4098 | * cdef unsigned int rlen = 0 |
| 4099 | * if not xmmsv_get_bin(self.val, <const_uchar **>&ret, &rlen): |
| 4100 | */ |
| 4101 | __pyx_v_ret = NULL((void*)0); |
| 4102 | |
| 4103 | /* "xmmsvalue.pyx":189 |
| 4104 | * """ |
| 4105 | * cdef char *ret = NULL |
| 4106 | * cdef unsigned int rlen = 0 # <<<<<<<<<<<<<< |
| 4107 | * if not xmmsv_get_bin(self.val, <const_uchar **>&ret, &rlen): |
| 4108 | * raise ValueError("Failed to retrieve value") |
| 4109 | */ |
| 4110 | __pyx_v_rlen = 0; |
| 4111 | |
| 4112 | /* "xmmsvalue.pyx":190 |
| 4113 | * cdef char *ret = NULL |
| 4114 | * cdef unsigned int rlen = 0 |
| 4115 | * if not xmmsv_get_bin(self.val, <const_uchar **>&ret, &rlen): # <<<<<<<<<<<<<< |
| 4116 | * raise ValueError("Failed to retrieve value") |
| 4117 | * return PyBytes_FromStringAndSize(<char *>ret, rlen) |
| 4118 | */ |
| 4119 | __pyx_t_3 = ((!(xmmsv_get_bin(__pyx_v_self->val, ((const unsigned char **)(&__pyx_v_ret)), (&__pyx_v_rlen)) != 0)) != 0); |
| 4120 | if (__pyx_t_3) { |
| 4121 | |
| 4122 | /* "xmmsvalue.pyx":191 |
| 4123 | * cdef unsigned int rlen = 0 |
| 4124 | * if not xmmsv_get_bin(self.val, <const_uchar **>&ret, &rlen): |
| 4125 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 4126 | * return PyBytes_FromStringAndSize(<char *>ret, rlen) |
| 4127 | * |
| 4128 | */ |
| 4129 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__5, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__4129; goto __pyx_L1_error;} |
| 4130 | __Pyx_GOTREF(__pyx_t_1); |
| 4131 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 4132 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4133 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__4133; goto __pyx_L1_error;} |
| 4134 | } |
| 4135 | |
| 4136 | /* "xmmsvalue.pyx":192 |
| 4137 | * if not xmmsv_get_bin(self.val, <const_uchar **>&ret, &rlen): |
| 4138 | * raise ValueError("Failed to retrieve value") |
| 4139 | * return PyBytes_FromStringAndSize(<char *>ret, rlen) # <<<<<<<<<<<<<< |
| 4140 | * |
| 4141 | * cpdef get_coll(self): |
| 4142 | */ |
| 4143 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4144 | __pyx_t_1 = PyBytes_FromStringAndSizePyString_FromStringAndSize(((char *)__pyx_v_ret), __pyx_v_rlen); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 192; __pyx_clineno = __LINE__4144; goto __pyx_L1_error;} |
| 4145 | __Pyx_GOTREF(__pyx_t_1); |
| 4146 | __pyx_r = __pyx_t_1; |
| 4147 | __pyx_t_1 = 0; |
| 4148 | goto __pyx_L0; |
| 4149 | |
| 4150 | /* "xmmsvalue.pyx":183 |
| 4151 | * return to_unicode(ret) |
| 4152 | * |
| 4153 | * cpdef get_bin(self): # <<<<<<<<<<<<<< |
| 4154 | * """ |
| 4155 | * Get data from the result structure as binary data. |
| 4156 | */ |
| 4157 | |
| 4158 | /* function exit code */ |
| 4159 | __pyx_L1_error:; |
| 4160 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4161 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 4162 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_bin", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4163 | __pyx_r = 0; |
| 4164 | __pyx_L0:; |
| 4165 | __Pyx_XGIVEREF(__pyx_r); |
| 4166 | __Pyx_RefNannyFinishContext(); |
| 4167 | return __pyx_r; |
| 4168 | } |
| 4169 | |
| 4170 | /* Python wrapper */ |
| 4171 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_23get_bin(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4172 | static char __pyx_doc_9xmmsvalue_9XmmsValue_22get_bin[] = "XmmsValue.get_bin(self)\n\n\t\tGet data from the result structure as binary data.\n\t\t@rtype: string\n\t\t"; |
| 4173 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_23get_bin(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 4174 | PyObject *__pyx_r = 0; |
| 4175 | __Pyx_RefNannyDeclarations |
| 4176 | __Pyx_RefNannySetupContext("get_bin (wrapper)", 0); |
| 4177 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_22get_bin(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 4178 | |
| 4179 | /* function exit code */ |
| 4180 | __Pyx_RefNannyFinishContext(); |
| 4181 | return __pyx_r; |
| 4182 | } |
| 4183 | |
| 4184 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_22get_bin(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 4185 | PyObject *__pyx_r = NULL((void*)0); |
| 4186 | __Pyx_RefNannyDeclarations |
| 4187 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4188 | int __pyx_lineno = 0; |
| 4189 | const char *__pyx_filename = NULL((void*)0); |
| 4190 | int __pyx_clineno = 0; |
| 4191 | __Pyx_RefNannySetupContext("get_bin", 0); |
| 4192 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4193 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_bin(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__4193; goto __pyx_L1_error;} |
| 4194 | __Pyx_GOTREF(__pyx_t_1); |
| 4195 | __pyx_r = __pyx_t_1; |
| 4196 | __pyx_t_1 = 0; |
| 4197 | goto __pyx_L0; |
| 4198 | |
| 4199 | /* function exit code */ |
| 4200 | __pyx_L1_error:; |
| 4201 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4202 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_bin", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4203 | __pyx_r = NULL((void*)0); |
| 4204 | __pyx_L0:; |
| 4205 | __Pyx_XGIVEREF(__pyx_r); |
| 4206 | __Pyx_RefNannyFinishContext(); |
| 4207 | return __pyx_r; |
| 4208 | } |
| 4209 | |
| 4210 | /* "xmmsvalue.pyx":194 |
| 4211 | * return PyBytes_FromStringAndSize(<char *>ret, rlen) |
| 4212 | * |
| 4213 | * cpdef get_coll(self): # <<<<<<<<<<<<<< |
| 4214 | * """ |
| 4215 | * Get data from the result structure as a Collection. |
| 4216 | */ |
| 4217 | |
| 4218 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_25get_coll(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4219 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_coll(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 4220 | PyObject *__pyx_r = NULL((void*)0); |
| 4221 | __Pyx_RefNannyDeclarations |
| 4222 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4223 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 4224 | int __pyx_t_3; |
| 4225 | int __pyx_lineno = 0; |
| 4226 | const char *__pyx_filename = NULL((void*)0); |
| 4227 | int __pyx_clineno = 0; |
| 4228 | __Pyx_RefNannySetupContext("get_coll", 0); |
| 4229 | /* Check if called by wrapper */ |
| 4230 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 4231 | /* Check if overridden in Python */ |
| 4232 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 4233 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_coll); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__4233; goto __pyx_L1_error;} |
| 4234 | __Pyx_GOTREF(__pyx_t_1); |
| 4235 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_25get_coll)) { |
| 4236 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4237 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__4237; goto __pyx_L1_error;} |
| 4238 | __Pyx_GOTREF(__pyx_t_2); |
| 4239 | __pyx_r = __pyx_t_2; |
| 4240 | __pyx_t_2 = 0; |
| 4241 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4242 | goto __pyx_L0; |
| 4243 | } |
| 4244 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4245 | } |
| 4246 | |
| 4247 | /* "xmmsvalue.pyx":199 |
| 4248 | * @rtype: Collection |
| 4249 | * """ |
| 4250 | * if not xmmsv_is_type(self.val, XMMSV_TYPE_COLL): # <<<<<<<<<<<<<< |
| 4251 | * raise ValueError("The value is not a collection") |
| 4252 | * return create_coll(self.val) |
| 4253 | */ |
| 4254 | __pyx_t_3 = ((!(xmmsv_is_type(__pyx_v_self->val, XMMSV_TYPE_COLL) != 0)) != 0); |
| 4255 | if (__pyx_t_3) { |
| 4256 | |
| 4257 | /* "xmmsvalue.pyx":200 |
| 4258 | * """ |
| 4259 | * if not xmmsv_is_type(self.val, XMMSV_TYPE_COLL): |
| 4260 | * raise ValueError("The value is not a collection") # <<<<<<<<<<<<<< |
| 4261 | * return create_coll(self.val) |
| 4262 | * |
| 4263 | */ |
| 4264 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__4264; goto __pyx_L1_error;} |
| 4265 | __Pyx_GOTREF(__pyx_t_1); |
| 4266 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 4267 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4268 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__4268; goto __pyx_L1_error;} |
| 4269 | } |
| 4270 | |
| 4271 | /* "xmmsvalue.pyx":201 |
| 4272 | * if not xmmsv_is_type(self.val, XMMSV_TYPE_COLL): |
| 4273 | * raise ValueError("The value is not a collection") |
| 4274 | * return create_coll(self.val) # <<<<<<<<<<<<<< |
| 4275 | * |
| 4276 | * cpdef get_dict(self): |
| 4277 | */ |
| 4278 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4279 | __pyx_t_1 = __pyx_f_9xmmsvalue_create_coll(__pyx_v_self->val); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 201; __pyx_clineno = __LINE__4279; goto __pyx_L1_error;} |
| 4280 | __Pyx_GOTREF(__pyx_t_1); |
| 4281 | __pyx_r = __pyx_t_1; |
| 4282 | __pyx_t_1 = 0; |
| 4283 | goto __pyx_L0; |
| 4284 | |
| 4285 | /* "xmmsvalue.pyx":194 |
| 4286 | * return PyBytes_FromStringAndSize(<char *>ret, rlen) |
| 4287 | * |
| 4288 | * cpdef get_coll(self): # <<<<<<<<<<<<<< |
| 4289 | * """ |
| 4290 | * Get data from the result structure as a Collection. |
| 4291 | */ |
| 4292 | |
| 4293 | /* function exit code */ |
| 4294 | __pyx_L1_error:; |
| 4295 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4296 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 4297 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_coll", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4298 | __pyx_r = 0; |
| 4299 | __pyx_L0:; |
| 4300 | __Pyx_XGIVEREF(__pyx_r); |
| 4301 | __Pyx_RefNannyFinishContext(); |
| 4302 | return __pyx_r; |
| 4303 | } |
| 4304 | |
| 4305 | /* Python wrapper */ |
| 4306 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_25get_coll(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4307 | static char __pyx_doc_9xmmsvalue_9XmmsValue_24get_coll[] = "XmmsValue.get_coll(self)\n\n\t\tGet data from the result structure as a Collection.\n\t\t@rtype: Collection\n\t\t"; |
| 4308 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_25get_coll(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 4309 | PyObject *__pyx_r = 0; |
| 4310 | __Pyx_RefNannyDeclarations |
| 4311 | __Pyx_RefNannySetupContext("get_coll (wrapper)", 0); |
| 4312 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_24get_coll(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 4313 | |
| 4314 | /* function exit code */ |
| 4315 | __Pyx_RefNannyFinishContext(); |
| 4316 | return __pyx_r; |
| 4317 | } |
| 4318 | |
| 4319 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_24get_coll(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 4320 | PyObject *__pyx_r = NULL((void*)0); |
| 4321 | __Pyx_RefNannyDeclarations |
| 4322 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4323 | int __pyx_lineno = 0; |
| 4324 | const char *__pyx_filename = NULL((void*)0); |
| 4325 | int __pyx_clineno = 0; |
| 4326 | __Pyx_RefNannySetupContext("get_coll", 0); |
| 4327 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4328 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_coll(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__4328; goto __pyx_L1_error;} |
| 4329 | __Pyx_GOTREF(__pyx_t_1); |
| 4330 | __pyx_r = __pyx_t_1; |
| 4331 | __pyx_t_1 = 0; |
| 4332 | goto __pyx_L0; |
| 4333 | |
| 4334 | /* function exit code */ |
| 4335 | __pyx_L1_error:; |
| 4336 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4337 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_coll", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4338 | __pyx_r = NULL((void*)0); |
| 4339 | __pyx_L0:; |
| 4340 | __Pyx_XGIVEREF(__pyx_r); |
| 4341 | __Pyx_RefNannyFinishContext(); |
| 4342 | return __pyx_r; |
| 4343 | } |
| 4344 | |
| 4345 | /* "xmmsvalue.pyx":203 |
| 4346 | * return create_coll(self.val) |
| 4347 | * |
| 4348 | * cpdef get_dict(self): # <<<<<<<<<<<<<< |
| 4349 | * """ |
| 4350 | * @return: A dictionary containing media info. |
| 4351 | */ |
| 4352 | |
| 4353 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_27get_dict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4354 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_dict(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 4355 | PyObject *__pyx_v_k = NULL((void*)0); |
| 4356 | PyObject *__pyx_v_v = NULL((void*)0); |
| 4357 | PyObject *__pyx_r = NULL((void*)0); |
| 4358 | __Pyx_RefNannyDeclarations |
| 4359 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4360 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 4361 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 4362 | Py_ssize_t __pyx_t_4; |
| 4363 | PyObject *(*__pyx_t_5)(PyObject *); |
| 4364 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 4365 | PyObject *__pyx_t_7 = NULL((void*)0); |
| 4366 | PyObject *__pyx_t_8 = NULL((void*)0); |
| 4367 | PyObject *(*__pyx_t_9)(PyObject *); |
| 4368 | int __pyx_lineno = 0; |
| 4369 | const char *__pyx_filename = NULL((void*)0); |
| 4370 | int __pyx_clineno = 0; |
| 4371 | __Pyx_RefNannySetupContext("get_dict", 0); |
| 4372 | /* Check if called by wrapper */ |
| 4373 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 4374 | /* Check if overridden in Python */ |
| 4375 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 4376 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_dict); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__4376; goto __pyx_L1_error;} |
| 4377 | __Pyx_GOTREF(__pyx_t_1); |
| 4378 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_27get_dict)) { |
| 4379 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4380 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__4380; goto __pyx_L1_error;} |
| 4381 | __Pyx_GOTREF(__pyx_t_2); |
| 4382 | __pyx_r = __pyx_t_2; |
| 4383 | __pyx_t_2 = 0; |
| 4384 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4385 | goto __pyx_L0; |
| 4386 | } |
| 4387 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4388 | } |
| 4389 | |
| 4390 | /* "xmmsvalue.pyx":207 |
| 4391 | * @return: A dictionary containing media info. |
| 4392 | * """ |
| 4393 | * return dict([(k, v.value()) for k,v in self.get_dict_iter()]) # <<<<<<<<<<<<<< |
| 4394 | * |
| 4395 | * cpdef get_dict_iter(self): |
| 4396 | */ |
| 4397 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4398 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4398; goto __pyx_L1_error;} |
| 4399 | __Pyx_GOTREF(__pyx_t_1); |
| 4400 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_dict_iter(__pyx_v_self, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4400; goto __pyx_L1_error;} |
| 4401 | __Pyx_GOTREF(__pyx_t_2); |
| 4402 | if (PyList_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyTuple_Type)) { |
| 4403 | __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_4 = 0; |
| 4404 | __pyx_t_5 = NULL((void*)0); |
| 4405 | } else { |
| 4406 | __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4406; goto __pyx_L1_error;} |
| 4407 | __Pyx_GOTREF(__pyx_t_3); |
| 4408 | __pyx_t_5 = Py_TYPE(__pyx_t_3)(((PyObject*)(__pyx_t_3))->ob_type)->tp_iternext; |
| 4409 | } |
| 4410 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 4411 | for (;;) { |
| 4412 | if (!__pyx_t_5 && PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type)) { |
| 4413 | if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 4414 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4415 | __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4)(((PyListObject *)(__pyx_t_3))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4415; goto __pyx_L1_error;} |
| 4416 | #else |
| 4417 | __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4417; goto __pyx_L1_error;} |
| 4418 | #endif |
| 4419 | } else if (!__pyx_t_5 && PyTuple_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)) { |
| 4420 | if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 4421 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4422 | __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4)(((PyTupleObject *)(__pyx_t_3))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4422; goto __pyx_L1_error;} |
| 4423 | #else |
| 4424 | __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4424; goto __pyx_L1_error;} |
| 4425 | #endif |
| 4426 | } else { |
| 4427 | __pyx_t_2 = __pyx_t_5(__pyx_t_3); |
| 4428 | if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) { |
| 4429 | PyObject* exc_type = PyErr_Occurred(); |
| 4430 | if (exc_type) { |
| 4431 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 4432 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4432; goto __pyx_L1_error;} |
| 4433 | } |
| 4434 | break; |
| 4435 | } |
| 4436 | __Pyx_GOTREF(__pyx_t_2); |
| 4437 | } |
| 4438 | if ((likely(PyTuple_CheckExact(__pyx_t_2))__builtin_expect(!!(((((PyObject*)(__pyx_t_2))->ob_type) == &PyTuple_Type)), 1)) || (PyList_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyList_Type))) { |
| 4439 | PyObject* sequence = __pyx_t_2; |
| 4440 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4441 | Py_ssize_t size = Py_SIZE(sequence)(((PyVarObject*)(sequence))->ob_size); |
| 4442 | #else |
| 4443 | Py_ssize_t size = PySequence_Size(sequence); |
| 4444 | #endif |
| 4445 | if (unlikely(size != 2)__builtin_expect(!!(size != 2), 0)) { |
| 4446 | if (size > 2) __Pyx_RaiseTooManyValuesError(2); |
| 4447 | else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); |
| 4448 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4448; goto __pyx_L1_error;} |
| 4449 | } |
| 4450 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4451 | if (likely(PyTuple_CheckExact(sequence))__builtin_expect(!!(((((PyObject*)(sequence))->ob_type) == &PyTuple_Type)), 1)) { |
| 4452 | __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0)(((PyTupleObject *)(sequence))->ob_item[0]); |
| 4453 | __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1)(((PyTupleObject *)(sequence))->ob_item[1]); |
| 4454 | } else { |
| 4455 | __pyx_t_6 = PyList_GET_ITEM(sequence, 0)(((PyListObject *)(sequence))->ob_item[0]); |
| 4456 | __pyx_t_7 = PyList_GET_ITEM(sequence, 1)(((PyListObject *)(sequence))->ob_item[1]); |
| 4457 | } |
| 4458 | __Pyx_INCREF(__pyx_t_6)( ((PyObject*)(__pyx_t_6))->ob_refcnt++); |
| 4459 | __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); |
| 4460 | #else |
| 4461 | __pyx_t_6 = PySequence_ITEM(sequence, 0)( (((PyObject*)(sequence))->ob_type)->tp_as_sequence-> sq_item(sequence, 0) ); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4461; goto __pyx_L1_error;} |
| 4462 | __Pyx_GOTREF(__pyx_t_6); |
| 4463 | __pyx_t_7 = PySequence_ITEM(sequence, 1)( (((PyObject*)(sequence))->ob_type)->tp_as_sequence-> sq_item(sequence, 1) ); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4463; goto __pyx_L1_error;} |
| 4464 | __Pyx_GOTREF(__pyx_t_7); |
| 4465 | #endif |
| 4466 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 4467 | } else { |
| 4468 | Py_ssize_t index = -1; |
| 4469 | __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4469; goto __pyx_L1_error;} |
| 4470 | __Pyx_GOTREF(__pyx_t_8); |
| 4471 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 4472 | __pyx_t_9 = Py_TYPE(__pyx_t_8)(((PyObject*)(__pyx_t_8))->ob_type)->tp_iternext; |
| 4473 | index = 0; __pyx_t_6 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) goto __pyx_L5_unpacking_failed; |
| 4474 | __Pyx_GOTREF(__pyx_t_6); |
| 4475 | index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) goto __pyx_L5_unpacking_failed; |
| 4476 | __Pyx_GOTREF(__pyx_t_7); |
| 4477 | if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4477; goto __pyx_L1_error;} |
| 4478 | __pyx_t_9 = NULL((void*)0); |
| 4479 | __Pyx_DECREF(__pyx_t_8)do { if ( --((PyObject*)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_8)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while ( 0); __pyx_t_8 = 0; |
| 4480 | goto __pyx_L6_unpacking_done; |
| 4481 | __pyx_L5_unpacking_failed:; |
| 4482 | __Pyx_DECREF(__pyx_t_8)do { if ( --((PyObject*)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_8)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while ( 0); __pyx_t_8 = 0; |
| 4483 | __pyx_t_9 = NULL((void*)0); |
| 4484 | if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); |
| 4485 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4485; goto __pyx_L1_error;} |
| 4486 | __pyx_L6_unpacking_done:; |
| 4487 | } |
| 4488 | __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_6)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_t_6 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 4489 | __pyx_t_6 = 0; |
| 4490 | __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_7)do { PyObject *tmp = (PyObject *) __pyx_v_v; __pyx_v_v = __pyx_t_7 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 4491 | __pyx_t_7 = 0; |
| 4492 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s_value); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4492; goto __pyx_L1_error;} |
| 4493 | __Pyx_GOTREF(__pyx_t_2); |
| 4494 | __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4494; goto __pyx_L1_error;} |
| 4495 | __Pyx_GOTREF(__pyx_t_7); |
| 4496 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 4497 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4497; goto __pyx_L1_error;} |
| 4498 | __Pyx_GOTREF(__pyx_t_2); |
| 4499 | __Pyx_INCREF(__pyx_v_k)( ((PyObject*)(__pyx_v_k))->ob_refcnt++); |
| 4500 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_k)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_k); |
| 4501 | __Pyx_GIVEREF(__pyx_v_k); |
| 4502 | PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7)(((PyTupleObject *)(__pyx_t_2))->ob_item[1] = __pyx_t_7); |
| 4503 | __Pyx_GIVEREF(__pyx_t_7); |
| 4504 | __pyx_t_7 = 0; |
| 4505 | if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_2))__builtin_expect(!!(__Pyx_ListComp_Append(__pyx_t_1, (PyObject *)__pyx_t_2)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4505; goto __pyx_L1_error;} |
| 4506 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 4507 | } |
| 4508 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 4509 | __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4509; goto __pyx_L1_error;} |
| 4510 | __Pyx_GOTREF(__pyx_t_3); |
| 4511 | PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = __pyx_t_1); |
| 4512 | __Pyx_GIVEREF(__pyx_t_1); |
| 4513 | __pyx_t_1 = 0; |
| 4514 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyDict_Type))), __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__4514; goto __pyx_L1_error;} |
| 4515 | __Pyx_GOTREF(__pyx_t_1); |
| 4516 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 4517 | __pyx_r = __pyx_t_1; |
| 4518 | __pyx_t_1 = 0; |
| 4519 | goto __pyx_L0; |
| 4520 | |
| 4521 | /* "xmmsvalue.pyx":203 |
| 4522 | * return create_coll(self.val) |
| 4523 | * |
| 4524 | * cpdef get_dict(self): # <<<<<<<<<<<<<< |
| 4525 | * """ |
| 4526 | * @return: A dictionary containing media info. |
| 4527 | */ |
| 4528 | |
| 4529 | /* function exit code */ |
| 4530 | __pyx_L1_error:; |
| 4531 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4532 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 4533 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 4534 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 4535 | __Pyx_XDECREF(__pyx_t_7)do { if ((__pyx_t_7) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_7)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while (0); } while (0); |
| 4536 | __Pyx_XDECREF(__pyx_t_8)do { if ((__pyx_t_8) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_8)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while (0); } while (0); |
| 4537 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_dict", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4538 | __pyx_r = 0; |
| 4539 | __pyx_L0:; |
| 4540 | __Pyx_XDECREF(__pyx_v_k)do { if ((__pyx_v_k) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_k))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_k)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_k)))); } while (0); } while (0); |
| 4541 | __Pyx_XDECREF(__pyx_v_v)do { if ((__pyx_v_v) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_v))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_v)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_v)))); } while (0); } while (0); |
| 4542 | __Pyx_XGIVEREF(__pyx_r); |
| 4543 | __Pyx_RefNannyFinishContext(); |
| 4544 | return __pyx_r; |
| 4545 | } |
| 4546 | |
| 4547 | /* Python wrapper */ |
| 4548 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_27get_dict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4549 | static char __pyx_doc_9xmmsvalue_9XmmsValue_26get_dict[] = "XmmsValue.get_dict(self)\n\n\t\t@return: A dictionary containing media info.\n\t\t"; |
| 4550 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_27get_dict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 4551 | PyObject *__pyx_r = 0; |
| 4552 | __Pyx_RefNannyDeclarations |
| 4553 | __Pyx_RefNannySetupContext("get_dict (wrapper)", 0); |
| 4554 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_26get_dict(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 4555 | |
| 4556 | /* function exit code */ |
| 4557 | __Pyx_RefNannyFinishContext(); |
| 4558 | return __pyx_r; |
| 4559 | } |
| 4560 | |
| 4561 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_26get_dict(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 4562 | PyObject *__pyx_r = NULL((void*)0); |
| 4563 | __Pyx_RefNannyDeclarations |
| 4564 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4565 | int __pyx_lineno = 0; |
| 4566 | const char *__pyx_filename = NULL((void*)0); |
| 4567 | int __pyx_clineno = 0; |
| 4568 | __Pyx_RefNannySetupContext("get_dict", 0); |
| 4569 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4570 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_dict(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__4570; goto __pyx_L1_error;} |
| 4571 | __Pyx_GOTREF(__pyx_t_1); |
| 4572 | __pyx_r = __pyx_t_1; |
| 4573 | __pyx_t_1 = 0; |
| 4574 | goto __pyx_L0; |
| 4575 | |
| 4576 | /* function exit code */ |
| 4577 | __pyx_L1_error:; |
| 4578 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4579 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_dict", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4580 | __pyx_r = NULL((void*)0); |
| 4581 | __pyx_L0:; |
| 4582 | __Pyx_XGIVEREF(__pyx_r); |
| 4583 | __Pyx_RefNannyFinishContext(); |
| 4584 | return __pyx_r; |
| 4585 | } |
| 4586 | |
| 4587 | /* "xmmsvalue.pyx":209 |
| 4588 | * return dict([(k, v.value()) for k,v in self.get_dict_iter()]) |
| 4589 | * |
| 4590 | * cpdef get_dict_iter(self): # <<<<<<<<<<<<<< |
| 4591 | * """ |
| 4592 | * @return: An iterator on dict items ((key, value) pairs). |
| 4593 | */ |
| 4594 | |
| 4595 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_29get_dict_iter(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4596 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_dict_iter(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 4597 | PyObject *__pyx_r = NULL((void*)0); |
| 4598 | __Pyx_RefNannyDeclarations |
| 4599 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4600 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 4601 | int __pyx_lineno = 0; |
| 4602 | const char *__pyx_filename = NULL((void*)0); |
| 4603 | int __pyx_clineno = 0; |
| 4604 | __Pyx_RefNannySetupContext("get_dict_iter", 0); |
| 4605 | /* Check if called by wrapper */ |
| 4606 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 4607 | /* Check if overridden in Python */ |
| 4608 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 4609 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_dict_iter); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__4609; goto __pyx_L1_error;} |
| 4610 | __Pyx_GOTREF(__pyx_t_1); |
| 4611 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_29get_dict_iter)) { |
| 4612 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4613 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__4613; goto __pyx_L1_error;} |
| 4614 | __Pyx_GOTREF(__pyx_t_2); |
| 4615 | __pyx_r = __pyx_t_2; |
| 4616 | __pyx_t_2 = 0; |
| 4617 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4618 | goto __pyx_L0; |
| 4619 | } |
| 4620 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4621 | } |
| 4622 | |
| 4623 | /* "xmmsvalue.pyx":213 |
| 4624 | * @return: An iterator on dict items ((key, value) pairs). |
| 4625 | * """ |
| 4626 | * return XmmsDictIter(self) # <<<<<<<<<<<<<< |
| 4627 | * |
| 4628 | * cpdef get_propdict(self): |
| 4629 | */ |
| 4630 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4631 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__4631; goto __pyx_L1_error;} |
| 4632 | __Pyx_GOTREF(__pyx_t_1); |
| 4633 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 4634 | PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 4635 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 4636 | __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsDictIter)), __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__4636; goto __pyx_L1_error;} |
| 4637 | __Pyx_GOTREF(__pyx_t_2); |
| 4638 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4639 | __pyx_r = __pyx_t_2; |
| 4640 | __pyx_t_2 = 0; |
| 4641 | goto __pyx_L0; |
| 4642 | |
| 4643 | /* "xmmsvalue.pyx":209 |
| 4644 | * return dict([(k, v.value()) for k,v in self.get_dict_iter()]) |
| 4645 | * |
| 4646 | * cpdef get_dict_iter(self): # <<<<<<<<<<<<<< |
| 4647 | * """ |
| 4648 | * @return: An iterator on dict items ((key, value) pairs). |
| 4649 | */ |
| 4650 | |
| 4651 | /* function exit code */ |
| 4652 | __pyx_L1_error:; |
| 4653 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4654 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 4655 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_dict_iter", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4656 | __pyx_r = 0; |
| 4657 | __pyx_L0:; |
| 4658 | __Pyx_XGIVEREF(__pyx_r); |
| 4659 | __Pyx_RefNannyFinishContext(); |
| 4660 | return __pyx_r; |
| 4661 | } |
| 4662 | |
| 4663 | /* Python wrapper */ |
| 4664 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_29get_dict_iter(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4665 | static char __pyx_doc_9xmmsvalue_9XmmsValue_28get_dict_iter[] = "XmmsValue.get_dict_iter(self)\n\n\t\t@return: An iterator on dict items ((key, value) pairs).\n\t\t"; |
| 4666 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_29get_dict_iter(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 4667 | PyObject *__pyx_r = 0; |
| 4668 | __Pyx_RefNannyDeclarations |
| 4669 | __Pyx_RefNannySetupContext("get_dict_iter (wrapper)", 0); |
| 4670 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_28get_dict_iter(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 4671 | |
| 4672 | /* function exit code */ |
| 4673 | __Pyx_RefNannyFinishContext(); |
| 4674 | return __pyx_r; |
| 4675 | } |
| 4676 | |
| 4677 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_28get_dict_iter(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 4678 | PyObject *__pyx_r = NULL((void*)0); |
| 4679 | __Pyx_RefNannyDeclarations |
| 4680 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4681 | int __pyx_lineno = 0; |
| 4682 | const char *__pyx_filename = NULL((void*)0); |
| 4683 | int __pyx_clineno = 0; |
| 4684 | __Pyx_RefNannySetupContext("get_dict_iter", 0); |
| 4685 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4686 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_dict_iter(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__4686; goto __pyx_L1_error;} |
| 4687 | __Pyx_GOTREF(__pyx_t_1); |
| 4688 | __pyx_r = __pyx_t_1; |
| 4689 | __pyx_t_1 = 0; |
| 4690 | goto __pyx_L0; |
| 4691 | |
| 4692 | /* function exit code */ |
| 4693 | __pyx_L1_error:; |
| 4694 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 4695 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_dict_iter", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 4696 | __pyx_r = NULL((void*)0); |
| 4697 | __pyx_L0:; |
| 4698 | __Pyx_XGIVEREF(__pyx_r); |
| 4699 | __Pyx_RefNannyFinishContext(); |
| 4700 | return __pyx_r; |
| 4701 | } |
| 4702 | |
| 4703 | /* "xmmsvalue.pyx":215 |
| 4704 | * return XmmsDictIter(self) |
| 4705 | * |
| 4706 | * cpdef get_propdict(self): # <<<<<<<<<<<<<< |
| 4707 | * """ |
| 4708 | * @return: A source dict. |
| 4709 | */ |
| 4710 | |
| 4711 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_31get_propdict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 4712 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_propdict(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 4713 | PyObject *__pyx_v_ret = NULL((void*)0); |
| 4714 | PyObject *__pyx_v_key = NULL((void*)0); |
| 4715 | PyObject *__pyx_v_values = NULL((void*)0); |
| 4716 | PyObject *__pyx_v_source = NULL((void*)0); |
| 4717 | PyObject *__pyx_v_value = NULL((void*)0); |
| 4718 | PyObject *__pyx_r = NULL((void*)0); |
| 4719 | __Pyx_RefNannyDeclarations |
| 4720 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 4721 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 4722 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 4723 | Py_ssize_t __pyx_t_4; |
| 4724 | PyObject *(*__pyx_t_5)(PyObject *); |
| 4725 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 4726 | PyObject *__pyx_t_7 = NULL((void*)0); |
| 4727 | PyObject *(*__pyx_t_8)(PyObject *); |
| 4728 | Py_ssize_t __pyx_t_9; |
| 4729 | PyObject *(*__pyx_t_10)(PyObject *); |
| 4730 | PyObject *__pyx_t_11 = NULL((void*)0); |
| 4731 | int __pyx_lineno = 0; |
| 4732 | const char *__pyx_filename = NULL((void*)0); |
| 4733 | int __pyx_clineno = 0; |
| 4734 | __Pyx_RefNannySetupContext("get_propdict", 0); |
| 4735 | /* Check if called by wrapper */ |
| 4736 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 4737 | /* Check if overridden in Python */ |
| 4738 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 4739 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_propdict); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__4739; goto __pyx_L1_error;} |
| 4740 | __Pyx_GOTREF(__pyx_t_1); |
| 4741 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_31get_propdict)) { |
| 4742 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 4743 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__4743; goto __pyx_L1_error;} |
| 4744 | __Pyx_GOTREF(__pyx_t_2); |
| 4745 | __pyx_r = __pyx_t_2; |
| 4746 | __pyx_t_2 = 0; |
| 4747 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4748 | goto __pyx_L0; |
| 4749 | } |
| 4750 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4751 | } |
| 4752 | |
| 4753 | /* "xmmsvalue.pyx":219 |
| 4754 | * @return: A source dict. |
| 4755 | * """ |
| 4756 | * ret = PropDict(self.sourcepref) # <<<<<<<<<<<<<< |
| 4757 | * for key, values in self.get_dict_iter(): |
| 4758 | * for source, value in values.get_dict_iter(): |
| 4759 | */ |
| 4760 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_PropDict); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 219; __pyx_clineno = __LINE__4760; goto __pyx_L1_error;} |
| 4761 | __Pyx_GOTREF(__pyx_t_1); |
| 4762 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 219; __pyx_clineno = __LINE__4762; goto __pyx_L1_error;} |
| 4763 | __Pyx_GOTREF(__pyx_t_2); |
| 4764 | __Pyx_INCREF(__pyx_v_self->sourcepref)( ((PyObject*)(__pyx_v_self->sourcepref))->ob_refcnt++); |
| 4765 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->sourcepref)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_self ->sourcepref); |
| 4766 | __Pyx_GIVEREF(__pyx_v_self->sourcepref); |
| 4767 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 219; __pyx_clineno = __LINE__4767; goto __pyx_L1_error;} |
| 4768 | __Pyx_GOTREF(__pyx_t_3); |
| 4769 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 4770 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 4771 | __pyx_v_ret = __pyx_t_3; |
| 4772 | __pyx_t_3 = 0; |
| 4773 | |
| 4774 | /* "xmmsvalue.pyx":220 |
| 4775 | * """ |
| 4776 | * ret = PropDict(self.sourcepref) |
| 4777 | * for key, values in self.get_dict_iter(): # <<<<<<<<<<<<<< |
| 4778 | * for source, value in values.get_dict_iter(): |
| 4779 | * ret[(source, key)] = value.value() |
| 4780 | */ |
| 4781 | __pyx_t_3 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_dict_iter(__pyx_v_self, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4781; goto __pyx_L1_error;} |
| 4782 | __Pyx_GOTREF(__pyx_t_3); |
| 4783 | if (PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)) { |
| 4784 | __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); __pyx_t_4 = 0; |
| 4785 | __pyx_t_5 = NULL((void*)0); |
| 4786 | } else { |
| 4787 | __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4787; goto __pyx_L1_error;} |
| 4788 | __Pyx_GOTREF(__pyx_t_2); |
| 4789 | __pyx_t_5 = Py_TYPE(__pyx_t_2)(((PyObject*)(__pyx_t_2))->ob_type)->tp_iternext; |
| 4790 | } |
| 4791 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 4792 | for (;;) { |
| 4793 | if (!__pyx_t_5 && PyList_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyList_Type)) { |
| 4794 | if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)(((PyVarObject*)(__pyx_t_2))->ob_size)) break; |
| 4795 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4796 | __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4)(((PyListObject *)(__pyx_t_2))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4796; goto __pyx_L1_error;} |
| 4797 | #else |
| 4798 | __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4)( (((PyObject*)(__pyx_t_2))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4798; goto __pyx_L1_error;} |
| 4799 | #endif |
| 4800 | } else if (!__pyx_t_5 && PyTuple_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyTuple_Type)) { |
| 4801 | if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)(((PyVarObject*)(__pyx_t_2))->ob_size)) break; |
| 4802 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4803 | __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4)(((PyTupleObject *)(__pyx_t_2))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4803; goto __pyx_L1_error;} |
| 4804 | #else |
| 4805 | __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4)( (((PyObject*)(__pyx_t_2))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4805; goto __pyx_L1_error;} |
| 4806 | #endif |
| 4807 | } else { |
| 4808 | __pyx_t_3 = __pyx_t_5(__pyx_t_2); |
| 4809 | if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) { |
| 4810 | PyObject* exc_type = PyErr_Occurred(); |
| 4811 | if (exc_type) { |
| 4812 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 4813 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4813; goto __pyx_L1_error;} |
| 4814 | } |
| 4815 | break; |
| 4816 | } |
| 4817 | __Pyx_GOTREF(__pyx_t_3); |
| 4818 | } |
| 4819 | if ((likely(PyTuple_CheckExact(__pyx_t_3))__builtin_expect(!!(((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)), 1)) || (PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type))) { |
| 4820 | PyObject* sequence = __pyx_t_3; |
| 4821 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4822 | Py_ssize_t size = Py_SIZE(sequence)(((PyVarObject*)(sequence))->ob_size); |
| 4823 | #else |
| 4824 | Py_ssize_t size = PySequence_Size(sequence); |
| 4825 | #endif |
| 4826 | if (unlikely(size != 2)__builtin_expect(!!(size != 2), 0)) { |
| 4827 | if (size > 2) __Pyx_RaiseTooManyValuesError(2); |
| 4828 | else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); |
| 4829 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4829; goto __pyx_L1_error;} |
| 4830 | } |
| 4831 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4832 | if (likely(PyTuple_CheckExact(sequence))__builtin_expect(!!(((((PyObject*)(sequence))->ob_type) == &PyTuple_Type)), 1)) { |
| 4833 | __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0)(((PyTupleObject *)(sequence))->ob_item[0]); |
| 4834 | __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1)(((PyTupleObject *)(sequence))->ob_item[1]); |
| 4835 | } else { |
| 4836 | __pyx_t_1 = PyList_GET_ITEM(sequence, 0)(((PyListObject *)(sequence))->ob_item[0]); |
| 4837 | __pyx_t_6 = PyList_GET_ITEM(sequence, 1)(((PyListObject *)(sequence))->ob_item[1]); |
| 4838 | } |
| 4839 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 4840 | __Pyx_INCREF(__pyx_t_6)( ((PyObject*)(__pyx_t_6))->ob_refcnt++); |
| 4841 | #else |
| 4842 | __pyx_t_1 = PySequence_ITEM(sequence, 0)( (((PyObject*)(sequence))->ob_type)->tp_as_sequence-> sq_item(sequence, 0) ); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4842; goto __pyx_L1_error;} |
| 4843 | __Pyx_GOTREF(__pyx_t_1); |
| 4844 | __pyx_t_6 = PySequence_ITEM(sequence, 1)( (((PyObject*)(sequence))->ob_type)->tp_as_sequence-> sq_item(sequence, 1) ); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4844; goto __pyx_L1_error;} |
| 4845 | __Pyx_GOTREF(__pyx_t_6); |
| 4846 | #endif |
| 4847 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 4848 | } else { |
| 4849 | Py_ssize_t index = -1; |
| 4850 | __pyx_t_7 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4850; goto __pyx_L1_error;} |
| 4851 | __Pyx_GOTREF(__pyx_t_7); |
| 4852 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 4853 | __pyx_t_8 = Py_TYPE(__pyx_t_7)(((PyObject*)(__pyx_t_7))->ob_type)->tp_iternext; |
| 4854 | index = 0; __pyx_t_1 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) goto __pyx_L5_unpacking_failed; |
| 4855 | __Pyx_GOTREF(__pyx_t_1); |
| 4856 | index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) goto __pyx_L5_unpacking_failed; |
| 4857 | __Pyx_GOTREF(__pyx_t_6); |
| 4858 | if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4858; goto __pyx_L1_error;} |
| 4859 | __pyx_t_8 = NULL((void*)0); |
| 4860 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 4861 | goto __pyx_L6_unpacking_done; |
| 4862 | __pyx_L5_unpacking_failed:; |
| 4863 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 4864 | __pyx_t_8 = NULL((void*)0); |
| 4865 | if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); |
| 4866 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__4866; goto __pyx_L1_error;} |
| 4867 | __pyx_L6_unpacking_done:; |
| 4868 | } |
| 4869 | __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_key; __pyx_v_key = __pyx_t_1 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 4870 | __pyx_t_1 = 0; |
| 4871 | __Pyx_XDECREF_SET(__pyx_v_values, __pyx_t_6)do { PyObject *tmp = (PyObject *) __pyx_v_values; __pyx_v_values = __pyx_t_6; do { if ((tmp) == ((void*)0)) ; else do { if ( -- ((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while ( 0); |
| 4872 | __pyx_t_6 = 0; |
| 4873 | |
| 4874 | /* "xmmsvalue.pyx":221 |
| 4875 | * ret = PropDict(self.sourcepref) |
| 4876 | * for key, values in self.get_dict_iter(): |
| 4877 | * for source, value in values.get_dict_iter(): # <<<<<<<<<<<<<< |
| 4878 | * ret[(source, key)] = value.value() |
| 4879 | * return ret |
| 4880 | */ |
| 4881 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_values, __pyx_n_s_get_dict_iter); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4881; goto __pyx_L1_error;} |
| 4882 | __Pyx_GOTREF(__pyx_t_3); |
| 4883 | __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4883; goto __pyx_L1_error;} |
| 4884 | __Pyx_GOTREF(__pyx_t_6); |
| 4885 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 4886 | if (PyList_CheckExact(__pyx_t_6)((((PyObject*)(__pyx_t_6))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_t_6)((((PyObject*)(__pyx_t_6))->ob_type) == &PyTuple_Type)) { |
| 4887 | __pyx_t_3 = __pyx_t_6; __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_9 = 0; |
| 4888 | __pyx_t_10 = NULL((void*)0); |
| 4889 | } else { |
| 4890 | __pyx_t_9 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4890; goto __pyx_L1_error;} |
| 4891 | __Pyx_GOTREF(__pyx_t_3); |
| 4892 | __pyx_t_10 = Py_TYPE(__pyx_t_3)(((PyObject*)(__pyx_t_3))->ob_type)->tp_iternext; |
| 4893 | } |
| 4894 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 4895 | for (;;) { |
| 4896 | if (!__pyx_t_10 && PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type)) { |
| 4897 | if (__pyx_t_9 >= PyList_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 4898 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4899 | __pyx_t_6 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_9)(((PyListObject *)(__pyx_t_3))->ob_item[__pyx_t_9]); __Pyx_INCREF(__pyx_t_6)( ((PyObject*)(__pyx_t_6))->ob_refcnt++); __pyx_t_9++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4899; goto __pyx_L1_error;} |
| 4900 | #else |
| 4901 | __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_9)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_9) ); __pyx_t_9++; if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4901; goto __pyx_L1_error;} |
| 4902 | #endif |
| 4903 | } else if (!__pyx_t_10 && PyTuple_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)) { |
| 4904 | if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 4905 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4906 | __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_9)(((PyTupleObject *)(__pyx_t_3))->ob_item[__pyx_t_9]); __Pyx_INCREF(__pyx_t_6)( ((PyObject*)(__pyx_t_6))->ob_refcnt++); __pyx_t_9++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4906; goto __pyx_L1_error;} |
| 4907 | #else |
| 4908 | __pyx_t_6 = PySequence_ITEM(__pyx_t_3, __pyx_t_9)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_9) ); __pyx_t_9++; if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4908; goto __pyx_L1_error;} |
| 4909 | #endif |
| 4910 | } else { |
| 4911 | __pyx_t_6 = __pyx_t_10(__pyx_t_3); |
| 4912 | if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) { |
| 4913 | PyObject* exc_type = PyErr_Occurred(); |
| 4914 | if (exc_type) { |
| 4915 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 4916 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4916; goto __pyx_L1_error;} |
| 4917 | } |
| 4918 | break; |
| 4919 | } |
| 4920 | __Pyx_GOTREF(__pyx_t_6); |
| 4921 | } |
| 4922 | if ((likely(PyTuple_CheckExact(__pyx_t_6))__builtin_expect(!!(((((PyObject*)(__pyx_t_6))->ob_type) == &PyTuple_Type)), 1)) || (PyList_CheckExact(__pyx_t_6)((((PyObject*)(__pyx_t_6))->ob_type) == &PyList_Type))) { |
| 4923 | PyObject* sequence = __pyx_t_6; |
| 4924 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4925 | Py_ssize_t size = Py_SIZE(sequence)(((PyVarObject*)(sequence))->ob_size); |
| 4926 | #else |
| 4927 | Py_ssize_t size = PySequence_Size(sequence); |
| 4928 | #endif |
| 4929 | if (unlikely(size != 2)__builtin_expect(!!(size != 2), 0)) { |
| 4930 | if (size > 2) __Pyx_RaiseTooManyValuesError(2); |
| 4931 | else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); |
| 4932 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4932; goto __pyx_L1_error;} |
| 4933 | } |
| 4934 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 4935 | if (likely(PyTuple_CheckExact(sequence))__builtin_expect(!!(((((PyObject*)(sequence))->ob_type) == &PyTuple_Type)), 1)) { |
| 4936 | __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0)(((PyTupleObject *)(sequence))->ob_item[0]); |
| 4937 | __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1)(((PyTupleObject *)(sequence))->ob_item[1]); |
| 4938 | } else { |
| 4939 | __pyx_t_1 = PyList_GET_ITEM(sequence, 0)(((PyListObject *)(sequence))->ob_item[0]); |
| 4940 | __pyx_t_7 = PyList_GET_ITEM(sequence, 1)(((PyListObject *)(sequence))->ob_item[1]); |
| 4941 | } |
| 4942 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 4943 | __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); |
| 4944 | #else |
| 4945 | __pyx_t_1 = PySequence_ITEM(sequence, 0)( (((PyObject*)(sequence))->ob_type)->tp_as_sequence-> sq_item(sequence, 0) ); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4945; goto __pyx_L1_error;} |
| 4946 | __Pyx_GOTREF(__pyx_t_1); |
| 4947 | __pyx_t_7 = PySequence_ITEM(sequence, 1)( (((PyObject*)(sequence))->ob_type)->tp_as_sequence-> sq_item(sequence, 1) ); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4947; goto __pyx_L1_error;} |
| 4948 | __Pyx_GOTREF(__pyx_t_7); |
| 4949 | #endif |
| 4950 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 4951 | } else { |
| 4952 | Py_ssize_t index = -1; |
| 4953 | __pyx_t_11 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_11)__builtin_expect(!!(!__pyx_t_11), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4953; goto __pyx_L1_error;} |
| 4954 | __Pyx_GOTREF(__pyx_t_11); |
| 4955 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 4956 | __pyx_t_8 = Py_TYPE(__pyx_t_11)(((PyObject*)(__pyx_t_11))->ob_type)->tp_iternext; |
| 4957 | index = 0; __pyx_t_1 = __pyx_t_8(__pyx_t_11); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) goto __pyx_L9_unpacking_failed; |
| 4958 | __Pyx_GOTREF(__pyx_t_1); |
| 4959 | index = 1; __pyx_t_7 = __pyx_t_8(__pyx_t_11); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) goto __pyx_L9_unpacking_failed; |
| 4960 | __Pyx_GOTREF(__pyx_t_7); |
| 4961 | if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_11), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4961; goto __pyx_L1_error;} |
| 4962 | __pyx_t_8 = NULL((void*)0); |
| 4963 | __Pyx_DECREF(__pyx_t_11)do { if ( --((PyObject*)(__pyx_t_11))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_11)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_11)))); } while (0); __pyx_t_11 = 0; |
| 4964 | goto __pyx_L10_unpacking_done; |
| 4965 | __pyx_L9_unpacking_failed:; |
| 4966 | __Pyx_DECREF(__pyx_t_11)do { if ( --((PyObject*)(__pyx_t_11))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_11)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_11)))); } while (0); __pyx_t_11 = 0; |
| 4967 | __pyx_t_8 = NULL((void*)0); |
| 4968 | if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); |
| 4969 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__4969; goto __pyx_L1_error;} |
| 4970 | __pyx_L10_unpacking_done:; |
| 4971 | } |
| 4972 | __Pyx_XDECREF_SET(__pyx_v_source, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_source; __pyx_v_source = __pyx_t_1; do { if ((tmp) == ((void*)0)) ; else do { if ( -- ((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while ( 0); |
| 4973 | __pyx_t_1 = 0; |
| 4974 | __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_7)do { PyObject *tmp = (PyObject *) __pyx_v_value; __pyx_v_value = __pyx_t_7; do { if ((tmp) == ((void*)0)) ; else do { if ( -- ((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while ( 0); |
| 4975 | __pyx_t_7 = 0; |
| 4976 | |
| 4977 | /* "xmmsvalue.pyx":222 |
| 4978 | * for key, values in self.get_dict_iter(): |
| 4979 | * for source, value in values.get_dict_iter(): |
| 4980 | * ret[(source, key)] = value.value() # <<<<<<<<<<<<<< |
| 4981 | * return ret |
| 4982 | * |
| 4983 | */ |
| 4984 | __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_value, __pyx_n_s_value); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__4984; goto __pyx_L1_error;} |
| 4985 | __Pyx_GOTREF(__pyx_t_6); |
| 4986 | __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__4986; goto __pyx_L1_error;} |
| 4987 | __Pyx_GOTREF(__pyx_t_7); |
| 4988 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 4989 | __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__4989; goto __pyx_L1_error;} |
| 4990 | __Pyx_GOTREF(__pyx_t_6); |
| 4991 | __Pyx_INCREF(__pyx_v_source)( ((PyObject*)(__pyx_v_source))->ob_refcnt++); |
| 4992 | PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_source)(((PyTupleObject *)(__pyx_t_6))->ob_item[0] = __pyx_v_source ); |
| 4993 | __Pyx_GIVEREF(__pyx_v_source); |
| 4994 | __Pyx_INCREF(__pyx_v_key)( ((PyObject*)(__pyx_v_key))->ob_refcnt++); |
| 4995 | PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_v_key)(((PyTupleObject *)(__pyx_t_6))->ob_item[1] = __pyx_v_key); |
| 4996 | __Pyx_GIVEREF(__pyx_v_key); |
| 4997 | if (unlikely(PyObject_SetItem(__pyx_v_ret, __pyx_t_6, __pyx_t_7) < 0)__builtin_expect(!!(PyObject_SetItem(__pyx_v_ret, __pyx_t_6, __pyx_t_7 ) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__4997; goto __pyx_L1_error;} |
| 4998 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 4999 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 5000 | } |
| 5001 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 5002 | } |
| 5003 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 5004 | |
| 5005 | /* "xmmsvalue.pyx":223 |
| 5006 | * for source, value in values.get_dict_iter(): |
| 5007 | * ret[(source, key)] = value.value() |
| 5008 | * return ret # <<<<<<<<<<<<<< |
| 5009 | * |
| 5010 | * cpdef get_list(self): |
| 5011 | */ |
| 5012 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5013 | __Pyx_INCREF(__pyx_v_ret)( ((PyObject*)(__pyx_v_ret))->ob_refcnt++); |
| 5014 | __pyx_r = __pyx_v_ret; |
| 5015 | goto __pyx_L0; |
| 5016 | |
| 5017 | /* "xmmsvalue.pyx":215 |
| 5018 | * return XmmsDictIter(self) |
| 5019 | * |
| 5020 | * cpdef get_propdict(self): # <<<<<<<<<<<<<< |
| 5021 | * """ |
| 5022 | * @return: A source dict. |
| 5023 | */ |
| 5024 | |
| 5025 | /* function exit code */ |
| 5026 | __pyx_L1_error:; |
| 5027 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5028 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 5029 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 5030 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 5031 | __Pyx_XDECREF(__pyx_t_7)do { if ((__pyx_t_7) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_7)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while (0); } while (0); |
| 5032 | __Pyx_XDECREF(__pyx_t_11)do { if ((__pyx_t_11) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_11))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_11)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_11)))); } while (0); } while (0); |
| 5033 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_propdict", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5034 | __pyx_r = 0; |
| 5035 | __pyx_L0:; |
| 5036 | __Pyx_XDECREF(__pyx_v_ret)do { if ((__pyx_v_ret) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_ret))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(__pyx_v_ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_ret)))); } while (0); } while (0); |
| 5037 | __Pyx_XDECREF(__pyx_v_key)do { if ((__pyx_v_key) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_key))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(__pyx_v_key)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_key)))); } while (0); } while (0); |
| 5038 | __Pyx_XDECREF(__pyx_v_values)do { if ((__pyx_v_values) == ((void*)0)) ; else do { if ( --( (PyObject*)(__pyx_v_values))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(__pyx_v_values)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_values)))); } while (0); } while (0); |
| 5039 | __Pyx_XDECREF(__pyx_v_source)do { if ((__pyx_v_source) == ((void*)0)) ; else do { if ( --( (PyObject*)(__pyx_v_source))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(__pyx_v_source)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_source)))); } while (0); } while (0); |
| 5040 | __Pyx_XDECREF(__pyx_v_value)do { if ((__pyx_v_value) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_value))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_value)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_value)))); } while (0); } while (0); |
| 5041 | __Pyx_XGIVEREF(__pyx_r); |
| 5042 | __Pyx_RefNannyFinishContext(); |
| 5043 | return __pyx_r; |
| 5044 | } |
| 5045 | |
| 5046 | /* Python wrapper */ |
| 5047 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_31get_propdict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 5048 | static char __pyx_doc_9xmmsvalue_9XmmsValue_30get_propdict[] = "XmmsValue.get_propdict(self)\n\n\t\t@return: A source dict.\n\t\t"; |
| 5049 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_31get_propdict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 5050 | PyObject *__pyx_r = 0; |
| 5051 | __Pyx_RefNannyDeclarations |
| 5052 | __Pyx_RefNannySetupContext("get_propdict (wrapper)", 0); |
| 5053 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_30get_propdict(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 5054 | |
| 5055 | /* function exit code */ |
| 5056 | __Pyx_RefNannyFinishContext(); |
| 5057 | return __pyx_r; |
| 5058 | } |
| 5059 | |
| 5060 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_30get_propdict(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 5061 | PyObject *__pyx_r = NULL((void*)0); |
| 5062 | __Pyx_RefNannyDeclarations |
| 5063 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5064 | int __pyx_lineno = 0; |
| 5065 | const char *__pyx_filename = NULL((void*)0); |
| 5066 | int __pyx_clineno = 0; |
| 5067 | __Pyx_RefNannySetupContext("get_propdict", 0); |
| 5068 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5069 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_propdict(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__5069; goto __pyx_L1_error;} |
| 5070 | __Pyx_GOTREF(__pyx_t_1); |
| 5071 | __pyx_r = __pyx_t_1; |
| 5072 | __pyx_t_1 = 0; |
| 5073 | goto __pyx_L0; |
| 5074 | |
| 5075 | /* function exit code */ |
| 5076 | __pyx_L1_error:; |
| 5077 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5078 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_propdict", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5079 | __pyx_r = NULL((void*)0); |
| 5080 | __pyx_L0:; |
| 5081 | __Pyx_XGIVEREF(__pyx_r); |
| 5082 | __Pyx_RefNannyFinishContext(); |
| 5083 | return __pyx_r; |
| 5084 | } |
| 5085 | |
| 5086 | /* "xmmsvalue.pyx":225 |
| 5087 | * return ret |
| 5088 | * |
| 5089 | * cpdef get_list(self): # <<<<<<<<<<<<<< |
| 5090 | * """ |
| 5091 | * @return: A list of dicts from the result structure. |
| 5092 | */ |
| 5093 | |
| 5094 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_33get_list(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 5095 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_list(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 5096 | PyObject *__pyx_v_v = NULL((void*)0); |
| 5097 | PyObject *__pyx_r = NULL((void*)0); |
| 5098 | __Pyx_RefNannyDeclarations |
| 5099 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5100 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 5101 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 5102 | Py_ssize_t __pyx_t_4; |
| 5103 | PyObject *(*__pyx_t_5)(PyObject *); |
| 5104 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 5105 | int __pyx_lineno = 0; |
| 5106 | const char *__pyx_filename = NULL((void*)0); |
| 5107 | int __pyx_clineno = 0; |
| 5108 | __Pyx_RefNannySetupContext("get_list", 0); |
| 5109 | /* Check if called by wrapper */ |
| 5110 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 5111 | /* Check if overridden in Python */ |
| 5112 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 5113 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_list); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__5113; goto __pyx_L1_error;} |
| 5114 | __Pyx_GOTREF(__pyx_t_1); |
| 5115 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_33get_list)) { |
| 5116 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5117 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__5117; goto __pyx_L1_error;} |
| 5118 | __Pyx_GOTREF(__pyx_t_2); |
| 5119 | __pyx_r = __pyx_t_2; |
| 5120 | __pyx_t_2 = 0; |
| 5121 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5122 | goto __pyx_L0; |
| 5123 | } |
| 5124 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5125 | } |
| 5126 | |
| 5127 | /* "xmmsvalue.pyx":229 |
| 5128 | * @return: A list of dicts from the result structure. |
| 5129 | * """ |
| 5130 | * return [v.value() for v in self.get_list_iter()] # <<<<<<<<<<<<<< |
| 5131 | * |
| 5132 | * cpdef get_list_iter(self): |
| 5133 | */ |
| 5134 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5135 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5135; goto __pyx_L1_error;} |
| 5136 | __Pyx_GOTREF(__pyx_t_1); |
| 5137 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_list_iter(__pyx_v_self, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5137; goto __pyx_L1_error;} |
| 5138 | __Pyx_GOTREF(__pyx_t_2); |
| 5139 | if (PyList_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyTuple_Type)) { |
| 5140 | __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_4 = 0; |
| 5141 | __pyx_t_5 = NULL((void*)0); |
| 5142 | } else { |
| 5143 | __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5143; goto __pyx_L1_error;} |
| 5144 | __Pyx_GOTREF(__pyx_t_3); |
| 5145 | __pyx_t_5 = Py_TYPE(__pyx_t_3)(((PyObject*)(__pyx_t_3))->ob_type)->tp_iternext; |
| 5146 | } |
| 5147 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 5148 | for (;;) { |
| 5149 | if (!__pyx_t_5 && PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type)) { |
| 5150 | if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 5151 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 5152 | __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4)(((PyListObject *)(__pyx_t_3))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5152; goto __pyx_L1_error;} |
| 5153 | #else |
| 5154 | __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5154; goto __pyx_L1_error;} |
| 5155 | #endif |
| 5156 | } else if (!__pyx_t_5 && PyTuple_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)) { |
| 5157 | if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 5158 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 5159 | __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4)(((PyTupleObject *)(__pyx_t_3))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5159; goto __pyx_L1_error;} |
| 5160 | #else |
| 5161 | __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5161; goto __pyx_L1_error;} |
| 5162 | #endif |
| 5163 | } else { |
| 5164 | __pyx_t_2 = __pyx_t_5(__pyx_t_3); |
| 5165 | if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) { |
| 5166 | PyObject* exc_type = PyErr_Occurred(); |
| 5167 | if (exc_type) { |
| 5168 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 5169 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5169; goto __pyx_L1_error;} |
| 5170 | } |
| 5171 | break; |
| 5172 | } |
| 5173 | __Pyx_GOTREF(__pyx_t_2); |
| 5174 | } |
| 5175 | __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_2)do { PyObject *tmp = (PyObject *) __pyx_v_v; __pyx_v_v = __pyx_t_2 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 5176 | __pyx_t_2 = 0; |
| 5177 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_v, __pyx_n_s_value); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5177; goto __pyx_L1_error;} |
| 5178 | __Pyx_GOTREF(__pyx_t_2); |
| 5179 | __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5179; goto __pyx_L1_error;} |
| 5180 | __Pyx_GOTREF(__pyx_t_6); |
| 5181 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 5182 | if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_6))__builtin_expect(!!(__Pyx_ListComp_Append(__pyx_t_1, (PyObject *)__pyx_t_6)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 229; __pyx_clineno = __LINE__5182; goto __pyx_L1_error;} |
| 5183 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 5184 | } |
| 5185 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 5186 | __pyx_r = __pyx_t_1; |
| 5187 | __pyx_t_1 = 0; |
| 5188 | goto __pyx_L0; |
| 5189 | |
| 5190 | /* "xmmsvalue.pyx":225 |
| 5191 | * return ret |
| 5192 | * |
| 5193 | * cpdef get_list(self): # <<<<<<<<<<<<<< |
| 5194 | * """ |
| 5195 | * @return: A list of dicts from the result structure. |
| 5196 | */ |
| 5197 | |
| 5198 | /* function exit code */ |
| 5199 | __pyx_L1_error:; |
| 5200 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5201 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 5202 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 5203 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 5204 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_list", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5205 | __pyx_r = 0; |
| 5206 | __pyx_L0:; |
| 5207 | __Pyx_XDECREF(__pyx_v_v)do { if ((__pyx_v_v) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_v))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_v)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_v)))); } while (0); } while (0); |
| 5208 | __Pyx_XGIVEREF(__pyx_r); |
| 5209 | __Pyx_RefNannyFinishContext(); |
| 5210 | return __pyx_r; |
| 5211 | } |
| 5212 | |
| 5213 | /* Python wrapper */ |
| 5214 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_33get_list(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 5215 | static char __pyx_doc_9xmmsvalue_9XmmsValue_32get_list[] = "XmmsValue.get_list(self)\n\n\t\t@return: A list of dicts from the result structure.\n\t\t"; |
| 5216 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_33get_list(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 5217 | PyObject *__pyx_r = 0; |
| 5218 | __Pyx_RefNannyDeclarations |
| 5219 | __Pyx_RefNannySetupContext("get_list (wrapper)", 0); |
| 5220 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_32get_list(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 5221 | |
| 5222 | /* function exit code */ |
| 5223 | __Pyx_RefNannyFinishContext(); |
| 5224 | return __pyx_r; |
| 5225 | } |
| 5226 | |
| 5227 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_32get_list(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 5228 | PyObject *__pyx_r = NULL((void*)0); |
| 5229 | __Pyx_RefNannyDeclarations |
| 5230 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5231 | int __pyx_lineno = 0; |
| 5232 | const char *__pyx_filename = NULL((void*)0); |
| 5233 | int __pyx_clineno = 0; |
| 5234 | __Pyx_RefNannySetupContext("get_list", 0); |
| 5235 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5236 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_list(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__5236; goto __pyx_L1_error;} |
| 5237 | __Pyx_GOTREF(__pyx_t_1); |
| 5238 | __pyx_r = __pyx_t_1; |
| 5239 | __pyx_t_1 = 0; |
| 5240 | goto __pyx_L0; |
| 5241 | |
| 5242 | /* function exit code */ |
| 5243 | __pyx_L1_error:; |
| 5244 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5245 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_list", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5246 | __pyx_r = NULL((void*)0); |
| 5247 | __pyx_L0:; |
| 5248 | __Pyx_XGIVEREF(__pyx_r); |
| 5249 | __Pyx_RefNannyFinishContext(); |
| 5250 | return __pyx_r; |
| 5251 | } |
| 5252 | |
| 5253 | /* "xmmsvalue.pyx":231 |
| 5254 | * return [v.value() for v in self.get_list_iter()] |
| 5255 | * |
| 5256 | * cpdef get_list_iter(self): # <<<<<<<<<<<<<< |
| 5257 | * """ |
| 5258 | * @return: An iterator on a list. |
| 5259 | */ |
| 5260 | |
| 5261 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_35get_list_iter(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 5262 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_get_list_iter(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 5263 | PyObject *__pyx_r = NULL((void*)0); |
| 5264 | __Pyx_RefNannyDeclarations |
| 5265 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5266 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 5267 | int __pyx_lineno = 0; |
| 5268 | const char *__pyx_filename = NULL((void*)0); |
| 5269 | int __pyx_clineno = 0; |
| 5270 | __Pyx_RefNannySetupContext("get_list_iter", 0); |
| 5271 | /* Check if called by wrapper */ |
| 5272 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 5273 | /* Check if overridden in Python */ |
| 5274 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 5275 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_list_iter); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__5275; goto __pyx_L1_error;} |
| 5276 | __Pyx_GOTREF(__pyx_t_1); |
| 5277 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_35get_list_iter)) { |
| 5278 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5279 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__5279; goto __pyx_L1_error;} |
| 5280 | __Pyx_GOTREF(__pyx_t_2); |
| 5281 | __pyx_r = __pyx_t_2; |
| 5282 | __pyx_t_2 = 0; |
| 5283 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5284 | goto __pyx_L0; |
| 5285 | } |
| 5286 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5287 | } |
| 5288 | |
| 5289 | /* "xmmsvalue.pyx":235 |
| 5290 | * @return: An iterator on a list. |
| 5291 | * """ |
| 5292 | * return XmmsListIter(self) # <<<<<<<<<<<<<< |
| 5293 | * |
| 5294 | * cpdef value(self): |
| 5295 | */ |
| 5296 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5297 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__5297; goto __pyx_L1_error;} |
| 5298 | __Pyx_GOTREF(__pyx_t_1); |
| 5299 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 5300 | PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 5301 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 5302 | __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsListIter)), __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__5302; goto __pyx_L1_error;} |
| 5303 | __Pyx_GOTREF(__pyx_t_2); |
| 5304 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5305 | __pyx_r = __pyx_t_2; |
| 5306 | __pyx_t_2 = 0; |
| 5307 | goto __pyx_L0; |
| 5308 | |
| 5309 | /* "xmmsvalue.pyx":231 |
| 5310 | * return [v.value() for v in self.get_list_iter()] |
| 5311 | * |
| 5312 | * cpdef get_list_iter(self): # <<<<<<<<<<<<<< |
| 5313 | * """ |
| 5314 | * @return: An iterator on a list. |
| 5315 | */ |
| 5316 | |
| 5317 | /* function exit code */ |
| 5318 | __pyx_L1_error:; |
| 5319 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5320 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 5321 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_list_iter", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5322 | __pyx_r = 0; |
| 5323 | __pyx_L0:; |
| 5324 | __Pyx_XGIVEREF(__pyx_r); |
| 5325 | __Pyx_RefNannyFinishContext(); |
| 5326 | return __pyx_r; |
| 5327 | } |
| 5328 | |
| 5329 | /* Python wrapper */ |
| 5330 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_35get_list_iter(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 5331 | static char __pyx_doc_9xmmsvalue_9XmmsValue_34get_list_iter[] = "XmmsValue.get_list_iter(self)\n\n\t\t@return: An iterator on a list.\n\t\t"; |
| 5332 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_35get_list_iter(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 5333 | PyObject *__pyx_r = 0; |
| 5334 | __Pyx_RefNannyDeclarations |
| 5335 | __Pyx_RefNannySetupContext("get_list_iter (wrapper)", 0); |
| 5336 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_34get_list_iter(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 5337 | |
| 5338 | /* function exit code */ |
| 5339 | __Pyx_RefNannyFinishContext(); |
| 5340 | return __pyx_r; |
| 5341 | } |
| 5342 | |
| 5343 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_34get_list_iter(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 5344 | PyObject *__pyx_r = NULL((void*)0); |
| 5345 | __Pyx_RefNannyDeclarations |
| 5346 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5347 | int __pyx_lineno = 0; |
| 5348 | const char *__pyx_filename = NULL((void*)0); |
| 5349 | int __pyx_clineno = 0; |
| 5350 | __Pyx_RefNannySetupContext("get_list_iter", 0); |
| 5351 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5352 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_list_iter(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__5352; goto __pyx_L1_error;} |
| 5353 | __Pyx_GOTREF(__pyx_t_1); |
| 5354 | __pyx_r = __pyx_t_1; |
| 5355 | __pyx_t_1 = 0; |
| 5356 | goto __pyx_L0; |
| 5357 | |
| 5358 | /* function exit code */ |
| 5359 | __pyx_L1_error:; |
| 5360 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5361 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.get_list_iter", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5362 | __pyx_r = NULL((void*)0); |
| 5363 | __pyx_L0:; |
| 5364 | __Pyx_XGIVEREF(__pyx_r); |
| 5365 | __Pyx_RefNannyFinishContext(); |
| 5366 | return __pyx_r; |
| 5367 | } |
| 5368 | |
| 5369 | /* "xmmsvalue.pyx":237 |
| 5370 | * return XmmsListIter(self) |
| 5371 | * |
| 5372 | * cpdef value(self): # <<<<<<<<<<<<<< |
| 5373 | * """ |
| 5374 | * Return value of appropriate data type contained in this result. |
| 5375 | */ |
| 5376 | |
| 5377 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_37value(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 5378 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_value(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch) { |
| 5379 | xmmsv_type_t __pyx_v_vtype; |
| 5380 | PyObject *__pyx_r = NULL((void*)0); |
| 5381 | __Pyx_RefNannyDeclarations |
| 5382 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5383 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 5384 | xmmsv_type_t __pyx_t_3; |
| 5385 | int __pyx_t_4; |
| 5386 | int __pyx_lineno = 0; |
| 5387 | const char *__pyx_filename = NULL((void*)0); |
| 5388 | int __pyx_clineno = 0; |
| 5389 | __Pyx_RefNannySetupContext("value", 0); |
| 5390 | /* Check if called by wrapper */ |
| 5391 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 5392 | /* Check if overridden in Python */ |
| 5393 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 5394 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_value); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__5394; goto __pyx_L1_error;} |
| 5395 | __Pyx_GOTREF(__pyx_t_1); |
| 5396 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_37value)) { |
| 5397 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5398 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__5398; goto __pyx_L1_error;} |
| 5399 | __Pyx_GOTREF(__pyx_t_2); |
| 5400 | __pyx_r = __pyx_t_2; |
| 5401 | __pyx_t_2 = 0; |
| 5402 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5403 | goto __pyx_L0; |
| 5404 | } |
| 5405 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5406 | } |
| 5407 | |
| 5408 | /* "xmmsvalue.pyx":243 |
| 5409 | * """ |
| 5410 | * cdef xmmsv_type_t vtype |
| 5411 | * vtype = self.get_type() # <<<<<<<<<<<<<< |
| 5412 | * |
| 5413 | * if vtype == XMMSV_TYPE_NONE: |
| 5414 | */ |
| 5415 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_type(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__5415; goto __pyx_L1_error;} |
| 5416 | __Pyx_GOTREF(__pyx_t_1); |
| 5417 | __pyx_t_3 = ((xmmsv_type_t)PyInt_AsLong(__pyx_t_1)); if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__5417; goto __pyx_L1_error;} |
| 5418 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5419 | __pyx_v_vtype = __pyx_t_3; |
| 5420 | |
| 5421 | /* "xmmsvalue.pyx":261 |
| 5422 | * elif vtype == XMMSV_TYPE_LIST: |
| 5423 | * return self.get_list() |
| 5424 | * elif vtype == XMMSV_TYPE_DICT: # <<<<<<<<<<<<<< |
| 5425 | * if self.ispropdict: |
| 5426 | * return self.get_propdict() |
| 5427 | */ |
| 5428 | switch (__pyx_v_vtype) { |
| 5429 | |
| 5430 | /* "xmmsvalue.pyx":245 |
| 5431 | * vtype = self.get_type() |
| 5432 | * |
| 5433 | * if vtype == XMMSV_TYPE_NONE: # <<<<<<<<<<<<<< |
| 5434 | * return None |
| 5435 | * elif vtype == XMMSV_TYPE_ERROR: |
| 5436 | */ |
| 5437 | case XMMSV_TYPE_NONE: |
| 5438 | |
| 5439 | /* "xmmsvalue.pyx":246 |
| 5440 | * |
| 5441 | * if vtype == XMMSV_TYPE_NONE: |
| 5442 | * return None # <<<<<<<<<<<<<< |
| 5443 | * elif vtype == XMMSV_TYPE_ERROR: |
| 5444 | * return self.get_error() |
| 5445 | */ |
| 5446 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5447 | __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 5448 | __pyx_r = Py_None(&_Py_NoneStruct); |
| 5449 | goto __pyx_L0; |
| 5450 | break; |
| 5451 | |
| 5452 | /* "xmmsvalue.pyx":247 |
| 5453 | * if vtype == XMMSV_TYPE_NONE: |
| 5454 | * return None |
| 5455 | * elif vtype == XMMSV_TYPE_ERROR: # <<<<<<<<<<<<<< |
| 5456 | * return self.get_error() |
| 5457 | * elif vtype == XMMSV_TYPE_INT64: |
| 5458 | */ |
| 5459 | case XMMSV_TYPE_ERROR: |
| 5460 | |
| 5461 | /* "xmmsvalue.pyx":248 |
| 5462 | * return None |
| 5463 | * elif vtype == XMMSV_TYPE_ERROR: |
| 5464 | * return self.get_error() # <<<<<<<<<<<<<< |
| 5465 | * elif vtype == XMMSV_TYPE_INT64: |
| 5466 | * return self.get_int() |
| 5467 | */ |
| 5468 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5469 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_error(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__5469; goto __pyx_L1_error;} |
| 5470 | __Pyx_GOTREF(__pyx_t_1); |
| 5471 | __pyx_r = __pyx_t_1; |
| 5472 | __pyx_t_1 = 0; |
| 5473 | goto __pyx_L0; |
| 5474 | break; |
| 5475 | |
| 5476 | /* "xmmsvalue.pyx":249 |
| 5477 | * elif vtype == XMMSV_TYPE_ERROR: |
| 5478 | * return self.get_error() |
| 5479 | * elif vtype == XMMSV_TYPE_INT64: # <<<<<<<<<<<<<< |
| 5480 | * return self.get_int() |
| 5481 | * elif vtype == XMMSV_TYPE_FLOAT: |
| 5482 | */ |
| 5483 | case XMMSV_TYPE_INT64: |
| 5484 | |
| 5485 | /* "xmmsvalue.pyx":250 |
| 5486 | * return self.get_error() |
| 5487 | * elif vtype == XMMSV_TYPE_INT64: |
| 5488 | * return self.get_int() # <<<<<<<<<<<<<< |
| 5489 | * elif vtype == XMMSV_TYPE_FLOAT: |
| 5490 | * return self.get_float() |
| 5491 | */ |
| 5492 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5493 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_int(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__5493; goto __pyx_L1_error;} |
| 5494 | __Pyx_GOTREF(__pyx_t_1); |
| 5495 | __pyx_r = __pyx_t_1; |
| 5496 | __pyx_t_1 = 0; |
| 5497 | goto __pyx_L0; |
| 5498 | break; |
| 5499 | |
| 5500 | /* "xmmsvalue.pyx":251 |
| 5501 | * elif vtype == XMMSV_TYPE_INT64: |
| 5502 | * return self.get_int() |
| 5503 | * elif vtype == XMMSV_TYPE_FLOAT: # <<<<<<<<<<<<<< |
| 5504 | * return self.get_float() |
| 5505 | * elif vtype == XMMSV_TYPE_STRING: |
| 5506 | */ |
| 5507 | case XMMSV_TYPE_FLOAT: |
| 5508 | |
| 5509 | /* "xmmsvalue.pyx":252 |
| 5510 | * return self.get_int() |
| 5511 | * elif vtype == XMMSV_TYPE_FLOAT: |
| 5512 | * return self.get_float() # <<<<<<<<<<<<<< |
| 5513 | * elif vtype == XMMSV_TYPE_STRING: |
| 5514 | * return self.get_string() |
| 5515 | */ |
| 5516 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5517 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_float(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 252; __pyx_clineno = __LINE__5517; goto __pyx_L1_error;} |
| 5518 | __Pyx_GOTREF(__pyx_t_1); |
| 5519 | __pyx_r = __pyx_t_1; |
| 5520 | __pyx_t_1 = 0; |
| 5521 | goto __pyx_L0; |
| 5522 | break; |
| 5523 | |
| 5524 | /* "xmmsvalue.pyx":253 |
| 5525 | * elif vtype == XMMSV_TYPE_FLOAT: |
| 5526 | * return self.get_float() |
| 5527 | * elif vtype == XMMSV_TYPE_STRING: # <<<<<<<<<<<<<< |
| 5528 | * return self.get_string() |
| 5529 | * elif vtype == XMMSV_TYPE_COLL: |
| 5530 | */ |
| 5531 | case XMMSV_TYPE_STRING: |
| 5532 | |
| 5533 | /* "xmmsvalue.pyx":254 |
| 5534 | * return self.get_float() |
| 5535 | * elif vtype == XMMSV_TYPE_STRING: |
| 5536 | * return self.get_string() # <<<<<<<<<<<<<< |
| 5537 | * elif vtype == XMMSV_TYPE_COLL: |
| 5538 | * return self.get_coll() |
| 5539 | */ |
| 5540 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5541 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_string(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 254; __pyx_clineno = __LINE__5541; goto __pyx_L1_error;} |
| 5542 | __Pyx_GOTREF(__pyx_t_1); |
| 5543 | __pyx_r = __pyx_t_1; |
| 5544 | __pyx_t_1 = 0; |
| 5545 | goto __pyx_L0; |
| 5546 | break; |
| 5547 | |
| 5548 | /* "xmmsvalue.pyx":255 |
| 5549 | * elif vtype == XMMSV_TYPE_STRING: |
| 5550 | * return self.get_string() |
| 5551 | * elif vtype == XMMSV_TYPE_COLL: # <<<<<<<<<<<<<< |
| 5552 | * return self.get_coll() |
| 5553 | * elif vtype == XMMSV_TYPE_BIN: |
| 5554 | */ |
| 5555 | case XMMSV_TYPE_COLL: |
| 5556 | |
| 5557 | /* "xmmsvalue.pyx":256 |
| 5558 | * return self.get_string() |
| 5559 | * elif vtype == XMMSV_TYPE_COLL: |
| 5560 | * return self.get_coll() # <<<<<<<<<<<<<< |
| 5561 | * elif vtype == XMMSV_TYPE_BIN: |
| 5562 | * return self.get_bin() |
| 5563 | */ |
| 5564 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5565 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_coll(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 256; __pyx_clineno = __LINE__5565; goto __pyx_L1_error;} |
| 5566 | __Pyx_GOTREF(__pyx_t_1); |
| 5567 | __pyx_r = __pyx_t_1; |
| 5568 | __pyx_t_1 = 0; |
| 5569 | goto __pyx_L0; |
| 5570 | break; |
| 5571 | |
| 5572 | /* "xmmsvalue.pyx":257 |
| 5573 | * elif vtype == XMMSV_TYPE_COLL: |
| 5574 | * return self.get_coll() |
| 5575 | * elif vtype == XMMSV_TYPE_BIN: # <<<<<<<<<<<<<< |
| 5576 | * return self.get_bin() |
| 5577 | * elif vtype == XMMSV_TYPE_LIST: |
| 5578 | */ |
| 5579 | case XMMSV_TYPE_BIN: |
| 5580 | |
| 5581 | /* "xmmsvalue.pyx":258 |
| 5582 | * return self.get_coll() |
| 5583 | * elif vtype == XMMSV_TYPE_BIN: |
| 5584 | * return self.get_bin() # <<<<<<<<<<<<<< |
| 5585 | * elif vtype == XMMSV_TYPE_LIST: |
| 5586 | * return self.get_list() |
| 5587 | */ |
| 5588 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5589 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_bin(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__5589; goto __pyx_L1_error;} |
| 5590 | __Pyx_GOTREF(__pyx_t_1); |
| 5591 | __pyx_r = __pyx_t_1; |
| 5592 | __pyx_t_1 = 0; |
| 5593 | goto __pyx_L0; |
| 5594 | break; |
| 5595 | |
| 5596 | /* "xmmsvalue.pyx":259 |
| 5597 | * elif vtype == XMMSV_TYPE_BIN: |
| 5598 | * return self.get_bin() |
| 5599 | * elif vtype == XMMSV_TYPE_LIST: # <<<<<<<<<<<<<< |
| 5600 | * return self.get_list() |
| 5601 | * elif vtype == XMMSV_TYPE_DICT: |
| 5602 | */ |
| 5603 | case XMMSV_TYPE_LIST: |
| 5604 | |
| 5605 | /* "xmmsvalue.pyx":260 |
| 5606 | * return self.get_bin() |
| 5607 | * elif vtype == XMMSV_TYPE_LIST: |
| 5608 | * return self.get_list() # <<<<<<<<<<<<<< |
| 5609 | * elif vtype == XMMSV_TYPE_DICT: |
| 5610 | * if self.ispropdict: |
| 5611 | */ |
| 5612 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5613 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_list(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__5613; goto __pyx_L1_error;} |
| 5614 | __Pyx_GOTREF(__pyx_t_1); |
| 5615 | __pyx_r = __pyx_t_1; |
| 5616 | __pyx_t_1 = 0; |
| 5617 | goto __pyx_L0; |
| 5618 | break; |
| 5619 | |
| 5620 | /* "xmmsvalue.pyx":261 |
| 5621 | * elif vtype == XMMSV_TYPE_LIST: |
| 5622 | * return self.get_list() |
| 5623 | * elif vtype == XMMSV_TYPE_DICT: # <<<<<<<<<<<<<< |
| 5624 | * if self.ispropdict: |
| 5625 | * return self.get_propdict() |
| 5626 | */ |
| 5627 | case XMMSV_TYPE_DICT: |
| 5628 | |
| 5629 | /* "xmmsvalue.pyx":262 |
| 5630 | * return self.get_list() |
| 5631 | * elif vtype == XMMSV_TYPE_DICT: |
| 5632 | * if self.ispropdict: # <<<<<<<<<<<<<< |
| 5633 | * return self.get_propdict() |
| 5634 | * return self.get_dict() |
| 5635 | */ |
| 5636 | __pyx_t_4 = (__pyx_v_self->ispropdict != 0); |
| 5637 | if (__pyx_t_4) { |
| 5638 | |
| 5639 | /* "xmmsvalue.pyx":263 |
| 5640 | * elif vtype == XMMSV_TYPE_DICT: |
| 5641 | * if self.ispropdict: |
| 5642 | * return self.get_propdict() # <<<<<<<<<<<<<< |
| 5643 | * return self.get_dict() |
| 5644 | * else: |
| 5645 | */ |
| 5646 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5647 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_propdict(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__5647; goto __pyx_L1_error;} |
| 5648 | __Pyx_GOTREF(__pyx_t_1); |
| 5649 | __pyx_r = __pyx_t_1; |
| 5650 | __pyx_t_1 = 0; |
| 5651 | goto __pyx_L0; |
| 5652 | } |
| 5653 | |
| 5654 | /* "xmmsvalue.pyx":264 |
| 5655 | * if self.ispropdict: |
| 5656 | * return self.get_propdict() |
| 5657 | * return self.get_dict() # <<<<<<<<<<<<<< |
| 5658 | * else: |
| 5659 | * raise TypeError("Unknown value type from the server: %d" % vtype) |
| 5660 | */ |
| 5661 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5662 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_dict(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__5662; goto __pyx_L1_error;} |
| 5663 | __Pyx_GOTREF(__pyx_t_1); |
| 5664 | __pyx_r = __pyx_t_1; |
| 5665 | __pyx_t_1 = 0; |
| 5666 | goto __pyx_L0; |
| 5667 | break; |
| 5668 | default: |
| 5669 | |
| 5670 | /* "xmmsvalue.pyx":266 |
| 5671 | * return self.get_dict() |
| 5672 | * else: |
| 5673 | * raise TypeError("Unknown value type from the server: %d" % vtype) # <<<<<<<<<<<<<< |
| 5674 | * |
| 5675 | * cpdef copy(self, cls=None): |
| 5676 | */ |
| 5677 | __pyx_t_1 = PyInt_FromLong(__pyx_v_vtype); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; __pyx_clineno = __LINE__5677; goto __pyx_L1_error;} |
| 5678 | __Pyx_GOTREF(__pyx_t_1); |
| 5679 | __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_Unknown_value_type_from_the_serv, __pyx_t_1)PyString_Format(__pyx_kp_s_Unknown_value_type_from_the_serv, __pyx_t_1 ); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; __pyx_clineno = __LINE__5679; goto __pyx_L1_error;} |
| 5680 | __Pyx_GOTREF(__pyx_t_2); |
| 5681 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5682 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; __pyx_clineno = __LINE__5682; goto __pyx_L1_error;} |
| 5683 | __Pyx_GOTREF(__pyx_t_1); |
| 5684 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 5685 | __Pyx_GIVEREF(__pyx_t_2); |
| 5686 | __pyx_t_2 = 0; |
| 5687 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; __pyx_clineno = __LINE__5687; goto __pyx_L1_error;} |
| 5688 | __Pyx_GOTREF(__pyx_t_2); |
| 5689 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5690 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 5691 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 5692 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 266; __pyx_clineno = __LINE__5692; goto __pyx_L1_error;} |
| 5693 | break; |
| 5694 | } |
| 5695 | |
| 5696 | /* "xmmsvalue.pyx":237 |
| 5697 | * return XmmsListIter(self) |
| 5698 | * |
| 5699 | * cpdef value(self): # <<<<<<<<<<<<<< |
| 5700 | * """ |
| 5701 | * Return value of appropriate data type contained in this result. |
| 5702 | */ |
| 5703 | |
| 5704 | /* function exit code */ |
| 5705 | __pyx_L1_error:; |
| 5706 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5707 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 5708 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.value", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5709 | __pyx_r = 0; |
| 5710 | __pyx_L0:; |
| 5711 | __Pyx_XGIVEREF(__pyx_r); |
| 5712 | __Pyx_RefNannyFinishContext(); |
| 5713 | return __pyx_r; |
| 5714 | } |
| 5715 | |
| 5716 | /* Python wrapper */ |
| 5717 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_37value(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 5718 | static char __pyx_doc_9xmmsvalue_9XmmsValue_36value[] = "XmmsValue.value(self)\n\n\t\tReturn value of appropriate data type contained in this result.\n\t\tThis can be used instead of most get_* functions in this class.\n\t\t"; |
| 5719 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_37value(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 5720 | PyObject *__pyx_r = 0; |
| 5721 | __Pyx_RefNannyDeclarations |
| 5722 | __Pyx_RefNannySetupContext("value (wrapper)", 0); |
| 5723 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_36value(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 5724 | |
| 5725 | /* function exit code */ |
| 5726 | __Pyx_RefNannyFinishContext(); |
| 5727 | return __pyx_r; |
| 5728 | } |
| 5729 | |
| 5730 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_36value(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 5731 | PyObject *__pyx_r = NULL((void*)0); |
| 5732 | __Pyx_RefNannyDeclarations |
| 5733 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5734 | int __pyx_lineno = 0; |
| 5735 | const char *__pyx_filename = NULL((void*)0); |
| 5736 | int __pyx_clineno = 0; |
| 5737 | __Pyx_RefNannySetupContext("value", 0); |
| 5738 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5739 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->value(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__5739; goto __pyx_L1_error;} |
| 5740 | __Pyx_GOTREF(__pyx_t_1); |
| 5741 | __pyx_r = __pyx_t_1; |
| 5742 | __pyx_t_1 = 0; |
| 5743 | goto __pyx_L0; |
| 5744 | |
| 5745 | /* function exit code */ |
| 5746 | __pyx_L1_error:; |
| 5747 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5748 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.value", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5749 | __pyx_r = NULL((void*)0); |
| 5750 | __pyx_L0:; |
| 5751 | __Pyx_XGIVEREF(__pyx_r); |
| 5752 | __Pyx_RefNannyFinishContext(); |
| 5753 | return __pyx_r; |
| 5754 | } |
| 5755 | |
| 5756 | /* "xmmsvalue.pyx":268 |
| 5757 | * raise TypeError("Unknown value type from the server: %d" % vtype) |
| 5758 | * |
| 5759 | * cpdef copy(self, cls=None): # <<<<<<<<<<<<<< |
| 5760 | * if cls is None: |
| 5761 | * cls = XmmsValue |
| 5762 | */ |
| 5763 | |
| 5764 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_39copy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 5765 | static PyObject *__pyx_f_9xmmsvalue_9XmmsValue_copy(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_9xmmsvalue_9XmmsValue_copy *__pyx_optional_args) { |
| 5766 | PyObject *__pyx_v_cls = ((PyObject *)Py_None(&_Py_NoneStruct)); |
| 5767 | PyObject *__pyx_r = NULL((void*)0); |
| 5768 | __Pyx_RefNannyDeclarations |
| 5769 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5770 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 5771 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 5772 | int __pyx_t_4; |
| 5773 | int __pyx_t_5; |
| 5774 | int __pyx_lineno = 0; |
| 5775 | const char *__pyx_filename = NULL((void*)0); |
| 5776 | int __pyx_clineno = 0; |
| 5777 | __Pyx_RefNannySetupContext("copy", 0); |
| 5778 | if (__pyx_optional_args) { |
| 5779 | if (__pyx_optional_args->__pyx_n > 0) { |
| 5780 | __pyx_v_cls = __pyx_optional_args->cls; |
| 5781 | } |
| 5782 | } |
| 5783 | __Pyx_INCREF(__pyx_v_cls)( ((PyObject*)(__pyx_v_cls))->ob_refcnt++); |
| 5784 | /* Check if called by wrapper */ |
| 5785 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 5786 | /* Check if overridden in Python */ |
| 5787 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 5788 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__5788; goto __pyx_L1_error;} |
| 5789 | __Pyx_GOTREF(__pyx_t_1); |
| 5790 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_39copy)) { |
| 5791 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5792 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__5792; goto __pyx_L1_error;} |
| 5793 | __Pyx_GOTREF(__pyx_t_2); |
| 5794 | __Pyx_INCREF(__pyx_v_cls)( ((PyObject*)(__pyx_v_cls))->ob_refcnt++); |
| 5795 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_cls)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_cls); |
| 5796 | __Pyx_GIVEREF(__pyx_v_cls); |
| 5797 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__5797; goto __pyx_L1_error;} |
| 5798 | __Pyx_GOTREF(__pyx_t_3); |
| 5799 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 5800 | __pyx_r = __pyx_t_3; |
| 5801 | __pyx_t_3 = 0; |
| 5802 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5803 | goto __pyx_L0; |
| 5804 | } |
| 5805 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5806 | } |
| 5807 | |
| 5808 | /* "xmmsvalue.pyx":269 |
| 5809 | * |
| 5810 | * cpdef copy(self, cls=None): |
| 5811 | * if cls is None: # <<<<<<<<<<<<<< |
| 5812 | * cls = XmmsValue |
| 5813 | * elif not issubclass(cls, XmmsValue): |
| 5814 | */ |
| 5815 | __pyx_t_4 = (__pyx_v_cls == Py_None(&_Py_NoneStruct)); |
| 5816 | __pyx_t_5 = (__pyx_t_4 != 0); |
| 5817 | if (__pyx_t_5) { |
| 5818 | |
| 5819 | /* "xmmsvalue.pyx":270 |
| 5820 | * cpdef copy(self, cls=None): |
| 5821 | * if cls is None: |
| 5822 | * cls = XmmsValue # <<<<<<<<<<<<<< |
| 5823 | * elif not issubclass(cls, XmmsValue): |
| 5824 | * raise TypeError("Custom class must be a subclass of XmmsValue") |
| 5825 | */ |
| 5826 | __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)))( ((PyObject*)(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue ))))->ob_refcnt++); |
| 5827 | __Pyx_DECREF_SET(__pyx_v_cls, ((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)))do { PyObject *tmp = (PyObject *) __pyx_v_cls; __pyx_v_cls = ( (PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)); do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 5828 | goto __pyx_L3; |
| 5829 | } |
| 5830 | |
| 5831 | /* "xmmsvalue.pyx":271 |
| 5832 | * if cls is None: |
| 5833 | * cls = XmmsValue |
| 5834 | * elif not issubclass(cls, XmmsValue): # <<<<<<<<<<<<<< |
| 5835 | * raise TypeError("Custom class must be a subclass of XmmsValue") |
| 5836 | * return cls(sourcepref = self.sourcepref, pyval = self) |
| 5837 | */ |
| 5838 | __pyx_t_5 = PyObject_IsSubclass(__pyx_v_cls, ((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue))); if (unlikely(__pyx_t_5 == -1)__builtin_expect(!!(__pyx_t_5 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__5838; goto __pyx_L1_error;} |
| 5839 | __pyx_t_4 = ((!(__pyx_t_5 != 0)) != 0); |
| 5840 | if (__pyx_t_4) { |
| 5841 | |
| 5842 | /* "xmmsvalue.pyx":272 |
| 5843 | * cls = XmmsValue |
| 5844 | * elif not issubclass(cls, XmmsValue): |
| 5845 | * raise TypeError("Custom class must be a subclass of XmmsValue") # <<<<<<<<<<<<<< |
| 5846 | * return cls(sourcepref = self.sourcepref, pyval = self) |
| 5847 | * |
| 5848 | */ |
| 5849 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__7, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__5849; goto __pyx_L1_error;} |
| 5850 | __Pyx_GOTREF(__pyx_t_1); |
| 5851 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 5852 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5853 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__5853; goto __pyx_L1_error;} |
| 5854 | } |
| 5855 | __pyx_L3:; |
| 5856 | |
| 5857 | /* "xmmsvalue.pyx":273 |
| 5858 | * elif not issubclass(cls, XmmsValue): |
| 5859 | * raise TypeError("Custom class must be a subclass of XmmsValue") |
| 5860 | * return cls(sourcepref = self.sourcepref, pyval = self) # <<<<<<<<<<<<<< |
| 5861 | * |
| 5862 | * def __iter__(self): |
| 5863 | */ |
| 5864 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5865 | __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__5865; goto __pyx_L1_error;} |
| 5866 | __Pyx_GOTREF(__pyx_t_1); |
| 5867 | if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_sourcepref, __pyx_v_self->sourcepref) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__5867; goto __pyx_L1_error;} |
| 5868 | if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_pyval, ((PyObject *)__pyx_v_self)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__5868; goto __pyx_L1_error;} |
| 5869 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_v_cls, __pyx_empty_tuple, __pyx_t_1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__5869; goto __pyx_L1_error;} |
| 5870 | __Pyx_GOTREF(__pyx_t_3); |
| 5871 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 5872 | __pyx_r = __pyx_t_3; |
| 5873 | __pyx_t_3 = 0; |
| 5874 | goto __pyx_L0; |
| 5875 | |
| 5876 | /* "xmmsvalue.pyx":268 |
| 5877 | * raise TypeError("Unknown value type from the server: %d" % vtype) |
| 5878 | * |
| 5879 | * cpdef copy(self, cls=None): # <<<<<<<<<<<<<< |
| 5880 | * if cls is None: |
| 5881 | * cls = XmmsValue |
| 5882 | */ |
| 5883 | |
| 5884 | /* function exit code */ |
| 5885 | __pyx_L1_error:; |
| 5886 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5887 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 5888 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 5889 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5890 | __pyx_r = 0; |
| 5891 | __pyx_L0:; |
| 5892 | __Pyx_XDECREF(__pyx_v_cls)do { if ((__pyx_v_cls) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_cls))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(__pyx_v_cls)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_cls)))); } while (0); } while (0); |
| 5893 | __Pyx_XGIVEREF(__pyx_r); |
| 5894 | __Pyx_RefNannyFinishContext(); |
| 5895 | return __pyx_r; |
| 5896 | } |
| 5897 | |
| 5898 | /* Python wrapper */ |
| 5899 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_39copy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 5900 | static char __pyx_doc_9xmmsvalue_9XmmsValue_38copy[] = "XmmsValue.copy(self, cls=None)"; |
| 5901 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_39copy(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 5902 | PyObject *__pyx_v_cls = 0; |
| 5903 | int __pyx_lineno = 0; |
| 5904 | const char *__pyx_filename = NULL((void*)0); |
| 5905 | int __pyx_clineno = 0; |
| 5906 | PyObject *__pyx_r = 0; |
| 5907 | __Pyx_RefNannyDeclarations |
| 5908 | __Pyx_RefNannySetupContext("copy (wrapper)", 0); |
| 5909 | { |
| 5910 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_cls,0}; |
| 5911 | PyObject* values[1] = {0}; |
| 5912 | values[0] = ((PyObject *)Py_None(&_Py_NoneStruct)); |
| 5913 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 5914 | Py_ssize_t kw_args; |
| 5915 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 5916 | switch (pos_args) { |
| 5917 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 5918 | case 0: break; |
| 5919 | default: goto __pyx_L5_argtuple_error; |
| 5920 | } |
| 5921 | kw_args = PyDict_Size(__pyx_kwds); |
| 5922 | switch (pos_args) { |
| 5923 | case 0: |
| 5924 | if (kw_args > 0) { |
| 5925 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_cls); |
| 5926 | if (value) { values[0] = value; kw_args--; } |
| 5927 | } |
| 5928 | } |
| 5929 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 5930 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "copy") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "copy") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__5930; goto __pyx_L3_error;} |
| 5931 | } |
| 5932 | } else { |
| 5933 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 5934 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 5935 | case 0: break; |
| 5936 | default: goto __pyx_L5_argtuple_error; |
| 5937 | } |
| 5938 | } |
| 5939 | __pyx_v_cls = values[0]; |
| 5940 | } |
| 5941 | goto __pyx_L4_argument_unpacking_done; |
| 5942 | __pyx_L5_argtuple_error:; |
| 5943 | __Pyx_RaiseArgtupleInvalid("copy", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__5943; goto __pyx_L3_error;} |
| 5944 | __pyx_L3_error:; |
| 5945 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5946 | __Pyx_RefNannyFinishContext(); |
| 5947 | return NULL((void*)0); |
| 5948 | __pyx_L4_argument_unpacking_done:; |
| 5949 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_38copy(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self), __pyx_v_cls); |
| 5950 | |
| 5951 | /* function exit code */ |
| 5952 | __Pyx_RefNannyFinishContext(); |
| 5953 | return __pyx_r; |
| 5954 | } |
| 5955 | |
| 5956 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_38copy(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self, PyObject *__pyx_v_cls) { |
| 5957 | PyObject *__pyx_r = NULL((void*)0); |
| 5958 | __Pyx_RefNannyDeclarations |
| 5959 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 5960 | struct __pyx_opt_args_9xmmsvalue_9XmmsValue_copy __pyx_t_2; |
| 5961 | int __pyx_lineno = 0; |
| 5962 | const char *__pyx_filename = NULL((void*)0); |
| 5963 | int __pyx_clineno = 0; |
| 5964 | __Pyx_RefNannySetupContext("copy", 0); |
| 5965 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 5966 | __pyx_t_2.__pyx_n = 1; |
| 5967 | __pyx_t_2.cls = __pyx_v_cls; |
| 5968 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->copy(__pyx_v_self, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__5968; goto __pyx_L1_error;} |
| 5969 | __Pyx_GOTREF(__pyx_t_1); |
| 5970 | __pyx_r = __pyx_t_1; |
| 5971 | __pyx_t_1 = 0; |
| 5972 | goto __pyx_L0; |
| 5973 | |
| 5974 | /* function exit code */ |
| 5975 | __pyx_L1_error:; |
| 5976 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 5977 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 5978 | __pyx_r = NULL((void*)0); |
| 5979 | __pyx_L0:; |
| 5980 | __Pyx_XGIVEREF(__pyx_r); |
| 5981 | __Pyx_RefNannyFinishContext(); |
| 5982 | return __pyx_r; |
| 5983 | } |
| 5984 | |
| 5985 | /* "xmmsvalue.pyx":275 |
| 5986 | * return cls(sourcepref = self.sourcepref, pyval = self) |
| 5987 | * |
| 5988 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 5989 | * vtype = self.get_type() |
| 5990 | * |
| 5991 | */ |
| 5992 | |
| 5993 | /* Python wrapper */ |
| 5994 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_41__iter__(PyObject *__pyx_v_self); /*proto*/ |
| 5995 | static PyObject *__pyx_pw_9xmmsvalue_9XmmsValue_41__iter__(PyObject *__pyx_v_self) { |
| 5996 | PyObject *__pyx_r = 0; |
| 5997 | __Pyx_RefNannyDeclarations |
| 5998 | __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); |
| 5999 | __pyx_r = __pyx_pf_9xmmsvalue_9XmmsValue_40__iter__(((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_v_self)); |
| 6000 | |
| 6001 | /* function exit code */ |
| 6002 | __Pyx_RefNannyFinishContext(); |
| 6003 | return __pyx_r; |
| 6004 | } |
| 6005 | |
| 6006 | static PyObject *__pyx_pf_9xmmsvalue_9XmmsValue_40__iter__(struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_self) { |
| 6007 | PyObject *__pyx_v_vtype = NULL((void*)0); |
| 6008 | PyObject *__pyx_r = NULL((void*)0); |
| 6009 | __Pyx_RefNannyDeclarations |
| 6010 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 6011 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 6012 | int __pyx_t_3; |
| 6013 | int __pyx_lineno = 0; |
| 6014 | const char *__pyx_filename = NULL((void*)0); |
| 6015 | int __pyx_clineno = 0; |
| 6016 | __Pyx_RefNannySetupContext("__iter__", 0); |
| 6017 | |
| 6018 | /* "xmmsvalue.pyx":276 |
| 6019 | * |
| 6020 | * def __iter__(self): |
| 6021 | * vtype = self.get_type() # <<<<<<<<<<<<<< |
| 6022 | * |
| 6023 | * if vtype == XMMSV_TYPE_LIST: |
| 6024 | */ |
| 6025 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_type(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__6025; goto __pyx_L1_error;} |
| 6026 | __Pyx_GOTREF(__pyx_t_1); |
| 6027 | __pyx_v_vtype = __pyx_t_1; |
| 6028 | __pyx_t_1 = 0; |
| 6029 | |
| 6030 | /* "xmmsvalue.pyx":278 |
| 6031 | * vtype = self.get_type() |
| 6032 | * |
| 6033 | * if vtype == XMMSV_TYPE_LIST: # <<<<<<<<<<<<<< |
| 6034 | * return self.get_list_iter() |
| 6035 | * elif vtype == XMMSV_TYPE_DICT: |
| 6036 | */ |
| 6037 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_LIST); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__6037; goto __pyx_L1_error;} |
| 6038 | __Pyx_GOTREF(__pyx_t_1); |
| 6039 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_vtype, __pyx_t_1, Py_EQ2); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__6039; goto __pyx_L1_error;} |
| 6040 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 6041 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)__builtin_expect(!!(__pyx_t_3 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__6041; goto __pyx_L1_error;} |
| 6042 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 6043 | if (__pyx_t_3) { |
| 6044 | |
| 6045 | /* "xmmsvalue.pyx":279 |
| 6046 | * |
| 6047 | * if vtype == XMMSV_TYPE_LIST: |
| 6048 | * return self.get_list_iter() # <<<<<<<<<<<<<< |
| 6049 | * elif vtype == XMMSV_TYPE_DICT: |
| 6050 | * return self.get_dict_iter() |
| 6051 | */ |
| 6052 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6053 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_list_iter(__pyx_v_self, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__6053; goto __pyx_L1_error;} |
| 6054 | __Pyx_GOTREF(__pyx_t_2); |
| 6055 | __pyx_r = __pyx_t_2; |
| 6056 | __pyx_t_2 = 0; |
| 6057 | goto __pyx_L0; |
| 6058 | } |
| 6059 | |
| 6060 | /* "xmmsvalue.pyx":280 |
| 6061 | * if vtype == XMMSV_TYPE_LIST: |
| 6062 | * return self.get_list_iter() |
| 6063 | * elif vtype == XMMSV_TYPE_DICT: # <<<<<<<<<<<<<< |
| 6064 | * return self.get_dict_iter() |
| 6065 | * elif vtype == XMMSV_TYPE_STRING: |
| 6066 | */ |
| 6067 | __pyx_t_2 = PyInt_FromLong(XMMSV_TYPE_DICT); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__6067; goto __pyx_L1_error;} |
| 6068 | __Pyx_GOTREF(__pyx_t_2); |
| 6069 | __pyx_t_1 = PyObject_RichCompare(__pyx_v_vtype, __pyx_t_2, Py_EQ2); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__6069; goto __pyx_L1_error;} |
| 6070 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 6071 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)__builtin_expect(!!(__pyx_t_3 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__6071; goto __pyx_L1_error;} |
| 6072 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 6073 | if (__pyx_t_3) { |
| 6074 | |
| 6075 | /* "xmmsvalue.pyx":281 |
| 6076 | * return self.get_list_iter() |
| 6077 | * elif vtype == XMMSV_TYPE_DICT: |
| 6078 | * return self.get_dict_iter() # <<<<<<<<<<<<<< |
| 6079 | * elif vtype == XMMSV_TYPE_STRING: |
| 6080 | * return iter(self.get_string()) |
| 6081 | */ |
| 6082 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6083 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_dict_iter(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__6083; goto __pyx_L1_error;} |
| 6084 | __Pyx_GOTREF(__pyx_t_1); |
| 6085 | __pyx_r = __pyx_t_1; |
| 6086 | __pyx_t_1 = 0; |
| 6087 | goto __pyx_L0; |
| 6088 | } |
| 6089 | |
| 6090 | /* "xmmsvalue.pyx":282 |
| 6091 | * elif vtype == XMMSV_TYPE_DICT: |
| 6092 | * return self.get_dict_iter() |
| 6093 | * elif vtype == XMMSV_TYPE_STRING: # <<<<<<<<<<<<<< |
| 6094 | * return iter(self.get_string()) |
| 6095 | * elif vtype == XMMSV_TYPE_BIN: |
| 6096 | */ |
| 6097 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_STRING); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__6097; goto __pyx_L1_error;} |
| 6098 | __Pyx_GOTREF(__pyx_t_1); |
| 6099 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_vtype, __pyx_t_1, Py_EQ2); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__6099; goto __pyx_L1_error;} |
| 6100 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 6101 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)__builtin_expect(!!(__pyx_t_3 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__6101; goto __pyx_L1_error;} |
| 6102 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 6103 | if (__pyx_t_3) { |
| 6104 | |
| 6105 | /* "xmmsvalue.pyx":283 |
| 6106 | * return self.get_dict_iter() |
| 6107 | * elif vtype == XMMSV_TYPE_STRING: |
| 6108 | * return iter(self.get_string()) # <<<<<<<<<<<<<< |
| 6109 | * elif vtype == XMMSV_TYPE_BIN: |
| 6110 | * return iter(self.get_bin()) |
| 6111 | */ |
| 6112 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6113 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_string(__pyx_v_self, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__6113; goto __pyx_L1_error;} |
| 6114 | __Pyx_GOTREF(__pyx_t_2); |
| 6115 | __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__6115; goto __pyx_L1_error;} |
| 6116 | __Pyx_GOTREF(__pyx_t_1); |
| 6117 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 6118 | __pyx_r = __pyx_t_1; |
| 6119 | __pyx_t_1 = 0; |
| 6120 | goto __pyx_L0; |
| 6121 | } |
| 6122 | |
| 6123 | /* "xmmsvalue.pyx":284 |
| 6124 | * elif vtype == XMMSV_TYPE_STRING: |
| 6125 | * return iter(self.get_string()) |
| 6126 | * elif vtype == XMMSV_TYPE_BIN: # <<<<<<<<<<<<<< |
| 6127 | * return iter(self.get_bin()) |
| 6128 | * raise TypeError("Value type not iterable") |
| 6129 | */ |
| 6130 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_BIN); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__6130; goto __pyx_L1_error;} |
| 6131 | __Pyx_GOTREF(__pyx_t_1); |
| 6132 | __pyx_t_2 = PyObject_RichCompare(__pyx_v_vtype, __pyx_t_1, Py_EQ2); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__6132; goto __pyx_L1_error;} |
| 6133 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 6134 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)__builtin_expect(!!(__pyx_t_3 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__6134; goto __pyx_L1_error;} |
| 6135 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 6136 | if (__pyx_t_3) { |
| 6137 | |
| 6138 | /* "xmmsvalue.pyx":285 |
| 6139 | * return iter(self.get_string()) |
| 6140 | * elif vtype == XMMSV_TYPE_BIN: |
| 6141 | * return iter(self.get_bin()) # <<<<<<<<<<<<<< |
| 6142 | * raise TypeError("Value type not iterable") |
| 6143 | * |
| 6144 | */ |
| 6145 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6146 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_self->__pyx_vtab)->get_bin(__pyx_v_self, 0); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__6146; goto __pyx_L1_error;} |
| 6147 | __Pyx_GOTREF(__pyx_t_2); |
| 6148 | __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__6148; goto __pyx_L1_error;} |
| 6149 | __Pyx_GOTREF(__pyx_t_1); |
| 6150 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 6151 | __pyx_r = __pyx_t_1; |
| 6152 | __pyx_t_1 = 0; |
| 6153 | goto __pyx_L0; |
| 6154 | } |
| 6155 | |
| 6156 | /* "xmmsvalue.pyx":286 |
| 6157 | * elif vtype == XMMSV_TYPE_BIN: |
| 6158 | * return iter(self.get_bin()) |
| 6159 | * raise TypeError("Value type not iterable") # <<<<<<<<<<<<<< |
| 6160 | * |
| 6161 | * |
| 6162 | */ |
| 6163 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__8, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__6163; goto __pyx_L1_error;} |
| 6164 | __Pyx_GOTREF(__pyx_t_1); |
| 6165 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 6166 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 6167 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__6167; goto __pyx_L1_error;} |
| 6168 | |
| 6169 | /* "xmmsvalue.pyx":275 |
| 6170 | * return cls(sourcepref = self.sourcepref, pyval = self) |
| 6171 | * |
| 6172 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 6173 | * vtype = self.get_type() |
| 6174 | * |
| 6175 | */ |
| 6176 | |
| 6177 | /* function exit code */ |
| 6178 | __pyx_L1_error:; |
| 6179 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 6180 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 6181 | __Pyx_AddTraceback("xmmsvalue.XmmsValue.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 6182 | __pyx_r = NULL((void*)0); |
| 6183 | __pyx_L0:; |
| 6184 | __Pyx_XDECREF(__pyx_v_vtype)do { if ((__pyx_v_vtype) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_vtype))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_vtype)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_vtype)))); } while (0); } while (0); |
| 6185 | __Pyx_XGIVEREF(__pyx_r); |
| 6186 | __Pyx_RefNannyFinishContext(); |
| 6187 | return __pyx_r; |
| 6188 | } |
| 6189 | |
| 6190 | /* "xmmsvalue.pyx":292 |
| 6191 | * cdef class XmmsValueC2C(XmmsValue): |
| 6192 | * property sender: |
| 6193 | * def __get__(self): # <<<<<<<<<<<<<< |
| 6194 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6195 | * return -1 |
| 6196 | */ |
| 6197 | |
| 6198 | /* Python wrapper */ |
| 6199 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsValueC2C_6sender_1__get__(PyObject *__pyx_v_self); /*proto*/ |
| 6200 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsValueC2C_6sender_1__get__(PyObject *__pyx_v_self) { |
| 6201 | PyObject *__pyx_r = 0; |
| 6202 | __Pyx_RefNannyDeclarations |
| 6203 | __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); |
| 6204 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsValueC2C_6sender___get__(((struct __pyx_obj_9xmmsvalue_XmmsValueC2C *)__pyx_v_self)); |
| 6205 | |
| 6206 | /* function exit code */ |
| 6207 | __Pyx_RefNannyFinishContext(); |
| 6208 | return __pyx_r; |
| 6209 | } |
| 6210 | |
| 6211 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsValueC2C_6sender___get__(struct __pyx_obj_9xmmsvalue_XmmsValueC2C *__pyx_v_self) { |
| 6212 | PyObject *__pyx_r = NULL((void*)0); |
| 6213 | __Pyx_RefNannyDeclarations |
| 6214 | int __pyx_t_1; |
| 6215 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 6216 | int __pyx_lineno = 0; |
| 6217 | const char *__pyx_filename = NULL((void*)0); |
| 6218 | int __pyx_clineno = 0; |
| 6219 | __Pyx_RefNannySetupContext("__get__", 0); |
| 6220 | |
| 6221 | /* "xmmsvalue.pyx":293 |
| 6222 | * property sender: |
| 6223 | * def __get__(self): |
| 6224 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: # <<<<<<<<<<<<<< |
| 6225 | * return -1 |
| 6226 | * return xmmsv_c2c_message_get_sender(self.val) |
| 6227 | */ |
| 6228 | __pyx_t_1 = ((xmmsv_get_type(__pyx_v_self->__pyx_base.val) != XMMSV_TYPE_DICT) != 0); |
| 6229 | if (__pyx_t_1) { |
| 6230 | |
| 6231 | /* "xmmsvalue.pyx":294 |
| 6232 | * def __get__(self): |
| 6233 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6234 | * return -1 # <<<<<<<<<<<<<< |
| 6235 | * return xmmsv_c2c_message_get_sender(self.val) |
| 6236 | * |
| 6237 | */ |
| 6238 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6239 | __Pyx_INCREF(__pyx_int_neg_1)( ((PyObject*)(__pyx_int_neg_1))->ob_refcnt++); |
| 6240 | __pyx_r = __pyx_int_neg_1; |
| 6241 | goto __pyx_L0; |
| 6242 | } |
| 6243 | |
| 6244 | /* "xmmsvalue.pyx":295 |
| 6245 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6246 | * return -1 |
| 6247 | * return xmmsv_c2c_message_get_sender(self.val) # <<<<<<<<<<<<<< |
| 6248 | * |
| 6249 | * property id: |
| 6250 | */ |
| 6251 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6252 | __pyx_t_2 = __Pyx_PyInt_From_int(xmmsv_c2c_message_get_sender(__pyx_v_self->__pyx_base.val)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__6252; goto __pyx_L1_error;} |
| 6253 | __Pyx_GOTREF(__pyx_t_2); |
| 6254 | __pyx_r = __pyx_t_2; |
| 6255 | __pyx_t_2 = 0; |
| 6256 | goto __pyx_L0; |
| 6257 | |
| 6258 | /* "xmmsvalue.pyx":292 |
| 6259 | * cdef class XmmsValueC2C(XmmsValue): |
| 6260 | * property sender: |
| 6261 | * def __get__(self): # <<<<<<<<<<<<<< |
| 6262 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6263 | * return -1 |
| 6264 | */ |
| 6265 | |
| 6266 | /* function exit code */ |
| 6267 | __pyx_L1_error:; |
| 6268 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 6269 | __Pyx_AddTraceback("xmmsvalue.XmmsValueC2C.sender.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 6270 | __pyx_r = NULL((void*)0); |
| 6271 | __pyx_L0:; |
| 6272 | __Pyx_XGIVEREF(__pyx_r); |
| 6273 | __Pyx_RefNannyFinishContext(); |
| 6274 | return __pyx_r; |
| 6275 | } |
| 6276 | |
| 6277 | /* "xmmsvalue.pyx":298 |
| 6278 | * |
| 6279 | * property id: |
| 6280 | * def __get__(self): # <<<<<<<<<<<<<< |
| 6281 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6282 | * return -1 |
| 6283 | */ |
| 6284 | |
| 6285 | /* Python wrapper */ |
| 6286 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsValueC2C_2id_1__get__(PyObject *__pyx_v_self); /*proto*/ |
| 6287 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsValueC2C_2id_1__get__(PyObject *__pyx_v_self) { |
| 6288 | PyObject *__pyx_r = 0; |
| 6289 | __Pyx_RefNannyDeclarations |
| 6290 | __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); |
| 6291 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsValueC2C_2id___get__(((struct __pyx_obj_9xmmsvalue_XmmsValueC2C *)__pyx_v_self)); |
| 6292 | |
| 6293 | /* function exit code */ |
| 6294 | __Pyx_RefNannyFinishContext(); |
| 6295 | return __pyx_r; |
| 6296 | } |
| 6297 | |
| 6298 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsValueC2C_2id___get__(struct __pyx_obj_9xmmsvalue_XmmsValueC2C *__pyx_v_self) { |
| 6299 | PyObject *__pyx_r = NULL((void*)0); |
| 6300 | __Pyx_RefNannyDeclarations |
| 6301 | int __pyx_t_1; |
| 6302 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 6303 | int __pyx_lineno = 0; |
| 6304 | const char *__pyx_filename = NULL((void*)0); |
| 6305 | int __pyx_clineno = 0; |
| 6306 | __Pyx_RefNannySetupContext("__get__", 0); |
| 6307 | |
| 6308 | /* "xmmsvalue.pyx":299 |
| 6309 | * property id: |
| 6310 | * def __get__(self): |
| 6311 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: # <<<<<<<<<<<<<< |
| 6312 | * return -1 |
| 6313 | * return xmmsv_c2c_message_get_id(self.val) |
| 6314 | */ |
| 6315 | __pyx_t_1 = ((xmmsv_get_type(__pyx_v_self->__pyx_base.val) != XMMSV_TYPE_DICT) != 0); |
| 6316 | if (__pyx_t_1) { |
| 6317 | |
| 6318 | /* "xmmsvalue.pyx":300 |
| 6319 | * def __get__(self): |
| 6320 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6321 | * return -1 # <<<<<<<<<<<<<< |
| 6322 | * return xmmsv_c2c_message_get_id(self.val) |
| 6323 | * |
| 6324 | */ |
| 6325 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6326 | __Pyx_INCREF(__pyx_int_neg_1)( ((PyObject*)(__pyx_int_neg_1))->ob_refcnt++); |
| 6327 | __pyx_r = __pyx_int_neg_1; |
| 6328 | goto __pyx_L0; |
| 6329 | } |
| 6330 | |
| 6331 | /* "xmmsvalue.pyx":301 |
| 6332 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6333 | * return -1 |
| 6334 | * return xmmsv_c2c_message_get_id(self.val) # <<<<<<<<<<<<<< |
| 6335 | * |
| 6336 | * property destination: |
| 6337 | */ |
| 6338 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6339 | __pyx_t_2 = __Pyx_PyInt_From_int(xmmsv_c2c_message_get_id(__pyx_v_self->__pyx_base.val)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__6339; goto __pyx_L1_error;} |
| 6340 | __Pyx_GOTREF(__pyx_t_2); |
| 6341 | __pyx_r = __pyx_t_2; |
| 6342 | __pyx_t_2 = 0; |
| 6343 | goto __pyx_L0; |
| 6344 | |
| 6345 | /* "xmmsvalue.pyx":298 |
| 6346 | * |
| 6347 | * property id: |
| 6348 | * def __get__(self): # <<<<<<<<<<<<<< |
| 6349 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6350 | * return -1 |
| 6351 | */ |
| 6352 | |
| 6353 | /* function exit code */ |
| 6354 | __pyx_L1_error:; |
| 6355 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 6356 | __Pyx_AddTraceback("xmmsvalue.XmmsValueC2C.id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 6357 | __pyx_r = NULL((void*)0); |
| 6358 | __pyx_L0:; |
| 6359 | __Pyx_XGIVEREF(__pyx_r); |
| 6360 | __Pyx_RefNannyFinishContext(); |
| 6361 | return __pyx_r; |
| 6362 | } |
| 6363 | |
| 6364 | /* "xmmsvalue.pyx":304 |
| 6365 | * |
| 6366 | * property destination: |
| 6367 | * def __get__(self): # <<<<<<<<<<<<<< |
| 6368 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6369 | * return -1 |
| 6370 | */ |
| 6371 | |
| 6372 | /* Python wrapper */ |
| 6373 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsValueC2C_11destination_1__get__(PyObject *__pyx_v_self); /*proto*/ |
| 6374 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsValueC2C_11destination_1__get__(PyObject *__pyx_v_self) { |
| 6375 | PyObject *__pyx_r = 0; |
| 6376 | __Pyx_RefNannyDeclarations |
| 6377 | __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); |
| 6378 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsValueC2C_11destination___get__(((struct __pyx_obj_9xmmsvalue_XmmsValueC2C *)__pyx_v_self)); |
| 6379 | |
| 6380 | /* function exit code */ |
| 6381 | __Pyx_RefNannyFinishContext(); |
| 6382 | return __pyx_r; |
| 6383 | } |
| 6384 | |
| 6385 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsValueC2C_11destination___get__(struct __pyx_obj_9xmmsvalue_XmmsValueC2C *__pyx_v_self) { |
| 6386 | PyObject *__pyx_r = NULL((void*)0); |
| 6387 | __Pyx_RefNannyDeclarations |
| 6388 | int __pyx_t_1; |
| 6389 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 6390 | int __pyx_lineno = 0; |
| 6391 | const char *__pyx_filename = NULL((void*)0); |
| 6392 | int __pyx_clineno = 0; |
| 6393 | __Pyx_RefNannySetupContext("__get__", 0); |
| 6394 | |
| 6395 | /* "xmmsvalue.pyx":305 |
| 6396 | * property destination: |
| 6397 | * def __get__(self): |
| 6398 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: # <<<<<<<<<<<<<< |
| 6399 | * return -1 |
| 6400 | * return xmmsv_c2c_message_get_destination(self.val) |
| 6401 | */ |
| 6402 | __pyx_t_1 = ((xmmsv_get_type(__pyx_v_self->__pyx_base.val) != XMMSV_TYPE_DICT) != 0); |
| 6403 | if (__pyx_t_1) { |
| 6404 | |
| 6405 | /* "xmmsvalue.pyx":306 |
| 6406 | * def __get__(self): |
| 6407 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6408 | * return -1 # <<<<<<<<<<<<<< |
| 6409 | * return xmmsv_c2c_message_get_destination(self.val) |
| 6410 | * |
| 6411 | */ |
| 6412 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6413 | __Pyx_INCREF(__pyx_int_neg_1)( ((PyObject*)(__pyx_int_neg_1))->ob_refcnt++); |
| 6414 | __pyx_r = __pyx_int_neg_1; |
| 6415 | goto __pyx_L0; |
| 6416 | } |
| 6417 | |
| 6418 | /* "xmmsvalue.pyx":307 |
| 6419 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6420 | * return -1 |
| 6421 | * return xmmsv_c2c_message_get_destination(self.val) # <<<<<<<<<<<<<< |
| 6422 | * |
| 6423 | * property payload: |
| 6424 | */ |
| 6425 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6426 | __pyx_t_2 = __Pyx_PyInt_From_int(xmmsv_c2c_message_get_destination(__pyx_v_self->__pyx_base.val)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 307; __pyx_clineno = __LINE__6426; goto __pyx_L1_error;} |
| 6427 | __Pyx_GOTREF(__pyx_t_2); |
| 6428 | __pyx_r = __pyx_t_2; |
| 6429 | __pyx_t_2 = 0; |
| 6430 | goto __pyx_L0; |
| 6431 | |
| 6432 | /* "xmmsvalue.pyx":304 |
| 6433 | * |
| 6434 | * property destination: |
| 6435 | * def __get__(self): # <<<<<<<<<<<<<< |
| 6436 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6437 | * return -1 |
| 6438 | */ |
| 6439 | |
| 6440 | /* function exit code */ |
| 6441 | __pyx_L1_error:; |
| 6442 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 6443 | __Pyx_AddTraceback("xmmsvalue.XmmsValueC2C.destination.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 6444 | __pyx_r = NULL((void*)0); |
| 6445 | __pyx_L0:; |
| 6446 | __Pyx_XGIVEREF(__pyx_r); |
| 6447 | __Pyx_RefNannyFinishContext(); |
| 6448 | return __pyx_r; |
| 6449 | } |
| 6450 | |
| 6451 | /* "xmmsvalue.pyx":310 |
| 6452 | * |
| 6453 | * property payload: |
| 6454 | * def __get__(self): # <<<<<<<<<<<<<< |
| 6455 | * cdef xmmsv_t *payload |
| 6456 | * cdef XmmsValue value |
| 6457 | */ |
| 6458 | |
| 6459 | /* Python wrapper */ |
| 6460 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsValueC2C_7payload_1__get__(PyObject *__pyx_v_self); /*proto*/ |
| 6461 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsValueC2C_7payload_1__get__(PyObject *__pyx_v_self) { |
| 6462 | PyObject *__pyx_r = 0; |
| 6463 | __Pyx_RefNannyDeclarations |
| 6464 | __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); |
| 6465 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsValueC2C_7payload___get__(((struct __pyx_obj_9xmmsvalue_XmmsValueC2C *)__pyx_v_self)); |
| 6466 | |
| 6467 | /* function exit code */ |
| 6468 | __Pyx_RefNannyFinishContext(); |
| 6469 | return __pyx_r; |
| 6470 | } |
| 6471 | |
| 6472 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsValueC2C_7payload___get__(struct __pyx_obj_9xmmsvalue_XmmsValueC2C *__pyx_v_self) { |
| 6473 | xmmsv_t *__pyx_v_payload; |
| 6474 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_value = 0; |
| 6475 | PyObject *__pyx_r = NULL((void*)0); |
| 6476 | __Pyx_RefNannyDeclarations |
| 6477 | int __pyx_t_1; |
| 6478 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 6479 | int __pyx_lineno = 0; |
| 6480 | const char *__pyx_filename = NULL((void*)0); |
| 6481 | int __pyx_clineno = 0; |
| 6482 | __Pyx_RefNannySetupContext("__get__", 0); |
| 6483 | |
| 6484 | /* "xmmsvalue.pyx":313 |
| 6485 | * cdef xmmsv_t *payload |
| 6486 | * cdef XmmsValue value |
| 6487 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: # <<<<<<<<<<<<<< |
| 6488 | * return None |
| 6489 | * payload = xmmsv_c2c_message_get_payload(self.val) |
| 6490 | */ |
| 6491 | __pyx_t_1 = ((xmmsv_get_type(__pyx_v_self->__pyx_base.val) != XMMSV_TYPE_DICT) != 0); |
| 6492 | if (__pyx_t_1) { |
| 6493 | |
| 6494 | /* "xmmsvalue.pyx":314 |
| 6495 | * cdef XmmsValue value |
| 6496 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6497 | * return None # <<<<<<<<<<<<<< |
| 6498 | * payload = xmmsv_c2c_message_get_payload(self.val) |
| 6499 | * if payload == NULL: |
| 6500 | */ |
| 6501 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6502 | __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 6503 | __pyx_r = Py_None(&_Py_NoneStruct); |
| 6504 | goto __pyx_L0; |
| 6505 | } |
| 6506 | |
| 6507 | /* "xmmsvalue.pyx":315 |
| 6508 | * if xmmsv_get_type(self.val) != XMMSV_TYPE_DICT: |
| 6509 | * return None |
| 6510 | * payload = xmmsv_c2c_message_get_payload(self.val) # <<<<<<<<<<<<<< |
| 6511 | * if payload == NULL: |
| 6512 | * return None |
| 6513 | */ |
| 6514 | __pyx_v_payload = xmmsv_c2c_message_get_payload(__pyx_v_self->__pyx_base.val); |
| 6515 | |
| 6516 | /* "xmmsvalue.pyx":316 |
| 6517 | * return None |
| 6518 | * payload = xmmsv_c2c_message_get_payload(self.val) |
| 6519 | * if payload == NULL: # <<<<<<<<<<<<<< |
| 6520 | * return None |
| 6521 | * value = XmmsValue() |
| 6522 | */ |
| 6523 | __pyx_t_1 = ((__pyx_v_payload == NULL((void*)0)) != 0); |
| 6524 | if (__pyx_t_1) { |
| 6525 | |
| 6526 | /* "xmmsvalue.pyx":317 |
| 6527 | * payload = xmmsv_c2c_message_get_payload(self.val) |
| 6528 | * if payload == NULL: |
| 6529 | * return None # <<<<<<<<<<<<<< |
| 6530 | * value = XmmsValue() |
| 6531 | * value.set_value(payload) |
| 6532 | */ |
| 6533 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6534 | __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 6535 | __pyx_r = Py_None(&_Py_NoneStruct); |
| 6536 | goto __pyx_L0; |
| 6537 | } |
| 6538 | |
| 6539 | /* "xmmsvalue.pyx":318 |
| 6540 | * if payload == NULL: |
| 6541 | * return None |
| 6542 | * value = XmmsValue() # <<<<<<<<<<<<<< |
| 6543 | * value.set_value(payload) |
| 6544 | * return value |
| 6545 | */ |
| 6546 | __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)), __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__6546; goto __pyx_L1_error;} |
| 6547 | __Pyx_GOTREF(__pyx_t_2); |
| 6548 | __pyx_v_value = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_t_2); |
| 6549 | __pyx_t_2 = 0; |
| 6550 | |
| 6551 | /* "xmmsvalue.pyx":319 |
| 6552 | * return None |
| 6553 | * value = XmmsValue() |
| 6554 | * value.set_value(payload) # <<<<<<<<<<<<<< |
| 6555 | * return value |
| 6556 | * |
| 6557 | */ |
| 6558 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_value->__pyx_vtab)->set_value(__pyx_v_value, __pyx_v_payload, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__6558; goto __pyx_L1_error;} |
| 6559 | __Pyx_GOTREF(__pyx_t_2); |
| 6560 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 6561 | |
| 6562 | /* "xmmsvalue.pyx":320 |
| 6563 | * value = XmmsValue() |
| 6564 | * value.set_value(payload) |
| 6565 | * return value # <<<<<<<<<<<<<< |
| 6566 | * |
| 6567 | * |
| 6568 | */ |
| 6569 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6570 | __Pyx_INCREF(((PyObject *)__pyx_v_value))( ((PyObject*)(((PyObject *)__pyx_v_value)))->ob_refcnt++); |
| 6571 | __pyx_r = ((PyObject *)__pyx_v_value); |
| 6572 | goto __pyx_L0; |
| 6573 | |
| 6574 | /* "xmmsvalue.pyx":310 |
| 6575 | * |
| 6576 | * property payload: |
| 6577 | * def __get__(self): # <<<<<<<<<<<<<< |
| 6578 | * cdef xmmsv_t *payload |
| 6579 | * cdef XmmsValue value |
| 6580 | */ |
| 6581 | |
| 6582 | /* function exit code */ |
| 6583 | __pyx_L1_error:; |
| 6584 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 6585 | __Pyx_AddTraceback("xmmsvalue.XmmsValueC2C.payload.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 6586 | __pyx_r = NULL((void*)0); |
| 6587 | __pyx_L0:; |
| 6588 | __Pyx_XDECREF((PyObject *)__pyx_v_value)do { if (((PyObject *)__pyx_v_value) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_value )))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_value)))); } while (0); } while (0); |
| 6589 | __Pyx_XGIVEREF(__pyx_r); |
| 6590 | __Pyx_RefNannyFinishContext(); |
| 6591 | return __pyx_r; |
| 6592 | } |
| 6593 | |
| 6594 | /* "xmmsvalue.pyx":329 |
| 6595 | * #cdef xmmsv_list_iter_t *it |
| 6596 | * |
| 6597 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 6598 | * self.val = NULL |
| 6599 | * self.it = NULL |
| 6600 | */ |
| 6601 | |
| 6602 | /* Python wrapper */ |
| 6603 | static int __pyx_pw_9xmmsvalue_12XmmsListIter_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 6604 | static int __pyx_pw_9xmmsvalue_12XmmsListIter_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 6605 | int __pyx_r; |
| 6606 | __Pyx_RefNannyDeclarations |
| 6607 | __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); |
| 6608 | if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)__builtin_expect(!!((((PyVarObject*)(__pyx_args))->ob_size ) > 0), 0)) { |
| 6609 | __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); return -1;} |
| 6610 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0) && unlikely(PyDict_Size(__pyx_kwds) > 0)__builtin_expect(!!(PyDict_Size(__pyx_kwds) > 0), 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))__builtin_expect(!!(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__" , 0)), 0)) return -1; |
| 6611 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsListIter___cinit__(((struct __pyx_obj_9xmmsvalue_XmmsListIter *)__pyx_v_self)); |
| 6612 | |
| 6613 | /* function exit code */ |
| 6614 | __Pyx_RefNannyFinishContext(); |
| 6615 | return __pyx_r; |
| 6616 | } |
| 6617 | |
| 6618 | static int __pyx_pf_9xmmsvalue_12XmmsListIter___cinit__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self) { |
| 6619 | int __pyx_r; |
| 6620 | __Pyx_RefNannyDeclarations |
| 6621 | __Pyx_RefNannySetupContext("__cinit__", 0); |
| 6622 | |
| 6623 | /* "xmmsvalue.pyx":330 |
| 6624 | * |
| 6625 | * def __cinit__(self): |
| 6626 | * self.val = NULL # <<<<<<<<<<<<<< |
| 6627 | * self.it = NULL |
| 6628 | * |
| 6629 | */ |
| 6630 | __pyx_v_self->val = NULL((void*)0); |
| 6631 | |
| 6632 | /* "xmmsvalue.pyx":331 |
| 6633 | * def __cinit__(self): |
| 6634 | * self.val = NULL |
| 6635 | * self.it = NULL # <<<<<<<<<<<<<< |
| 6636 | * |
| 6637 | * def __dealloc__(self): |
| 6638 | */ |
| 6639 | __pyx_v_self->it = NULL((void*)0); |
| 6640 | |
| 6641 | /* "xmmsvalue.pyx":329 |
| 6642 | * #cdef xmmsv_list_iter_t *it |
| 6643 | * |
| 6644 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 6645 | * self.val = NULL |
| 6646 | * self.it = NULL |
| 6647 | */ |
| 6648 | |
| 6649 | /* function exit code */ |
| 6650 | __pyx_r = 0; |
| 6651 | __Pyx_RefNannyFinishContext(); |
| 6652 | return __pyx_r; |
| 6653 | } |
| 6654 | |
| 6655 | /* "xmmsvalue.pyx":333 |
| 6656 | * self.it = NULL |
| 6657 | * |
| 6658 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 6659 | * if self.it != NULL: |
| 6660 | * xmmsv_list_iter_explicit_destroy(self.it) |
| 6661 | */ |
| 6662 | |
| 6663 | /* Python wrapper */ |
| 6664 | static void __pyx_pw_9xmmsvalue_12XmmsListIter_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ |
| 6665 | static void __pyx_pw_9xmmsvalue_12XmmsListIter_3__dealloc__(PyObject *__pyx_v_self) { |
| 6666 | __Pyx_RefNannyDeclarations |
| 6667 | __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); |
| 6668 | __pyx_pf_9xmmsvalue_12XmmsListIter_2__dealloc__(((struct __pyx_obj_9xmmsvalue_XmmsListIter *)__pyx_v_self)); |
| 6669 | |
| 6670 | /* function exit code */ |
| 6671 | __Pyx_RefNannyFinishContext(); |
| 6672 | } |
| 6673 | |
| 6674 | static void __pyx_pf_9xmmsvalue_12XmmsListIter_2__dealloc__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self) { |
| 6675 | __Pyx_RefNannyDeclarations |
| 6676 | int __pyx_t_1; |
| 6677 | __Pyx_RefNannySetupContext("__dealloc__", 0); |
| 6678 | |
| 6679 | /* "xmmsvalue.pyx":334 |
| 6680 | * |
| 6681 | * def __dealloc__(self): |
| 6682 | * if self.it != NULL: # <<<<<<<<<<<<<< |
| 6683 | * xmmsv_list_iter_explicit_destroy(self.it) |
| 6684 | * if self.val != NULL: |
| 6685 | */ |
| 6686 | __pyx_t_1 = ((__pyx_v_self->it != NULL((void*)0)) != 0); |
| 6687 | if (__pyx_t_1) { |
| 6688 | |
| 6689 | /* "xmmsvalue.pyx":335 |
| 6690 | * def __dealloc__(self): |
| 6691 | * if self.it != NULL: |
| 6692 | * xmmsv_list_iter_explicit_destroy(self.it) # <<<<<<<<<<<<<< |
| 6693 | * if self.val != NULL: |
| 6694 | * xmmsv_unref(self.val) |
| 6695 | */ |
| 6696 | xmmsv_list_iter_explicit_destroy(__pyx_v_self->it); |
| 6697 | goto __pyx_L3; |
| 6698 | } |
| 6699 | __pyx_L3:; |
| 6700 | |
| 6701 | /* "xmmsvalue.pyx":336 |
| 6702 | * if self.it != NULL: |
| 6703 | * xmmsv_list_iter_explicit_destroy(self.it) |
| 6704 | * if self.val != NULL: # <<<<<<<<<<<<<< |
| 6705 | * xmmsv_unref(self.val) |
| 6706 | * |
| 6707 | */ |
| 6708 | __pyx_t_1 = ((__pyx_v_self->val != NULL((void*)0)) != 0); |
| 6709 | if (__pyx_t_1) { |
| 6710 | |
| 6711 | /* "xmmsvalue.pyx":337 |
| 6712 | * xmmsv_list_iter_explicit_destroy(self.it) |
| 6713 | * if self.val != NULL: |
| 6714 | * xmmsv_unref(self.val) # <<<<<<<<<<<<<< |
| 6715 | * |
| 6716 | * def __init__(self, XmmsValue value): |
| 6717 | */ |
| 6718 | xmmsv_unref(__pyx_v_self->val); |
| 6719 | goto __pyx_L4; |
| 6720 | } |
| 6721 | __pyx_L4:; |
| 6722 | |
| 6723 | /* "xmmsvalue.pyx":333 |
| 6724 | * self.it = NULL |
| 6725 | * |
| 6726 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 6727 | * if self.it != NULL: |
| 6728 | * xmmsv_list_iter_explicit_destroy(self.it) |
| 6729 | */ |
| 6730 | |
| 6731 | /* function exit code */ |
| 6732 | __Pyx_RefNannyFinishContext(); |
| 6733 | } |
| 6734 | |
| 6735 | /* "xmmsvalue.pyx":339 |
| 6736 | * xmmsv_unref(self.val) |
| 6737 | * |
| 6738 | * def __init__(self, XmmsValue value): # <<<<<<<<<<<<<< |
| 6739 | * if value.get_type() != XMMSV_TYPE_LIST: |
| 6740 | * raise TypeError("The value is not a list.") |
| 6741 | */ |
| 6742 | |
| 6743 | /* Python wrapper */ |
| 6744 | static int __pyx_pw_9xmmsvalue_12XmmsListIter_5__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 6745 | static int __pyx_pw_9xmmsvalue_12XmmsListIter_5__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 6746 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_value = 0; |
| 6747 | int __pyx_lineno = 0; |
| 6748 | const char *__pyx_filename = NULL((void*)0); |
| 6749 | int __pyx_clineno = 0; |
| 6750 | int __pyx_r; |
| 6751 | __Pyx_RefNannyDeclarations |
| 6752 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 6753 | { |
| 6754 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_value,0}; |
| 6755 | PyObject* values[1] = {0}; |
| 6756 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 6757 | Py_ssize_t kw_args; |
| 6758 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 6759 | switch (pos_args) { |
| 6760 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 6761 | case 0: break; |
| 6762 | default: goto __pyx_L5_argtuple_error; |
| 6763 | } |
| 6764 | kw_args = PyDict_Size(__pyx_kwds); |
| 6765 | switch (pos_args) { |
| 6766 | case 0: |
| 6767 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value )) != 0), 1)) kw_args--; |
| 6768 | else goto __pyx_L5_argtuple_error; |
| 6769 | } |
| 6770 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 6771 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__6771; goto __pyx_L3_error;} |
| 6772 | } |
| 6773 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) != 1) { |
| 6774 | goto __pyx_L5_argtuple_error; |
| 6775 | } else { |
| 6776 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 6777 | } |
| 6778 | __pyx_v_value = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)values[0]); |
| 6779 | } |
| 6780 | goto __pyx_L4_argument_unpacking_done; |
| 6781 | __pyx_L5_argtuple_error:; |
| 6782 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__6782; goto __pyx_L3_error;} |
| 6783 | __pyx_L3_error:; |
| 6784 | __Pyx_AddTraceback("xmmsvalue.XmmsListIter.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 6785 | __Pyx_RefNannyFinishContext(); |
| 6786 | return -1; |
| 6787 | __pyx_L4_argument_unpacking_done:; |
| 6788 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_9xmmsvalue_XmmsValue, 1, "value", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value ), __pyx_ptype_9xmmsvalue_XmmsValue, 1, "value", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 339; __pyx_clineno = __LINE__6788; goto __pyx_L1_error;} |
| 6789 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsListIter_4__init__(((struct __pyx_obj_9xmmsvalue_XmmsListIter *)__pyx_v_self), __pyx_v_value); |
| 6790 | |
| 6791 | /* function exit code */ |
| 6792 | goto __pyx_L0; |
| 6793 | __pyx_L1_error:; |
| 6794 | __pyx_r = -1; |
| 6795 | __pyx_L0:; |
| 6796 | __Pyx_RefNannyFinishContext(); |
| 6797 | return __pyx_r; |
| 6798 | } |
| 6799 | |
| 6800 | static int __pyx_pf_9xmmsvalue_12XmmsListIter_4__init__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self, struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_value) { |
| 6801 | int __pyx_r; |
| 6802 | __Pyx_RefNannyDeclarations |
| 6803 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 6804 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 6805 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 6806 | int __pyx_t_4; |
| 6807 | int __pyx_lineno = 0; |
| 6808 | const char *__pyx_filename = NULL((void*)0); |
| 6809 | int __pyx_clineno = 0; |
| 6810 | __Pyx_RefNannySetupContext("__init__", 0); |
| 6811 | |
| 6812 | /* "xmmsvalue.pyx":340 |
| 6813 | * |
| 6814 | * def __init__(self, XmmsValue value): |
| 6815 | * if value.get_type() != XMMSV_TYPE_LIST: # <<<<<<<<<<<<<< |
| 6816 | * raise TypeError("The value is not a list.") |
| 6817 | * self.val = xmmsv_ref(value.val) |
| 6818 | */ |
| 6819 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_value->__pyx_vtab)->get_type(__pyx_v_value, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__6819; goto __pyx_L1_error;} |
| 6820 | __Pyx_GOTREF(__pyx_t_1); |
| 6821 | __pyx_t_2 = PyInt_FromLong(XMMSV_TYPE_LIST); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__6821; goto __pyx_L1_error;} |
| 6822 | __Pyx_GOTREF(__pyx_t_2); |
| 6823 | __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE3); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__6823; goto __pyx_L1_error;} |
| 6824 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 6825 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 6826 | __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)__builtin_expect(!!(__pyx_t_4 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__6826; goto __pyx_L1_error;} |
| 6827 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 6828 | if (__pyx_t_4) { |
| 6829 | |
| 6830 | /* "xmmsvalue.pyx":341 |
| 6831 | * def __init__(self, XmmsValue value): |
| 6832 | * if value.get_type() != XMMSV_TYPE_LIST: |
| 6833 | * raise TypeError("The value is not a list.") # <<<<<<<<<<<<<< |
| 6834 | * self.val = xmmsv_ref(value.val) |
| 6835 | * if not xmmsv_get_list_iter(self.val, &self.it): |
| 6836 | */ |
| 6837 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__9, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__6837; goto __pyx_L1_error;} |
| 6838 | __Pyx_GOTREF(__pyx_t_3); |
| 6839 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 6840 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 6841 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__6841; goto __pyx_L1_error;} |
| 6842 | } |
| 6843 | |
| 6844 | /* "xmmsvalue.pyx":342 |
| 6845 | * if value.get_type() != XMMSV_TYPE_LIST: |
| 6846 | * raise TypeError("The value is not a list.") |
| 6847 | * self.val = xmmsv_ref(value.val) # <<<<<<<<<<<<<< |
| 6848 | * if not xmmsv_get_list_iter(self.val, &self.it): |
| 6849 | * raise RuntimeError("Failed to initialize the iterator.") |
| 6850 | */ |
| 6851 | __pyx_v_self->val = xmmsv_ref(__pyx_v_value->val); |
| 6852 | |
| 6853 | /* "xmmsvalue.pyx":343 |
| 6854 | * raise TypeError("The value is not a list.") |
| 6855 | * self.val = xmmsv_ref(value.val) |
| 6856 | * if not xmmsv_get_list_iter(self.val, &self.it): # <<<<<<<<<<<<<< |
| 6857 | * raise RuntimeError("Failed to initialize the iterator.") |
| 6858 | * self.sourcepref = value.sourcepref |
| 6859 | */ |
| 6860 | __pyx_t_4 = ((!(xmmsv_get_list_iter(__pyx_v_self->val, (&__pyx_v_self->it)) != 0)) != 0); |
| 6861 | if (__pyx_t_4) { |
| 6862 | |
| 6863 | /* "xmmsvalue.pyx":344 |
| 6864 | * self.val = xmmsv_ref(value.val) |
| 6865 | * if not xmmsv_get_list_iter(self.val, &self.it): |
| 6866 | * raise RuntimeError("Failed to initialize the iterator.") # <<<<<<<<<<<<<< |
| 6867 | * self.sourcepref = value.sourcepref |
| 6868 | * |
| 6869 | */ |
| 6870 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__10, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__6870; goto __pyx_L1_error;} |
| 6871 | __Pyx_GOTREF(__pyx_t_3); |
| 6872 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 6873 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 6874 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__6874; goto __pyx_L1_error;} |
| 6875 | } |
| 6876 | |
| 6877 | /* "xmmsvalue.pyx":345 |
| 6878 | * if not xmmsv_get_list_iter(self.val, &self.it): |
| 6879 | * raise RuntimeError("Failed to initialize the iterator.") |
| 6880 | * self.sourcepref = value.sourcepref # <<<<<<<<<<<<<< |
| 6881 | * |
| 6882 | * def __iter__(self): |
| 6883 | */ |
| 6884 | __pyx_t_3 = __pyx_v_value->sourcepref; |
| 6885 | __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); |
| 6886 | __Pyx_GIVEREF(__pyx_t_3); |
| 6887 | __Pyx_GOTREF(__pyx_v_self->sourcepref); |
| 6888 | __Pyx_DECREF(__pyx_v_self->sourcepref)do { if ( --((PyObject*)(__pyx_v_self->sourcepref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_self-> sourcepref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_self->sourcepref)))); } while (0); |
| 6889 | __pyx_v_self->sourcepref = __pyx_t_3; |
| 6890 | __pyx_t_3 = 0; |
| 6891 | |
| 6892 | /* "xmmsvalue.pyx":339 |
| 6893 | * xmmsv_unref(self.val) |
| 6894 | * |
| 6895 | * def __init__(self, XmmsValue value): # <<<<<<<<<<<<<< |
| 6896 | * if value.get_type() != XMMSV_TYPE_LIST: |
| 6897 | * raise TypeError("The value is not a list.") |
| 6898 | */ |
| 6899 | |
| 6900 | /* function exit code */ |
| 6901 | __pyx_r = 0; |
| 6902 | goto __pyx_L0; |
| 6903 | __pyx_L1_error:; |
| 6904 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 6905 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 6906 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 6907 | __Pyx_AddTraceback("xmmsvalue.XmmsListIter.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 6908 | __pyx_r = -1; |
| 6909 | __pyx_L0:; |
| 6910 | __Pyx_RefNannyFinishContext(); |
| 6911 | return __pyx_r; |
| 6912 | } |
| 6913 | |
| 6914 | /* "xmmsvalue.pyx":347 |
| 6915 | * self.sourcepref = value.sourcepref |
| 6916 | * |
| 6917 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 6918 | * return self |
| 6919 | * |
| 6920 | */ |
| 6921 | |
| 6922 | /* Python wrapper */ |
| 6923 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsListIter_7__iter__(PyObject *__pyx_v_self); /*proto*/ |
| 6924 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsListIter_7__iter__(PyObject *__pyx_v_self) { |
| 6925 | PyObject *__pyx_r = 0; |
| 6926 | __Pyx_RefNannyDeclarations |
| 6927 | __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); |
| 6928 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsListIter_6__iter__(((struct __pyx_obj_9xmmsvalue_XmmsListIter *)__pyx_v_self)); |
| 6929 | |
| 6930 | /* function exit code */ |
| 6931 | __Pyx_RefNannyFinishContext(); |
| 6932 | return __pyx_r; |
| 6933 | } |
| 6934 | |
| 6935 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsListIter_6__iter__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self) { |
| 6936 | PyObject *__pyx_r = NULL((void*)0); |
| 6937 | __Pyx_RefNannyDeclarations |
| 6938 | __Pyx_RefNannySetupContext("__iter__", 0); |
| 6939 | |
| 6940 | /* "xmmsvalue.pyx":348 |
| 6941 | * |
| 6942 | * def __iter__(self): |
| 6943 | * return self # <<<<<<<<<<<<<< |
| 6944 | * |
| 6945 | * def __next__(self): |
| 6946 | */ |
| 6947 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 6948 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 6949 | __pyx_r = ((PyObject *)__pyx_v_self); |
| 6950 | goto __pyx_L0; |
| 6951 | |
| 6952 | /* "xmmsvalue.pyx":347 |
| 6953 | * self.sourcepref = value.sourcepref |
| 6954 | * |
| 6955 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 6956 | * return self |
| 6957 | * |
| 6958 | */ |
| 6959 | |
| 6960 | /* function exit code */ |
| 6961 | __pyx_L0:; |
| 6962 | __Pyx_XGIVEREF(__pyx_r); |
| 6963 | __Pyx_RefNannyFinishContext(); |
| 6964 | return __pyx_r; |
| 6965 | } |
| 6966 | |
| 6967 | /* "xmmsvalue.pyx":350 |
| 6968 | * return self |
| 6969 | * |
| 6970 | * def __next__(self): # <<<<<<<<<<<<<< |
| 6971 | * cdef xmmsv_t *val = NULL |
| 6972 | * cdef XmmsValue v |
| 6973 | */ |
| 6974 | |
| 6975 | /* Python wrapper */ |
| 6976 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsListIter_9__next__(PyObject *__pyx_v_self); /*proto*/ |
| 6977 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsListIter_9__next__(PyObject *__pyx_v_self) { |
| 6978 | PyObject *__pyx_r = 0; |
| 6979 | __Pyx_RefNannyDeclarations |
| 6980 | __Pyx_RefNannySetupContext("__next__ (wrapper)", 0); |
| 6981 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsListIter_8__next__(((struct __pyx_obj_9xmmsvalue_XmmsListIter *)__pyx_v_self)); |
| 6982 | |
| 6983 | /* function exit code */ |
| 6984 | __Pyx_RefNannyFinishContext(); |
| 6985 | return __pyx_r; |
| 6986 | } |
| 6987 | |
| 6988 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsListIter_8__next__(struct __pyx_obj_9xmmsvalue_XmmsListIter *__pyx_v_self) { |
| 6989 | xmmsv_t *__pyx_v_val; |
| 6990 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_v = 0; |
| 6991 | PyObject *__pyx_r = NULL((void*)0); |
| 6992 | __Pyx_RefNannyDeclarations |
| 6993 | int __pyx_t_1; |
| 6994 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 6995 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 6996 | int __pyx_lineno = 0; |
| 6997 | const char *__pyx_filename = NULL((void*)0); |
| 6998 | int __pyx_clineno = 0; |
| 6999 | __Pyx_RefNannySetupContext("__next__", 0); |
| 7000 | |
| 7001 | /* "xmmsvalue.pyx":351 |
| 7002 | * |
| 7003 | * def __next__(self): |
| 7004 | * cdef xmmsv_t *val = NULL # <<<<<<<<<<<<<< |
| 7005 | * cdef XmmsValue v |
| 7006 | * |
| 7007 | */ |
| 7008 | __pyx_v_val = NULL((void*)0); |
| 7009 | |
| 7010 | /* "xmmsvalue.pyx":354 |
| 7011 | * cdef XmmsValue v |
| 7012 | * |
| 7013 | * if not xmmsv_list_iter_valid(self.it): # <<<<<<<<<<<<<< |
| 7014 | * raise StopIteration() |
| 7015 | * |
| 7016 | */ |
| 7017 | __pyx_t_1 = ((!(xmmsv_list_iter_valid(__pyx_v_self->it) != 0)) != 0); |
| 7018 | if (__pyx_t_1) { |
| 7019 | |
| 7020 | /* "xmmsvalue.pyx":355 |
| 7021 | * |
| 7022 | * if not xmmsv_list_iter_valid(self.it): |
| 7023 | * raise StopIteration() # <<<<<<<<<<<<<< |
| 7024 | * |
| 7025 | * if not xmmsv_list_iter_entry(self.it, &val): |
| 7026 | */ |
| 7027 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_StopIteration, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__7027; goto __pyx_L1_error;} |
| 7028 | __Pyx_GOTREF(__pyx_t_2); |
| 7029 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 7030 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 7031 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__7031; goto __pyx_L1_error;} |
| 7032 | } |
| 7033 | |
| 7034 | /* "xmmsvalue.pyx":357 |
| 7035 | * raise StopIteration() |
| 7036 | * |
| 7037 | * if not xmmsv_list_iter_entry(self.it, &val): # <<<<<<<<<<<<<< |
| 7038 | * raise RuntimeError("Failed to retrieve list entry.") |
| 7039 | * v = XmmsValue(self.sourcepref) |
| 7040 | */ |
| 7041 | __pyx_t_1 = ((!(xmmsv_list_iter_entry(__pyx_v_self->it, (&__pyx_v_val)) != 0)) != 0); |
| 7042 | if (__pyx_t_1) { |
| 7043 | |
| 7044 | /* "xmmsvalue.pyx":358 |
| 7045 | * |
| 7046 | * if not xmmsv_list_iter_entry(self.it, &val): |
| 7047 | * raise RuntimeError("Failed to retrieve list entry.") # <<<<<<<<<<<<<< |
| 7048 | * v = XmmsValue(self.sourcepref) |
| 7049 | * v.set_value(val) |
| 7050 | */ |
| 7051 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__11, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__7051; goto __pyx_L1_error;} |
| 7052 | __Pyx_GOTREF(__pyx_t_2); |
| 7053 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 7054 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 7055 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__7055; goto __pyx_L1_error;} |
| 7056 | } |
| 7057 | |
| 7058 | /* "xmmsvalue.pyx":359 |
| 7059 | * if not xmmsv_list_iter_entry(self.it, &val): |
| 7060 | * raise RuntimeError("Failed to retrieve list entry.") |
| 7061 | * v = XmmsValue(self.sourcepref) # <<<<<<<<<<<<<< |
| 7062 | * v.set_value(val) |
| 7063 | * |
| 7064 | */ |
| 7065 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__7065; goto __pyx_L1_error;} |
| 7066 | __Pyx_GOTREF(__pyx_t_2); |
| 7067 | __Pyx_INCREF(__pyx_v_self->sourcepref)( ((PyObject*)(__pyx_v_self->sourcepref))->ob_refcnt++); |
| 7068 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->sourcepref)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_self ->sourcepref); |
| 7069 | __Pyx_GIVEREF(__pyx_v_self->sourcepref); |
| 7070 | __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__7070; goto __pyx_L1_error;} |
| 7071 | __Pyx_GOTREF(__pyx_t_3); |
| 7072 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 7073 | __pyx_v_v = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_t_3); |
| 7074 | __pyx_t_3 = 0; |
| 7075 | |
| 7076 | /* "xmmsvalue.pyx":360 |
| 7077 | * raise RuntimeError("Failed to retrieve list entry.") |
| 7078 | * v = XmmsValue(self.sourcepref) |
| 7079 | * v.set_value(val) # <<<<<<<<<<<<<< |
| 7080 | * |
| 7081 | * xmmsv_list_iter_next(self.it) |
| 7082 | */ |
| 7083 | __pyx_t_3 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_v->__pyx_vtab)->set_value(__pyx_v_v, __pyx_v_val, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__7083; goto __pyx_L1_error;} |
| 7084 | __Pyx_GOTREF(__pyx_t_3); |
| 7085 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 7086 | |
| 7087 | /* "xmmsvalue.pyx":362 |
| 7088 | * v.set_value(val) |
| 7089 | * |
| 7090 | * xmmsv_list_iter_next(self.it) # <<<<<<<<<<<<<< |
| 7091 | * return v |
| 7092 | * |
| 7093 | */ |
| 7094 | xmmsv_list_iter_next(__pyx_v_self->it); |
| 7095 | |
| 7096 | /* "xmmsvalue.pyx":363 |
| 7097 | * |
| 7098 | * xmmsv_list_iter_next(self.it) |
| 7099 | * return v # <<<<<<<<<<<<<< |
| 7100 | * |
| 7101 | * |
| 7102 | */ |
| 7103 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 7104 | __Pyx_INCREF(((PyObject *)__pyx_v_v))( ((PyObject*)(((PyObject *)__pyx_v_v)))->ob_refcnt++); |
| 7105 | __pyx_r = ((PyObject *)__pyx_v_v); |
| 7106 | goto __pyx_L0; |
| 7107 | |
| 7108 | /* "xmmsvalue.pyx":350 |
| 7109 | * return self |
| 7110 | * |
| 7111 | * def __next__(self): # <<<<<<<<<<<<<< |
| 7112 | * cdef xmmsv_t *val = NULL |
| 7113 | * cdef XmmsValue v |
| 7114 | */ |
| 7115 | |
| 7116 | /* function exit code */ |
| 7117 | __pyx_L1_error:; |
| 7118 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 7119 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 7120 | __Pyx_AddTraceback("xmmsvalue.XmmsListIter.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 7121 | __pyx_r = NULL((void*)0); |
| 7122 | __pyx_L0:; |
| 7123 | __Pyx_XDECREF((PyObject *)__pyx_v_v)do { if (((PyObject *)__pyx_v_v) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_v))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_v) ))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_v)))); } while (0); } while (0); |
| 7124 | __Pyx_XGIVEREF(__pyx_r); |
| 7125 | __Pyx_RefNannyFinishContext(); |
| 7126 | return __pyx_r; |
| 7127 | } |
| 7128 | |
| 7129 | /* "xmmsvalue.pyx":371 |
| 7130 | * #cdef xmmsv_dict_iter_t *it |
| 7131 | * |
| 7132 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 7133 | * self.val = NULL |
| 7134 | * self.it = NULL |
| 7135 | */ |
| 7136 | |
| 7137 | /* Python wrapper */ |
| 7138 | static int __pyx_pw_9xmmsvalue_12XmmsDictIter_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 7139 | static int __pyx_pw_9xmmsvalue_12XmmsDictIter_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 7140 | int __pyx_r; |
| 7141 | __Pyx_RefNannyDeclarations |
| 7142 | __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); |
| 7143 | if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)__builtin_expect(!!((((PyVarObject*)(__pyx_args))->ob_size ) > 0), 0)) { |
| 7144 | __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); return -1;} |
| 7145 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0) && unlikely(PyDict_Size(__pyx_kwds) > 0)__builtin_expect(!!(PyDict_Size(__pyx_kwds) > 0), 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))__builtin_expect(!!(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__" , 0)), 0)) return -1; |
| 7146 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsDictIter___cinit__(((struct __pyx_obj_9xmmsvalue_XmmsDictIter *)__pyx_v_self)); |
| 7147 | |
| 7148 | /* function exit code */ |
| 7149 | __Pyx_RefNannyFinishContext(); |
| 7150 | return __pyx_r; |
| 7151 | } |
| 7152 | |
| 7153 | static int __pyx_pf_9xmmsvalue_12XmmsDictIter___cinit__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self) { |
| 7154 | int __pyx_r; |
| 7155 | __Pyx_RefNannyDeclarations |
| 7156 | __Pyx_RefNannySetupContext("__cinit__", 0); |
| 7157 | |
| 7158 | /* "xmmsvalue.pyx":372 |
| 7159 | * |
| 7160 | * def __cinit__(self): |
| 7161 | * self.val = NULL # <<<<<<<<<<<<<< |
| 7162 | * self.it = NULL |
| 7163 | * |
| 7164 | */ |
| 7165 | __pyx_v_self->val = NULL((void*)0); |
| 7166 | |
| 7167 | /* "xmmsvalue.pyx":373 |
| 7168 | * def __cinit__(self): |
| 7169 | * self.val = NULL |
| 7170 | * self.it = NULL # <<<<<<<<<<<<<< |
| 7171 | * |
| 7172 | * def __dealloc__(self): |
| 7173 | */ |
| 7174 | __pyx_v_self->it = NULL((void*)0); |
| 7175 | |
| 7176 | /* "xmmsvalue.pyx":371 |
| 7177 | * #cdef xmmsv_dict_iter_t *it |
| 7178 | * |
| 7179 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 7180 | * self.val = NULL |
| 7181 | * self.it = NULL |
| 7182 | */ |
| 7183 | |
| 7184 | /* function exit code */ |
| 7185 | __pyx_r = 0; |
| 7186 | __Pyx_RefNannyFinishContext(); |
| 7187 | return __pyx_r; |
| 7188 | } |
| 7189 | |
| 7190 | /* "xmmsvalue.pyx":375 |
| 7191 | * self.it = NULL |
| 7192 | * |
| 7193 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 7194 | * if self.it != NULL: |
| 7195 | * xmmsv_dict_iter_explicit_destroy(self.it) |
| 7196 | */ |
| 7197 | |
| 7198 | /* Python wrapper */ |
| 7199 | static void __pyx_pw_9xmmsvalue_12XmmsDictIter_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ |
| 7200 | static void __pyx_pw_9xmmsvalue_12XmmsDictIter_3__dealloc__(PyObject *__pyx_v_self) { |
| 7201 | __Pyx_RefNannyDeclarations |
| 7202 | __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); |
| 7203 | __pyx_pf_9xmmsvalue_12XmmsDictIter_2__dealloc__(((struct __pyx_obj_9xmmsvalue_XmmsDictIter *)__pyx_v_self)); |
| 7204 | |
| 7205 | /* function exit code */ |
| 7206 | __Pyx_RefNannyFinishContext(); |
| 7207 | } |
| 7208 | |
| 7209 | static void __pyx_pf_9xmmsvalue_12XmmsDictIter_2__dealloc__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self) { |
| 7210 | __Pyx_RefNannyDeclarations |
| 7211 | int __pyx_t_1; |
| 7212 | __Pyx_RefNannySetupContext("__dealloc__", 0); |
| 7213 | |
| 7214 | /* "xmmsvalue.pyx":376 |
| 7215 | * |
| 7216 | * def __dealloc__(self): |
| 7217 | * if self.it != NULL: # <<<<<<<<<<<<<< |
| 7218 | * xmmsv_dict_iter_explicit_destroy(self.it) |
| 7219 | * if self.val != NULL: |
| 7220 | */ |
| 7221 | __pyx_t_1 = ((__pyx_v_self->it != NULL((void*)0)) != 0); |
| 7222 | if (__pyx_t_1) { |
| 7223 | |
| 7224 | /* "xmmsvalue.pyx":377 |
| 7225 | * def __dealloc__(self): |
| 7226 | * if self.it != NULL: |
| 7227 | * xmmsv_dict_iter_explicit_destroy(self.it) # <<<<<<<<<<<<<< |
| 7228 | * if self.val != NULL: |
| 7229 | * xmmsv_unref(self.val) |
| 7230 | */ |
| 7231 | xmmsv_dict_iter_explicit_destroy(__pyx_v_self->it); |
| 7232 | goto __pyx_L3; |
| 7233 | } |
| 7234 | __pyx_L3:; |
| 7235 | |
| 7236 | /* "xmmsvalue.pyx":378 |
| 7237 | * if self.it != NULL: |
| 7238 | * xmmsv_dict_iter_explicit_destroy(self.it) |
| 7239 | * if self.val != NULL: # <<<<<<<<<<<<<< |
| 7240 | * xmmsv_unref(self.val) |
| 7241 | * |
| 7242 | */ |
| 7243 | __pyx_t_1 = ((__pyx_v_self->val != NULL((void*)0)) != 0); |
| 7244 | if (__pyx_t_1) { |
| 7245 | |
| 7246 | /* "xmmsvalue.pyx":379 |
| 7247 | * xmmsv_dict_iter_explicit_destroy(self.it) |
| 7248 | * if self.val != NULL: |
| 7249 | * xmmsv_unref(self.val) # <<<<<<<<<<<<<< |
| 7250 | * |
| 7251 | * def __init__(self, XmmsValue value): |
| 7252 | */ |
| 7253 | xmmsv_unref(__pyx_v_self->val); |
| 7254 | goto __pyx_L4; |
| 7255 | } |
| 7256 | __pyx_L4:; |
| 7257 | |
| 7258 | /* "xmmsvalue.pyx":375 |
| 7259 | * self.it = NULL |
| 7260 | * |
| 7261 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 7262 | * if self.it != NULL: |
| 7263 | * xmmsv_dict_iter_explicit_destroy(self.it) |
| 7264 | */ |
| 7265 | |
| 7266 | /* function exit code */ |
| 7267 | __Pyx_RefNannyFinishContext(); |
| 7268 | } |
| 7269 | |
| 7270 | /* "xmmsvalue.pyx":381 |
| 7271 | * xmmsv_unref(self.val) |
| 7272 | * |
| 7273 | * def __init__(self, XmmsValue value): # <<<<<<<<<<<<<< |
| 7274 | * if value.get_type() != XMMSV_TYPE_DICT: |
| 7275 | * raise TypeError("The value is not a dict.") |
| 7276 | */ |
| 7277 | |
| 7278 | /* Python wrapper */ |
| 7279 | static int __pyx_pw_9xmmsvalue_12XmmsDictIter_5__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 7280 | static int __pyx_pw_9xmmsvalue_12XmmsDictIter_5__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 7281 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_value = 0; |
| 7282 | int __pyx_lineno = 0; |
| 7283 | const char *__pyx_filename = NULL((void*)0); |
| 7284 | int __pyx_clineno = 0; |
| 7285 | int __pyx_r; |
| 7286 | __Pyx_RefNannyDeclarations |
| 7287 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 7288 | { |
| 7289 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_value,0}; |
| 7290 | PyObject* values[1] = {0}; |
| 7291 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 7292 | Py_ssize_t kw_args; |
| 7293 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 7294 | switch (pos_args) { |
| 7295 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 7296 | case 0: break; |
| 7297 | default: goto __pyx_L5_argtuple_error; |
| 7298 | } |
| 7299 | kw_args = PyDict_Size(__pyx_kwds); |
| 7300 | switch (pos_args) { |
| 7301 | case 0: |
| 7302 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_value )) != 0), 1)) kw_args--; |
| 7303 | else goto __pyx_L5_argtuple_error; |
| 7304 | } |
| 7305 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 7306 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__7306; goto __pyx_L3_error;} |
| 7307 | } |
| 7308 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) != 1) { |
| 7309 | goto __pyx_L5_argtuple_error; |
| 7310 | } else { |
| 7311 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 7312 | } |
| 7313 | __pyx_v_value = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)values[0]); |
| 7314 | } |
| 7315 | goto __pyx_L4_argument_unpacking_done; |
| 7316 | __pyx_L5_argtuple_error:; |
| 7317 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__7317; goto __pyx_L3_error;} |
| 7318 | __pyx_L3_error:; |
| 7319 | __Pyx_AddTraceback("xmmsvalue.XmmsDictIter.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 7320 | __Pyx_RefNannyFinishContext(); |
| 7321 | return -1; |
| 7322 | __pyx_L4_argument_unpacking_done:; |
| 7323 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_9xmmsvalue_XmmsValue, 1, "value", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value ), __pyx_ptype_9xmmsvalue_XmmsValue, 1, "value", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__7323; goto __pyx_L1_error;} |
| 7324 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsDictIter_4__init__(((struct __pyx_obj_9xmmsvalue_XmmsDictIter *)__pyx_v_self), __pyx_v_value); |
| 7325 | |
| 7326 | /* function exit code */ |
| 7327 | goto __pyx_L0; |
| 7328 | __pyx_L1_error:; |
| 7329 | __pyx_r = -1; |
| 7330 | __pyx_L0:; |
| 7331 | __Pyx_RefNannyFinishContext(); |
| 7332 | return __pyx_r; |
| 7333 | } |
| 7334 | |
| 7335 | static int __pyx_pf_9xmmsvalue_12XmmsDictIter_4__init__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self, struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_value) { |
| 7336 | int __pyx_r; |
| 7337 | __Pyx_RefNannyDeclarations |
| 7338 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 7339 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 7340 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 7341 | int __pyx_t_4; |
| 7342 | int __pyx_lineno = 0; |
| 7343 | const char *__pyx_filename = NULL((void*)0); |
| 7344 | int __pyx_clineno = 0; |
| 7345 | __Pyx_RefNannySetupContext("__init__", 0); |
| 7346 | |
| 7347 | /* "xmmsvalue.pyx":382 |
| 7348 | * |
| 7349 | * def __init__(self, XmmsValue value): |
| 7350 | * if value.get_type() != XMMSV_TYPE_DICT: # <<<<<<<<<<<<<< |
| 7351 | * raise TypeError("The value is not a dict.") |
| 7352 | * self.val = xmmsv_ref(value.val) |
| 7353 | */ |
| 7354 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_value->__pyx_vtab)->get_type(__pyx_v_value, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__7354; goto __pyx_L1_error;} |
| 7355 | __Pyx_GOTREF(__pyx_t_1); |
| 7356 | __pyx_t_2 = PyInt_FromLong(XMMSV_TYPE_DICT); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__7356; goto __pyx_L1_error;} |
| 7357 | __Pyx_GOTREF(__pyx_t_2); |
| 7358 | __pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE3); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__7358; goto __pyx_L1_error;} |
| 7359 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 7360 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 7361 | __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)__builtin_expect(!!(__pyx_t_4 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__7361; goto __pyx_L1_error;} |
| 7362 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 7363 | if (__pyx_t_4) { |
| 7364 | |
| 7365 | /* "xmmsvalue.pyx":383 |
| 7366 | * def __init__(self, XmmsValue value): |
| 7367 | * if value.get_type() != XMMSV_TYPE_DICT: |
| 7368 | * raise TypeError("The value is not a dict.") # <<<<<<<<<<<<<< |
| 7369 | * self.val = xmmsv_ref(value.val) |
| 7370 | * if not xmmsv_get_dict_iter(self.val, &self.it): |
| 7371 | */ |
| 7372 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__12, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__7372; goto __pyx_L1_error;} |
| 7373 | __Pyx_GOTREF(__pyx_t_3); |
| 7374 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 7375 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 7376 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__7376; goto __pyx_L1_error;} |
| 7377 | } |
| 7378 | |
| 7379 | /* "xmmsvalue.pyx":384 |
| 7380 | * if value.get_type() != XMMSV_TYPE_DICT: |
| 7381 | * raise TypeError("The value is not a dict.") |
| 7382 | * self.val = xmmsv_ref(value.val) # <<<<<<<<<<<<<< |
| 7383 | * if not xmmsv_get_dict_iter(self.val, &self.it): |
| 7384 | * raise RuntimeError("Failed to initialize the iterator.") |
| 7385 | */ |
| 7386 | __pyx_v_self->val = xmmsv_ref(__pyx_v_value->val); |
| 7387 | |
| 7388 | /* "xmmsvalue.pyx":385 |
| 7389 | * raise TypeError("The value is not a dict.") |
| 7390 | * self.val = xmmsv_ref(value.val) |
| 7391 | * if not xmmsv_get_dict_iter(self.val, &self.it): # <<<<<<<<<<<<<< |
| 7392 | * raise RuntimeError("Failed to initialize the iterator.") |
| 7393 | * self.sourcepref = value.sourcepref |
| 7394 | */ |
| 7395 | __pyx_t_4 = ((!(xmmsv_get_dict_iter(__pyx_v_self->val, (&__pyx_v_self->it)) != 0)) != 0); |
| 7396 | if (__pyx_t_4) { |
| 7397 | |
| 7398 | /* "xmmsvalue.pyx":386 |
| 7399 | * self.val = xmmsv_ref(value.val) |
| 7400 | * if not xmmsv_get_dict_iter(self.val, &self.it): |
| 7401 | * raise RuntimeError("Failed to initialize the iterator.") # <<<<<<<<<<<<<< |
| 7402 | * self.sourcepref = value.sourcepref |
| 7403 | * |
| 7404 | */ |
| 7405 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__13, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__7405; goto __pyx_L1_error;} |
| 7406 | __Pyx_GOTREF(__pyx_t_3); |
| 7407 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 7408 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 7409 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__7409; goto __pyx_L1_error;} |
| 7410 | } |
| 7411 | |
| 7412 | /* "xmmsvalue.pyx":387 |
| 7413 | * if not xmmsv_get_dict_iter(self.val, &self.it): |
| 7414 | * raise RuntimeError("Failed to initialize the iterator.") |
| 7415 | * self.sourcepref = value.sourcepref # <<<<<<<<<<<<<< |
| 7416 | * |
| 7417 | * def __iter__(self): |
| 7418 | */ |
| 7419 | __pyx_t_3 = __pyx_v_value->sourcepref; |
| 7420 | __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); |
| 7421 | __Pyx_GIVEREF(__pyx_t_3); |
| 7422 | __Pyx_GOTREF(__pyx_v_self->sourcepref); |
| 7423 | __Pyx_DECREF(__pyx_v_self->sourcepref)do { if ( --((PyObject*)(__pyx_v_self->sourcepref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_self-> sourcepref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_self->sourcepref)))); } while (0); |
| 7424 | __pyx_v_self->sourcepref = __pyx_t_3; |
| 7425 | __pyx_t_3 = 0; |
| 7426 | |
| 7427 | /* "xmmsvalue.pyx":381 |
| 7428 | * xmmsv_unref(self.val) |
| 7429 | * |
| 7430 | * def __init__(self, XmmsValue value): # <<<<<<<<<<<<<< |
| 7431 | * if value.get_type() != XMMSV_TYPE_DICT: |
| 7432 | * raise TypeError("The value is not a dict.") |
| 7433 | */ |
| 7434 | |
| 7435 | /* function exit code */ |
| 7436 | __pyx_r = 0; |
| 7437 | goto __pyx_L0; |
| 7438 | __pyx_L1_error:; |
| 7439 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 7440 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 7441 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 7442 | __Pyx_AddTraceback("xmmsvalue.XmmsDictIter.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 7443 | __pyx_r = -1; |
| 7444 | __pyx_L0:; |
| 7445 | __Pyx_RefNannyFinishContext(); |
| 7446 | return __pyx_r; |
| 7447 | } |
| 7448 | |
| 7449 | /* "xmmsvalue.pyx":389 |
| 7450 | * self.sourcepref = value.sourcepref |
| 7451 | * |
| 7452 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 7453 | * return self |
| 7454 | * |
| 7455 | */ |
| 7456 | |
| 7457 | /* Python wrapper */ |
| 7458 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsDictIter_7__iter__(PyObject *__pyx_v_self); /*proto*/ |
| 7459 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsDictIter_7__iter__(PyObject *__pyx_v_self) { |
| 7460 | PyObject *__pyx_r = 0; |
| 7461 | __Pyx_RefNannyDeclarations |
| 7462 | __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); |
| 7463 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsDictIter_6__iter__(((struct __pyx_obj_9xmmsvalue_XmmsDictIter *)__pyx_v_self)); |
| 7464 | |
| 7465 | /* function exit code */ |
| 7466 | __Pyx_RefNannyFinishContext(); |
| 7467 | return __pyx_r; |
| 7468 | } |
| 7469 | |
| 7470 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsDictIter_6__iter__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self) { |
| 7471 | PyObject *__pyx_r = NULL((void*)0); |
| 7472 | __Pyx_RefNannyDeclarations |
| 7473 | __Pyx_RefNannySetupContext("__iter__", 0); |
| 7474 | |
| 7475 | /* "xmmsvalue.pyx":390 |
| 7476 | * |
| 7477 | * def __iter__(self): |
| 7478 | * return self # <<<<<<<<<<<<<< |
| 7479 | * |
| 7480 | * def __next__(self): |
| 7481 | */ |
| 7482 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 7483 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 7484 | __pyx_r = ((PyObject *)__pyx_v_self); |
| 7485 | goto __pyx_L0; |
| 7486 | |
| 7487 | /* "xmmsvalue.pyx":389 |
| 7488 | * self.sourcepref = value.sourcepref |
| 7489 | * |
| 7490 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 7491 | * return self |
| 7492 | * |
| 7493 | */ |
| 7494 | |
| 7495 | /* function exit code */ |
| 7496 | __pyx_L0:; |
| 7497 | __Pyx_XGIVEREF(__pyx_r); |
| 7498 | __Pyx_RefNannyFinishContext(); |
| 7499 | return __pyx_r; |
| 7500 | } |
| 7501 | |
| 7502 | /* "xmmsvalue.pyx":392 |
| 7503 | * return self |
| 7504 | * |
| 7505 | * def __next__(self): # <<<<<<<<<<<<<< |
| 7506 | * cdef char *key = NULL |
| 7507 | * cdef xmmsv_t *val = NULL |
| 7508 | */ |
| 7509 | |
| 7510 | /* Python wrapper */ |
| 7511 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsDictIter_9__next__(PyObject *__pyx_v_self); /*proto*/ |
| 7512 | static PyObject *__pyx_pw_9xmmsvalue_12XmmsDictIter_9__next__(PyObject *__pyx_v_self) { |
| 7513 | PyObject *__pyx_r = 0; |
| 7514 | __Pyx_RefNannyDeclarations |
| 7515 | __Pyx_RefNannySetupContext("__next__ (wrapper)", 0); |
| 7516 | __pyx_r = __pyx_pf_9xmmsvalue_12XmmsDictIter_8__next__(((struct __pyx_obj_9xmmsvalue_XmmsDictIter *)__pyx_v_self)); |
| 7517 | |
| 7518 | /* function exit code */ |
| 7519 | __Pyx_RefNannyFinishContext(); |
| 7520 | return __pyx_r; |
| 7521 | } |
| 7522 | |
| 7523 | static PyObject *__pyx_pf_9xmmsvalue_12XmmsDictIter_8__next__(struct __pyx_obj_9xmmsvalue_XmmsDictIter *__pyx_v_self) { |
| 7524 | char *__pyx_v_key; |
| 7525 | xmmsv_t *__pyx_v_val; |
| 7526 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_v = 0; |
| 7527 | PyObject *__pyx_r = NULL((void*)0); |
| 7528 | __Pyx_RefNannyDeclarations |
| 7529 | int __pyx_t_1; |
| 7530 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 7531 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 7532 | int __pyx_lineno = 0; |
| 7533 | const char *__pyx_filename = NULL((void*)0); |
| 7534 | int __pyx_clineno = 0; |
| 7535 | __Pyx_RefNannySetupContext("__next__", 0); |
| 7536 | |
| 7537 | /* "xmmsvalue.pyx":393 |
| 7538 | * |
| 7539 | * def __next__(self): |
| 7540 | * cdef char *key = NULL # <<<<<<<<<<<<<< |
| 7541 | * cdef xmmsv_t *val = NULL |
| 7542 | * cdef XmmsValue v |
| 7543 | */ |
| 7544 | __pyx_v_key = NULL((void*)0); |
| 7545 | |
| 7546 | /* "xmmsvalue.pyx":394 |
| 7547 | * def __next__(self): |
| 7548 | * cdef char *key = NULL |
| 7549 | * cdef xmmsv_t *val = NULL # <<<<<<<<<<<<<< |
| 7550 | * cdef XmmsValue v |
| 7551 | * |
| 7552 | */ |
| 7553 | __pyx_v_val = NULL((void*)0); |
| 7554 | |
| 7555 | /* "xmmsvalue.pyx":397 |
| 7556 | * cdef XmmsValue v |
| 7557 | * |
| 7558 | * if not xmmsv_dict_iter_valid(self.it): # <<<<<<<<<<<<<< |
| 7559 | * raise StopIteration() |
| 7560 | * |
| 7561 | */ |
| 7562 | __pyx_t_1 = ((!(xmmsv_dict_iter_valid(__pyx_v_self->it) != 0)) != 0); |
| 7563 | if (__pyx_t_1) { |
| 7564 | |
| 7565 | /* "xmmsvalue.pyx":398 |
| 7566 | * |
| 7567 | * if not xmmsv_dict_iter_valid(self.it): |
| 7568 | * raise StopIteration() # <<<<<<<<<<<<<< |
| 7569 | * |
| 7570 | * if not xmmsv_dict_iter_pair(self.it, <const_char **>&key, &val): |
| 7571 | */ |
| 7572 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_StopIteration, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__7572; goto __pyx_L1_error;} |
| 7573 | __Pyx_GOTREF(__pyx_t_2); |
| 7574 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 7575 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 7576 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__7576; goto __pyx_L1_error;} |
| 7577 | } |
| 7578 | |
| 7579 | /* "xmmsvalue.pyx":400 |
| 7580 | * raise StopIteration() |
| 7581 | * |
| 7582 | * if not xmmsv_dict_iter_pair(self.it, <const_char **>&key, &val): # <<<<<<<<<<<<<< |
| 7583 | * raise RuntimeError("Failed to retrieve dict item") |
| 7584 | * v = XmmsValue(self.sourcepref) |
| 7585 | */ |
| 7586 | __pyx_t_1 = ((!(xmmsv_dict_iter_pair(__pyx_v_self->it, ((const char **)(&__pyx_v_key)), (&__pyx_v_val)) != 0)) != 0); |
| 7587 | if (__pyx_t_1) { |
| 7588 | |
| 7589 | /* "xmmsvalue.pyx":401 |
| 7590 | * |
| 7591 | * if not xmmsv_dict_iter_pair(self.it, <const_char **>&key, &val): |
| 7592 | * raise RuntimeError("Failed to retrieve dict item") # <<<<<<<<<<<<<< |
| 7593 | * v = XmmsValue(self.sourcepref) |
| 7594 | * v.set_value(val) |
| 7595 | */ |
| 7596 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__14, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__7596; goto __pyx_L1_error;} |
| 7597 | __Pyx_GOTREF(__pyx_t_2); |
| 7598 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 7599 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 7600 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__7600; goto __pyx_L1_error;} |
| 7601 | } |
| 7602 | |
| 7603 | /* "xmmsvalue.pyx":402 |
| 7604 | * if not xmmsv_dict_iter_pair(self.it, <const_char **>&key, &val): |
| 7605 | * raise RuntimeError("Failed to retrieve dict item") |
| 7606 | * v = XmmsValue(self.sourcepref) # <<<<<<<<<<<<<< |
| 7607 | * v.set_value(val) |
| 7608 | * |
| 7609 | */ |
| 7610 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__7610; goto __pyx_L1_error;} |
| 7611 | __Pyx_GOTREF(__pyx_t_2); |
| 7612 | __Pyx_INCREF(__pyx_v_self->sourcepref)( ((PyObject*)(__pyx_v_self->sourcepref))->ob_refcnt++); |
| 7613 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self->sourcepref)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_self ->sourcepref); |
| 7614 | __Pyx_GIVEREF(__pyx_v_self->sourcepref); |
| 7615 | __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__7615; goto __pyx_L1_error;} |
| 7616 | __Pyx_GOTREF(__pyx_t_3); |
| 7617 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 7618 | __pyx_v_v = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_t_3); |
| 7619 | __pyx_t_3 = 0; |
| 7620 | |
| 7621 | /* "xmmsvalue.pyx":403 |
| 7622 | * raise RuntimeError("Failed to retrieve dict item") |
| 7623 | * v = XmmsValue(self.sourcepref) |
| 7624 | * v.set_value(val) # <<<<<<<<<<<<<< |
| 7625 | * |
| 7626 | * xmmsv_dict_iter_next(self.it) |
| 7627 | */ |
| 7628 | __pyx_t_3 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_v->__pyx_vtab)->set_value(__pyx_v_v, __pyx_v_val, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__7628; goto __pyx_L1_error;} |
| 7629 | __Pyx_GOTREF(__pyx_t_3); |
| 7630 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 7631 | |
| 7632 | /* "xmmsvalue.pyx":405 |
| 7633 | * v.set_value(val) |
| 7634 | * |
| 7635 | * xmmsv_dict_iter_next(self.it) # <<<<<<<<<<<<<< |
| 7636 | * return (to_unicode(key), v) |
| 7637 | * |
| 7638 | */ |
| 7639 | xmmsv_dict_iter_next(__pyx_v_self->it); |
| 7640 | |
| 7641 | /* "xmmsvalue.pyx":406 |
| 7642 | * |
| 7643 | * xmmsv_dict_iter_next(self.it) |
| 7644 | * return (to_unicode(key), v) # <<<<<<<<<<<<<< |
| 7645 | * |
| 7646 | * |
| 7647 | */ |
| 7648 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 7649 | __pyx_t_3 = __pyx_f_9xmmsutils_to_unicode(__pyx_v_key); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__7649; goto __pyx_L1_error;} |
| 7650 | __Pyx_GOTREF(__pyx_t_3); |
| 7651 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__7651; goto __pyx_L1_error;} |
| 7652 | __Pyx_GOTREF(__pyx_t_2); |
| 7653 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_3); |
| 7654 | __Pyx_GIVEREF(__pyx_t_3); |
| 7655 | __Pyx_INCREF(((PyObject *)__pyx_v_v))( ((PyObject*)(((PyObject *)__pyx_v_v)))->ob_refcnt++); |
| 7656 | PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_v))(((PyTupleObject *)(__pyx_t_2))->ob_item[1] = ((PyObject * )__pyx_v_v)); |
| 7657 | __Pyx_GIVEREF(((PyObject *)__pyx_v_v)); |
| 7658 | __pyx_t_3 = 0; |
| 7659 | __pyx_r = __pyx_t_2; |
| 7660 | __pyx_t_2 = 0; |
| 7661 | goto __pyx_L0; |
| 7662 | |
| 7663 | /* "xmmsvalue.pyx":392 |
| 7664 | * return self |
| 7665 | * |
| 7666 | * def __next__(self): # <<<<<<<<<<<<<< |
| 7667 | * cdef char *key = NULL |
| 7668 | * cdef xmmsv_t *val = NULL |
| 7669 | */ |
| 7670 | |
| 7671 | /* function exit code */ |
| 7672 | __pyx_L1_error:; |
| 7673 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 7674 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 7675 | __Pyx_AddTraceback("xmmsvalue.XmmsDictIter.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 7676 | __pyx_r = NULL((void*)0); |
| 7677 | __pyx_L0:; |
| 7678 | __Pyx_XDECREF((PyObject *)__pyx_v_v)do { if (((PyObject *)__pyx_v_v) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_v))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_v) ))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_v)))); } while (0); } while (0); |
| 7679 | __Pyx_XGIVEREF(__pyx_r); |
| 7680 | __Pyx_RefNannyFinishContext(); |
| 7681 | return __pyx_r; |
| 7682 | } |
| 7683 | |
| 7684 | /* "xmmsvalue.pyx":410 |
| 7685 | * |
| 7686 | * cdef class CollectionRef: |
| 7687 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 7688 | * self.coll = NULL |
| 7689 | * |
| 7690 | */ |
| 7691 | |
| 7692 | /* Python wrapper */ |
| 7693 | static int __pyx_pw_9xmmsvalue_13CollectionRef_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 7694 | static int __pyx_pw_9xmmsvalue_13CollectionRef_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 7695 | int __pyx_r; |
| 7696 | __Pyx_RefNannyDeclarations |
| 7697 | __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); |
| 7698 | if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)__builtin_expect(!!((((PyVarObject*)(__pyx_args))->ob_size ) > 0), 0)) { |
| 7699 | __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); return -1;} |
| 7700 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0) && unlikely(PyDict_Size(__pyx_kwds) > 0)__builtin_expect(!!(PyDict_Size(__pyx_kwds) > 0), 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))__builtin_expect(!!(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__" , 0)), 0)) return -1; |
| 7701 | __pyx_r = __pyx_pf_9xmmsvalue_13CollectionRef___cinit__(((struct __pyx_obj_9xmmsvalue_CollectionRef *)__pyx_v_self)); |
| 7702 | |
| 7703 | /* function exit code */ |
| 7704 | __Pyx_RefNannyFinishContext(); |
| 7705 | return __pyx_r; |
| 7706 | } |
| 7707 | |
| 7708 | static int __pyx_pf_9xmmsvalue_13CollectionRef___cinit__(struct __pyx_obj_9xmmsvalue_CollectionRef *__pyx_v_self) { |
| 7709 | int __pyx_r; |
| 7710 | __Pyx_RefNannyDeclarations |
| 7711 | __Pyx_RefNannySetupContext("__cinit__", 0); |
| 7712 | |
| 7713 | /* "xmmsvalue.pyx":411 |
| 7714 | * cdef class CollectionRef: |
| 7715 | * def __cinit__(self): |
| 7716 | * self.coll = NULL # <<<<<<<<<<<<<< |
| 7717 | * |
| 7718 | * def __dealloc__(self): |
| 7719 | */ |
| 7720 | __pyx_v_self->coll = NULL((void*)0); |
| 7721 | |
| 7722 | /* "xmmsvalue.pyx":410 |
| 7723 | * |
| 7724 | * cdef class CollectionRef: |
| 7725 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 7726 | * self.coll = NULL |
| 7727 | * |
| 7728 | */ |
| 7729 | |
| 7730 | /* function exit code */ |
| 7731 | __pyx_r = 0; |
| 7732 | __Pyx_RefNannyFinishContext(); |
| 7733 | return __pyx_r; |
| 7734 | } |
| 7735 | |
| 7736 | /* "xmmsvalue.pyx":413 |
| 7737 | * self.coll = NULL |
| 7738 | * |
| 7739 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 7740 | * if self.coll != NULL: |
| 7741 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7742 | */ |
| 7743 | |
| 7744 | /* Python wrapper */ |
| 7745 | static void __pyx_pw_9xmmsvalue_13CollectionRef_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ |
| 7746 | static void __pyx_pw_9xmmsvalue_13CollectionRef_3__dealloc__(PyObject *__pyx_v_self) { |
| 7747 | __Pyx_RefNannyDeclarations |
| 7748 | __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); |
| 7749 | __pyx_pf_9xmmsvalue_13CollectionRef_2__dealloc__(((struct __pyx_obj_9xmmsvalue_CollectionRef *)__pyx_v_self)); |
| 7750 | |
| 7751 | /* function exit code */ |
| 7752 | __Pyx_RefNannyFinishContext(); |
| 7753 | } |
| 7754 | |
| 7755 | static void __pyx_pf_9xmmsvalue_13CollectionRef_2__dealloc__(struct __pyx_obj_9xmmsvalue_CollectionRef *__pyx_v_self) { |
| 7756 | __Pyx_RefNannyDeclarations |
| 7757 | int __pyx_t_1; |
| 7758 | __Pyx_RefNannySetupContext("__dealloc__", 0); |
| 7759 | |
| 7760 | /* "xmmsvalue.pyx":414 |
| 7761 | * |
| 7762 | * def __dealloc__(self): |
| 7763 | * if self.coll != NULL: # <<<<<<<<<<<<<< |
| 7764 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7765 | * self.coll = NULL |
| 7766 | */ |
| 7767 | __pyx_t_1 = ((__pyx_v_self->coll != NULL((void*)0)) != 0); |
| 7768 | if (__pyx_t_1) { |
| 7769 | |
| 7770 | /* "xmmsvalue.pyx":415 |
| 7771 | * def __dealloc__(self): |
| 7772 | * if self.coll != NULL: |
| 7773 | * xmmsv_unref(<xmmsv_t *>self.coll) # <<<<<<<<<<<<<< |
| 7774 | * self.coll = NULL |
| 7775 | * |
| 7776 | */ |
| 7777 | xmmsv_unref(((xmmsv_t *)__pyx_v_self->coll)); |
| 7778 | goto __pyx_L3; |
| 7779 | } |
| 7780 | __pyx_L3:; |
| 7781 | |
| 7782 | /* "xmmsvalue.pyx":416 |
| 7783 | * if self.coll != NULL: |
| 7784 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7785 | * self.coll = NULL # <<<<<<<<<<<<<< |
| 7786 | * |
| 7787 | * cdef set_collection(self, xmmsv_t *coll): |
| 7788 | */ |
| 7789 | __pyx_v_self->coll = NULL((void*)0); |
| 7790 | |
| 7791 | /* "xmmsvalue.pyx":413 |
| 7792 | * self.coll = NULL |
| 7793 | * |
| 7794 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 7795 | * if self.coll != NULL: |
| 7796 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7797 | */ |
| 7798 | |
| 7799 | /* function exit code */ |
| 7800 | __Pyx_RefNannyFinishContext(); |
| 7801 | } |
| 7802 | |
| 7803 | /* "xmmsvalue.pyx":418 |
| 7804 | * self.coll = NULL |
| 7805 | * |
| 7806 | * cdef set_collection(self, xmmsv_t *coll): # <<<<<<<<<<<<<< |
| 7807 | * if self.coll != NULL: |
| 7808 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7809 | */ |
| 7810 | |
| 7811 | static PyObject *__pyx_f_9xmmsvalue_13CollectionRef_set_collection(struct __pyx_obj_9xmmsvalue_CollectionRef *__pyx_v_self, xmmsv_t *__pyx_v_coll) { |
| 7812 | PyObject *__pyx_r = NULL((void*)0); |
| 7813 | __Pyx_RefNannyDeclarations |
| 7814 | int __pyx_t_1; |
| 7815 | __Pyx_RefNannySetupContext("set_collection", 0); |
| 7816 | |
| 7817 | /* "xmmsvalue.pyx":419 |
| 7818 | * |
| 7819 | * cdef set_collection(self, xmmsv_t *coll): |
| 7820 | * if self.coll != NULL: # <<<<<<<<<<<<<< |
| 7821 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7822 | * xmmsv_ref(<xmmsv_t *>coll) |
| 7823 | */ |
| 7824 | __pyx_t_1 = ((__pyx_v_self->coll != NULL((void*)0)) != 0); |
| 7825 | if (__pyx_t_1) { |
| 7826 | |
| 7827 | /* "xmmsvalue.pyx":420 |
| 7828 | * cdef set_collection(self, xmmsv_t *coll): |
| 7829 | * if self.coll != NULL: |
| 7830 | * xmmsv_unref(<xmmsv_t *>self.coll) # <<<<<<<<<<<<<< |
| 7831 | * xmmsv_ref(<xmmsv_t *>coll) |
| 7832 | * self.coll = coll |
| 7833 | */ |
| 7834 | xmmsv_unref(((xmmsv_t *)__pyx_v_self->coll)); |
| 7835 | goto __pyx_L3; |
| 7836 | } |
| 7837 | __pyx_L3:; |
| 7838 | |
| 7839 | /* "xmmsvalue.pyx":421 |
| 7840 | * if self.coll != NULL: |
| 7841 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7842 | * xmmsv_ref(<xmmsv_t *>coll) # <<<<<<<<<<<<<< |
| 7843 | * self.coll = coll |
| 7844 | * |
| 7845 | */ |
| 7846 | xmmsv_ref(((xmmsv_t *)__pyx_v_coll)); |
| 7847 | |
| 7848 | /* "xmmsvalue.pyx":422 |
| 7849 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7850 | * xmmsv_ref(<xmmsv_t *>coll) |
| 7851 | * self.coll = coll # <<<<<<<<<<<<<< |
| 7852 | * |
| 7853 | * |
| 7854 | */ |
| 7855 | __pyx_v_self->coll = __pyx_v_coll; |
| 7856 | |
| 7857 | /* "xmmsvalue.pyx":418 |
| 7858 | * self.coll = NULL |
| 7859 | * |
| 7860 | * cdef set_collection(self, xmmsv_t *coll): # <<<<<<<<<<<<<< |
| 7861 | * if self.coll != NULL: |
| 7862 | * xmmsv_unref(<xmmsv_t *>self.coll) |
| 7863 | */ |
| 7864 | |
| 7865 | /* function exit code */ |
| 7866 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 7867 | __Pyx_XGIVEREF(__pyx_r); |
| 7868 | __Pyx_RefNannyFinishContext(); |
| 7869 | return __pyx_r; |
| 7870 | } |
| 7871 | |
| 7872 | /* "xmmsvalue.pyx":433 |
| 7873 | * #cdef object _idlist |
| 7874 | * |
| 7875 | * cdef init_idlist(self): # <<<<<<<<<<<<<< |
| 7876 | * if self._idlist is None and self.coll != NULL and xmmsv_coll_get_type(self.coll) in _idlist_types: |
| 7877 | * self._idlist = CollectionIDList(self) |
| 7878 | */ |
| 7879 | |
| 7880 | static PyObject *__pyx_f_9xmmsvalue_10Collection_init_idlist(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 7881 | PyObject *__pyx_r = NULL((void*)0); |
| 7882 | __Pyx_RefNannyDeclarations |
| 7883 | int __pyx_t_1; |
| 7884 | int __pyx_t_2; |
| 7885 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 7886 | int __pyx_t_4; |
| 7887 | int __pyx_t_5; |
| 7888 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 7889 | int __pyx_lineno = 0; |
| 7890 | const char *__pyx_filename = NULL((void*)0); |
| 7891 | int __pyx_clineno = 0; |
| 7892 | __Pyx_RefNannySetupContext("init_idlist", 0); |
| 7893 | |
| 7894 | /* "xmmsvalue.pyx":434 |
| 7895 | * |
| 7896 | * cdef init_idlist(self): |
| 7897 | * if self._idlist is None and self.coll != NULL and xmmsv_coll_get_type(self.coll) in _idlist_types: # <<<<<<<<<<<<<< |
| 7898 | * self._idlist = CollectionIDList(self) |
| 7899 | * |
| 7900 | */ |
| 7901 | __pyx_t_1 = (__pyx_v_self->_idlist == Py_None(&_Py_NoneStruct)); |
| 7902 | if ((__pyx_t_1 != 0)) { |
| 7903 | __pyx_t_2 = ((__pyx_v_self->__pyx_base.coll != NULL((void*)0)) != 0); |
| 7904 | if (__pyx_t_2) { |
| 7905 | __pyx_t_3 = PyInt_FromLong(xmmsv_coll_get_type(__pyx_v_self->__pyx_base.coll)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__7905; goto __pyx_L1_error;} |
| 7906 | __Pyx_GOTREF(__pyx_t_3); |
| 7907 | __pyx_t_4 = (__Pyx_PySequence_Contains(__pyx_t_3, __pyx_v_9xmmsvalue__idlist_types, Py_EQ2)); if (unlikely(__pyx_t_4 < 0)__builtin_expect(!!(__pyx_t_4 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__7907; goto __pyx_L1_error;} |
| 7908 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 7909 | __pyx_t_5 = (__pyx_t_4 != 0); |
| 7910 | } else { |
| 7911 | __pyx_t_5 = __pyx_t_2; |
| 7912 | } |
| 7913 | __pyx_t_2 = __pyx_t_5; |
| 7914 | } else { |
| 7915 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 7916 | } |
| 7917 | if (__pyx_t_2) { |
| 7918 | |
| 7919 | /* "xmmsvalue.pyx":435 |
| 7920 | * cdef init_idlist(self): |
| 7921 | * if self._idlist is None and self.coll != NULL and xmmsv_coll_get_type(self.coll) in _idlist_types: |
| 7922 | * self._idlist = CollectionIDList(self) # <<<<<<<<<<<<<< |
| 7923 | * |
| 7924 | * cdef init_attributes(self): |
| 7925 | */ |
| 7926 | __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__7926; goto __pyx_L1_error;} |
| 7927 | __Pyx_GOTREF(__pyx_t_3); |
| 7928 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 7929 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 7930 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 7931 | __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_CollectionIDList)), __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__7931; goto __pyx_L1_error;} |
| 7932 | __Pyx_GOTREF(__pyx_t_6); |
| 7933 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 7934 | __Pyx_GIVEREF(__pyx_t_6); |
| 7935 | __Pyx_GOTREF(__pyx_v_self->_idlist); |
| 7936 | __Pyx_DECREF(__pyx_v_self->_idlist)do { if ( --((PyObject*)(__pyx_v_self->_idlist))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_self-> _idlist)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_self->_idlist)))); } while (0); |
| 7937 | __pyx_v_self->_idlist = __pyx_t_6; |
| 7938 | __pyx_t_6 = 0; |
| 7939 | goto __pyx_L3; |
| 7940 | } |
| 7941 | __pyx_L3:; |
| 7942 | |
| 7943 | /* "xmmsvalue.pyx":433 |
| 7944 | * #cdef object _idlist |
| 7945 | * |
| 7946 | * cdef init_idlist(self): # <<<<<<<<<<<<<< |
| 7947 | * if self._idlist is None and self.coll != NULL and xmmsv_coll_get_type(self.coll) in _idlist_types: |
| 7948 | * self._idlist = CollectionIDList(self) |
| 7949 | */ |
| 7950 | |
| 7951 | /* function exit code */ |
| 7952 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 7953 | goto __pyx_L0; |
| 7954 | __pyx_L1_error:; |
| 7955 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 7956 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 7957 | __Pyx_AddTraceback("xmmsvalue.Collection.init_idlist", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 7958 | __pyx_r = 0; |
| 7959 | __pyx_L0:; |
| 7960 | __Pyx_XGIVEREF(__pyx_r); |
| 7961 | __Pyx_RefNannyFinishContext(); |
| 7962 | return __pyx_r; |
| 7963 | } |
| 7964 | |
| 7965 | /* "xmmsvalue.pyx":437 |
| 7966 | * self._idlist = CollectionIDList(self) |
| 7967 | * |
| 7968 | * cdef init_attributes(self): # <<<<<<<<<<<<<< |
| 7969 | * if self._attributes is None and self.coll != NULL: |
| 7970 | * self._attributes = CollectionAttributes(self) |
| 7971 | */ |
| 7972 | |
| 7973 | static PyObject *__pyx_f_9xmmsvalue_10Collection_init_attributes(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 7974 | PyObject *__pyx_r = NULL((void*)0); |
| 7975 | __Pyx_RefNannyDeclarations |
| 7976 | int __pyx_t_1; |
| 7977 | int __pyx_t_2; |
| 7978 | int __pyx_t_3; |
| 7979 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 7980 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 7981 | int __pyx_lineno = 0; |
| 7982 | const char *__pyx_filename = NULL((void*)0); |
| 7983 | int __pyx_clineno = 0; |
| 7984 | __Pyx_RefNannySetupContext("init_attributes", 0); |
| 7985 | |
| 7986 | /* "xmmsvalue.pyx":438 |
| 7987 | * |
| 7988 | * cdef init_attributes(self): |
| 7989 | * if self._attributes is None and self.coll != NULL: # <<<<<<<<<<<<<< |
| 7990 | * self._attributes = CollectionAttributes(self) |
| 7991 | * |
| 7992 | */ |
| 7993 | __pyx_t_1 = (__pyx_v_self->_attributes == Py_None(&_Py_NoneStruct)); |
| 7994 | if ((__pyx_t_1 != 0)) { |
| 7995 | __pyx_t_2 = ((__pyx_v_self->__pyx_base.coll != NULL((void*)0)) != 0); |
| 7996 | __pyx_t_3 = __pyx_t_2; |
| 7997 | } else { |
| 7998 | __pyx_t_3 = (__pyx_t_1 != 0); |
| 7999 | } |
| 8000 | if (__pyx_t_3) { |
| 8001 | |
| 8002 | /* "xmmsvalue.pyx":439 |
| 8003 | * cdef init_attributes(self): |
| 8004 | * if self._attributes is None and self.coll != NULL: |
| 8005 | * self._attributes = CollectionAttributes(self) # <<<<<<<<<<<<<< |
| 8006 | * |
| 8007 | * cdef init_operands(self): |
| 8008 | */ |
| 8009 | __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__8009; goto __pyx_L1_error;} |
| 8010 | __Pyx_GOTREF(__pyx_t_4); |
| 8011 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 8012 | PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 8013 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 8014 | __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_CollectionAttributes)), __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__8014; goto __pyx_L1_error;} |
| 8015 | __Pyx_GOTREF(__pyx_t_5); |
| 8016 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8017 | __Pyx_GIVEREF(__pyx_t_5); |
| 8018 | __Pyx_GOTREF(__pyx_v_self->_attributes); |
| 8019 | __Pyx_DECREF(__pyx_v_self->_attributes)do { if ( --((PyObject*)(__pyx_v_self->_attributes))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_self-> _attributes)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_self->_attributes)))); } while (0); |
| 8020 | __pyx_v_self->_attributes = __pyx_t_5; |
| 8021 | __pyx_t_5 = 0; |
| 8022 | goto __pyx_L3; |
| 8023 | } |
| 8024 | __pyx_L3:; |
| 8025 | |
| 8026 | /* "xmmsvalue.pyx":437 |
| 8027 | * self._idlist = CollectionIDList(self) |
| 8028 | * |
| 8029 | * cdef init_attributes(self): # <<<<<<<<<<<<<< |
| 8030 | * if self._attributes is None and self.coll != NULL: |
| 8031 | * self._attributes = CollectionAttributes(self) |
| 8032 | */ |
| 8033 | |
| 8034 | /* function exit code */ |
| 8035 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 8036 | goto __pyx_L0; |
| 8037 | __pyx_L1_error:; |
| 8038 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 8039 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 8040 | __Pyx_AddTraceback("xmmsvalue.Collection.init_attributes", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8041 | __pyx_r = 0; |
| 8042 | __pyx_L0:; |
| 8043 | __Pyx_XGIVEREF(__pyx_r); |
| 8044 | __Pyx_RefNannyFinishContext(); |
| 8045 | return __pyx_r; |
| 8046 | } |
| 8047 | |
| 8048 | /* "xmmsvalue.pyx":441 |
| 8049 | * self._attributes = CollectionAttributes(self) |
| 8050 | * |
| 8051 | * cdef init_operands(self): # <<<<<<<<<<<<<< |
| 8052 | * if self._operands is None and self.coll != NULL: |
| 8053 | * self._operands = CollectionOperands(self) |
| 8054 | */ |
| 8055 | |
| 8056 | static PyObject *__pyx_f_9xmmsvalue_10Collection_init_operands(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 8057 | PyObject *__pyx_r = NULL((void*)0); |
| 8058 | __Pyx_RefNannyDeclarations |
| 8059 | int __pyx_t_1; |
| 8060 | int __pyx_t_2; |
| 8061 | int __pyx_t_3; |
| 8062 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 8063 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 8064 | int __pyx_lineno = 0; |
| 8065 | const char *__pyx_filename = NULL((void*)0); |
| 8066 | int __pyx_clineno = 0; |
| 8067 | __Pyx_RefNannySetupContext("init_operands", 0); |
| 8068 | |
| 8069 | /* "xmmsvalue.pyx":442 |
| 8070 | * |
| 8071 | * cdef init_operands(self): |
| 8072 | * if self._operands is None and self.coll != NULL: # <<<<<<<<<<<<<< |
| 8073 | * self._operands = CollectionOperands(self) |
| 8074 | * |
| 8075 | */ |
| 8076 | __pyx_t_1 = (__pyx_v_self->_operands == Py_None(&_Py_NoneStruct)); |
| 8077 | if ((__pyx_t_1 != 0)) { |
| 8078 | __pyx_t_2 = ((__pyx_v_self->__pyx_base.coll != NULL((void*)0)) != 0); |
| 8079 | __pyx_t_3 = __pyx_t_2; |
| 8080 | } else { |
| 8081 | __pyx_t_3 = (__pyx_t_1 != 0); |
| 8082 | } |
| 8083 | if (__pyx_t_3) { |
| 8084 | |
| 8085 | /* "xmmsvalue.pyx":443 |
| 8086 | * cdef init_operands(self): |
| 8087 | * if self._operands is None and self.coll != NULL: |
| 8088 | * self._operands = CollectionOperands(self) # <<<<<<<<<<<<<< |
| 8089 | * |
| 8090 | * property attributes: |
| 8091 | */ |
| 8092 | __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__8092; goto __pyx_L1_error;} |
| 8093 | __Pyx_GOTREF(__pyx_t_4); |
| 8094 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 8095 | PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 8096 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 8097 | __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_CollectionOperands)), __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__8097; goto __pyx_L1_error;} |
| 8098 | __Pyx_GOTREF(__pyx_t_5); |
| 8099 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8100 | __Pyx_GIVEREF(__pyx_t_5); |
| 8101 | __Pyx_GOTREF(__pyx_v_self->_operands); |
| 8102 | __Pyx_DECREF(__pyx_v_self->_operands)do { if ( --((PyObject*)(__pyx_v_self->_operands))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_self-> _operands)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_self->_operands)))); } while (0); |
| 8103 | __pyx_v_self->_operands = __pyx_t_5; |
| 8104 | __pyx_t_5 = 0; |
| 8105 | goto __pyx_L3; |
| 8106 | } |
| 8107 | __pyx_L3:; |
| 8108 | |
| 8109 | /* "xmmsvalue.pyx":441 |
| 8110 | * self._attributes = CollectionAttributes(self) |
| 8111 | * |
| 8112 | * cdef init_operands(self): # <<<<<<<<<<<<<< |
| 8113 | * if self._operands is None and self.coll != NULL: |
| 8114 | * self._operands = CollectionOperands(self) |
| 8115 | */ |
| 8116 | |
| 8117 | /* function exit code */ |
| 8118 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 8119 | goto __pyx_L0; |
| 8120 | __pyx_L1_error:; |
| 8121 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 8122 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 8123 | __Pyx_AddTraceback("xmmsvalue.Collection.init_operands", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8124 | __pyx_r = 0; |
| 8125 | __pyx_L0:; |
| 8126 | __Pyx_XGIVEREF(__pyx_r); |
| 8127 | __Pyx_RefNannyFinishContext(); |
| 8128 | return __pyx_r; |
| 8129 | } |
| 8130 | |
| 8131 | /* "xmmsvalue.pyx":446 |
| 8132 | * |
| 8133 | * property attributes: |
| 8134 | * def __get__(self): # <<<<<<<<<<<<<< |
| 8135 | * self.init_attributes() |
| 8136 | * return self._attributes |
| 8137 | */ |
| 8138 | |
| 8139 | /* Python wrapper */ |
| 8140 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_10attributes_1__get__(PyObject *__pyx_v_self); /*proto*/ |
| 8141 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_10attributes_1__get__(PyObject *__pyx_v_self) { |
| 8142 | PyObject *__pyx_r = 0; |
| 8143 | __Pyx_RefNannyDeclarations |
| 8144 | __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); |
| 8145 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_10attributes___get__(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self)); |
| 8146 | |
| 8147 | /* function exit code */ |
| 8148 | __Pyx_RefNannyFinishContext(); |
| 8149 | return __pyx_r; |
| 8150 | } |
| 8151 | |
| 8152 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_10attributes___get__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 8153 | PyObject *__pyx_r = NULL((void*)0); |
| 8154 | __Pyx_RefNannyDeclarations |
| 8155 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8156 | int __pyx_lineno = 0; |
| 8157 | const char *__pyx_filename = NULL((void*)0); |
| 8158 | int __pyx_clineno = 0; |
| 8159 | __Pyx_RefNannySetupContext("__get__", 0); |
| 8160 | |
| 8161 | /* "xmmsvalue.pyx":447 |
| 8162 | * property attributes: |
| 8163 | * def __get__(self): |
| 8164 | * self.init_attributes() # <<<<<<<<<<<<<< |
| 8165 | * return self._attributes |
| 8166 | * def __set__(self, attrs): |
| 8167 | */ |
| 8168 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_Collection *)__pyx_v_self->__pyx_base.__pyx_vtab)->init_attributes(__pyx_v_self); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__8168; goto __pyx_L1_error;} |
| 8169 | __Pyx_GOTREF(__pyx_t_1); |
| 8170 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8171 | |
| 8172 | /* "xmmsvalue.pyx":448 |
| 8173 | * def __get__(self): |
| 8174 | * self.init_attributes() |
| 8175 | * return self._attributes # <<<<<<<<<<<<<< |
| 8176 | * def __set__(self, attrs): |
| 8177 | * self.init_attributes() |
| 8178 | */ |
| 8179 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 8180 | __Pyx_INCREF(__pyx_v_self->_attributes)( ((PyObject*)(__pyx_v_self->_attributes))->ob_refcnt++ ); |
| 8181 | __pyx_r = __pyx_v_self->_attributes; |
| 8182 | goto __pyx_L0; |
| 8183 | |
| 8184 | /* "xmmsvalue.pyx":446 |
| 8185 | * |
| 8186 | * property attributes: |
| 8187 | * def __get__(self): # <<<<<<<<<<<<<< |
| 8188 | * self.init_attributes() |
| 8189 | * return self._attributes |
| 8190 | */ |
| 8191 | |
| 8192 | /* function exit code */ |
| 8193 | __pyx_L1_error:; |
| 8194 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 8195 | __Pyx_AddTraceback("xmmsvalue.Collection.attributes.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8196 | __pyx_r = NULL((void*)0); |
| 8197 | __pyx_L0:; |
| 8198 | __Pyx_XGIVEREF(__pyx_r); |
| 8199 | __Pyx_RefNannyFinishContext(); |
| 8200 | return __pyx_r; |
| 8201 | } |
| 8202 | |
| 8203 | /* "xmmsvalue.pyx":449 |
| 8204 | * self.init_attributes() |
| 8205 | * return self._attributes |
| 8206 | * def __set__(self, attrs): # <<<<<<<<<<<<<< |
| 8207 | * self.init_attributes() |
| 8208 | * if self._attributes is attrs: |
| 8209 | */ |
| 8210 | |
| 8211 | /* Python wrapper */ |
| 8212 | static int __pyx_pw_9xmmsvalue_10Collection_10attributes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_attrs); /*proto*/ |
| 8213 | static int __pyx_pw_9xmmsvalue_10Collection_10attributes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_attrs) { |
| 8214 | int __pyx_r; |
| 8215 | __Pyx_RefNannyDeclarations |
| 8216 | __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); |
| 8217 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_10attributes_2__set__(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self), ((PyObject *)__pyx_v_attrs)); |
| 8218 | |
| 8219 | /* function exit code */ |
| 8220 | __Pyx_RefNannyFinishContext(); |
| 8221 | return __pyx_r; |
| 8222 | } |
| 8223 | |
| 8224 | static int __pyx_pf_9xmmsvalue_10Collection_10attributes_2__set__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_attrs) { |
| 8225 | int __pyx_r; |
| 8226 | __Pyx_RefNannyDeclarations |
| 8227 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8228 | int __pyx_t_2; |
| 8229 | int __pyx_t_3; |
| 8230 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 8231 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 8232 | int __pyx_lineno = 0; |
| 8233 | const char *__pyx_filename = NULL((void*)0); |
| 8234 | int __pyx_clineno = 0; |
| 8235 | __Pyx_RefNannySetupContext("__set__", 0); |
| 8236 | |
| 8237 | /* "xmmsvalue.pyx":450 |
| 8238 | * return self._attributes |
| 8239 | * def __set__(self, attrs): |
| 8240 | * self.init_attributes() # <<<<<<<<<<<<<< |
| 8241 | * if self._attributes is attrs: |
| 8242 | * pass |
| 8243 | */ |
| 8244 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_Collection *)__pyx_v_self->__pyx_base.__pyx_vtab)->init_attributes(__pyx_v_self); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__8244; goto __pyx_L1_error;} |
| 8245 | __Pyx_GOTREF(__pyx_t_1); |
| 8246 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8247 | |
| 8248 | /* "xmmsvalue.pyx":451 |
| 8249 | * def __set__(self, attrs): |
| 8250 | * self.init_attributes() |
| 8251 | * if self._attributes is attrs: # <<<<<<<<<<<<<< |
| 8252 | * pass |
| 8253 | * else: |
| 8254 | */ |
| 8255 | __pyx_t_2 = (__pyx_v_self->_attributes == __pyx_v_attrs); |
| 8256 | __pyx_t_3 = (__pyx_t_2 != 0); |
| 8257 | if (__pyx_t_3) { |
| 8258 | goto __pyx_L3; |
| 8259 | } |
| 8260 | /*else*/ { |
| 8261 | |
| 8262 | /* "xmmsvalue.pyx":454 |
| 8263 | * pass |
| 8264 | * else: |
| 8265 | * self._attributes.clear() # <<<<<<<<<<<<<< |
| 8266 | * self._attributes.update(attrs) |
| 8267 | * property operands: |
| 8268 | */ |
| 8269 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_attributes, __pyx_n_s_clear); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__8269; goto __pyx_L1_error;} |
| 8270 | __Pyx_GOTREF(__pyx_t_1); |
| 8271 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 454; __pyx_clineno = __LINE__8271; goto __pyx_L1_error;} |
| 8272 | __Pyx_GOTREF(__pyx_t_4); |
| 8273 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8274 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8275 | |
| 8276 | /* "xmmsvalue.pyx":455 |
| 8277 | * else: |
| 8278 | * self._attributes.clear() |
| 8279 | * self._attributes.update(attrs) # <<<<<<<<<<<<<< |
| 8280 | * property operands: |
| 8281 | * def __get__(self): |
| 8282 | */ |
| 8283 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_attributes, __pyx_n_s_update); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__8283; goto __pyx_L1_error;} |
| 8284 | __Pyx_GOTREF(__pyx_t_4); |
| 8285 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__8285; goto __pyx_L1_error;} |
| 8286 | __Pyx_GOTREF(__pyx_t_1); |
| 8287 | __Pyx_INCREF(__pyx_v_attrs)( ((PyObject*)(__pyx_v_attrs))->ob_refcnt++); |
| 8288 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_attrs)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_v_attrs ); |
| 8289 | __Pyx_GIVEREF(__pyx_v_attrs); |
| 8290 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__8290; goto __pyx_L1_error;} |
| 8291 | __Pyx_GOTREF(__pyx_t_5); |
| 8292 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8293 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8294 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 8295 | } |
| 8296 | __pyx_L3:; |
| 8297 | |
| 8298 | /* "xmmsvalue.pyx":449 |
| 8299 | * self.init_attributes() |
| 8300 | * return self._attributes |
| 8301 | * def __set__(self, attrs): # <<<<<<<<<<<<<< |
| 8302 | * self.init_attributes() |
| 8303 | * if self._attributes is attrs: |
| 8304 | */ |
| 8305 | |
| 8306 | /* function exit code */ |
| 8307 | __pyx_r = 0; |
| 8308 | goto __pyx_L0; |
| 8309 | __pyx_L1_error:; |
| 8310 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 8311 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 8312 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 8313 | __Pyx_AddTraceback("xmmsvalue.Collection.attributes.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8314 | __pyx_r = -1; |
| 8315 | __pyx_L0:; |
| 8316 | __Pyx_RefNannyFinishContext(); |
| 8317 | return __pyx_r; |
| 8318 | } |
| 8319 | |
| 8320 | /* "xmmsvalue.pyx":457 |
| 8321 | * self._attributes.update(attrs) |
| 8322 | * property operands: |
| 8323 | * def __get__(self): # <<<<<<<<<<<<<< |
| 8324 | * self.init_operands() |
| 8325 | * return self._operands |
| 8326 | */ |
| 8327 | |
| 8328 | /* Python wrapper */ |
| 8329 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_8operands_1__get__(PyObject *__pyx_v_self); /*proto*/ |
| 8330 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_8operands_1__get__(PyObject *__pyx_v_self) { |
| 8331 | PyObject *__pyx_r = 0; |
| 8332 | __Pyx_RefNannyDeclarations |
| 8333 | __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); |
| 8334 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_8operands___get__(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self)); |
| 8335 | |
| 8336 | /* function exit code */ |
| 8337 | __Pyx_RefNannyFinishContext(); |
| 8338 | return __pyx_r; |
| 8339 | } |
| 8340 | |
| 8341 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_8operands___get__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 8342 | PyObject *__pyx_r = NULL((void*)0); |
| 8343 | __Pyx_RefNannyDeclarations |
| 8344 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8345 | int __pyx_lineno = 0; |
| 8346 | const char *__pyx_filename = NULL((void*)0); |
| 8347 | int __pyx_clineno = 0; |
| 8348 | __Pyx_RefNannySetupContext("__get__", 0); |
| 8349 | |
| 8350 | /* "xmmsvalue.pyx":458 |
| 8351 | * property operands: |
| 8352 | * def __get__(self): |
| 8353 | * self.init_operands() # <<<<<<<<<<<<<< |
| 8354 | * return self._operands |
| 8355 | * def __set__(self, ops): |
| 8356 | */ |
| 8357 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_Collection *)__pyx_v_self->__pyx_base.__pyx_vtab)->init_operands(__pyx_v_self); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__8357; goto __pyx_L1_error;} |
| 8358 | __Pyx_GOTREF(__pyx_t_1); |
| 8359 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8360 | |
| 8361 | /* "xmmsvalue.pyx":459 |
| 8362 | * def __get__(self): |
| 8363 | * self.init_operands() |
| 8364 | * return self._operands # <<<<<<<<<<<<<< |
| 8365 | * def __set__(self, ops): |
| 8366 | * self.init_operands() |
| 8367 | */ |
| 8368 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 8369 | __Pyx_INCREF(__pyx_v_self->_operands)( ((PyObject*)(__pyx_v_self->_operands))->ob_refcnt++); |
| 8370 | __pyx_r = __pyx_v_self->_operands; |
| 8371 | goto __pyx_L0; |
| 8372 | |
| 8373 | /* "xmmsvalue.pyx":457 |
| 8374 | * self._attributes.update(attrs) |
| 8375 | * property operands: |
| 8376 | * def __get__(self): # <<<<<<<<<<<<<< |
| 8377 | * self.init_operands() |
| 8378 | * return self._operands |
| 8379 | */ |
| 8380 | |
| 8381 | /* function exit code */ |
| 8382 | __pyx_L1_error:; |
| 8383 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 8384 | __Pyx_AddTraceback("xmmsvalue.Collection.operands.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8385 | __pyx_r = NULL((void*)0); |
| 8386 | __pyx_L0:; |
| 8387 | __Pyx_XGIVEREF(__pyx_r); |
| 8388 | __Pyx_RefNannyFinishContext(); |
| 8389 | return __pyx_r; |
| 8390 | } |
| 8391 | |
| 8392 | /* "xmmsvalue.pyx":460 |
| 8393 | * self.init_operands() |
| 8394 | * return self._operands |
| 8395 | * def __set__(self, ops): # <<<<<<<<<<<<<< |
| 8396 | * self.init_operands() |
| 8397 | * if self._operands is ops: |
| 8398 | */ |
| 8399 | |
| 8400 | /* Python wrapper */ |
| 8401 | static int __pyx_pw_9xmmsvalue_10Collection_8operands_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ops); /*proto*/ |
| 8402 | static int __pyx_pw_9xmmsvalue_10Collection_8operands_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ops) { |
| 8403 | int __pyx_r; |
| 8404 | __Pyx_RefNannyDeclarations |
| 8405 | __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); |
| 8406 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_8operands_2__set__(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self), ((PyObject *)__pyx_v_ops)); |
| 8407 | |
| 8408 | /* function exit code */ |
| 8409 | __Pyx_RefNannyFinishContext(); |
| 8410 | return __pyx_r; |
| 8411 | } |
| 8412 | |
| 8413 | static int __pyx_pf_9xmmsvalue_10Collection_8operands_2__set__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ops) { |
| 8414 | int __pyx_r; |
| 8415 | __Pyx_RefNannyDeclarations |
| 8416 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8417 | int __pyx_t_2; |
| 8418 | int __pyx_t_3; |
| 8419 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 8420 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 8421 | int __pyx_lineno = 0; |
| 8422 | const char *__pyx_filename = NULL((void*)0); |
| 8423 | int __pyx_clineno = 0; |
| 8424 | __Pyx_RefNannySetupContext("__set__", 0); |
| 8425 | |
| 8426 | /* "xmmsvalue.pyx":461 |
| 8427 | * return self._operands |
| 8428 | * def __set__(self, ops): |
| 8429 | * self.init_operands() # <<<<<<<<<<<<<< |
| 8430 | * if self._operands is ops: |
| 8431 | * pass |
| 8432 | */ |
| 8433 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_Collection *)__pyx_v_self->__pyx_base.__pyx_vtab)->init_operands(__pyx_v_self); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__8433; goto __pyx_L1_error;} |
| 8434 | __Pyx_GOTREF(__pyx_t_1); |
| 8435 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8436 | |
| 8437 | /* "xmmsvalue.pyx":462 |
| 8438 | * def __set__(self, ops): |
| 8439 | * self.init_operands() |
| 8440 | * if self._operands is ops: # <<<<<<<<<<<<<< |
| 8441 | * pass |
| 8442 | * else: |
| 8443 | */ |
| 8444 | __pyx_t_2 = (__pyx_v_self->_operands == __pyx_v_ops); |
| 8445 | __pyx_t_3 = (__pyx_t_2 != 0); |
| 8446 | if (__pyx_t_3) { |
| 8447 | goto __pyx_L3; |
| 8448 | } |
| 8449 | /*else*/ { |
| 8450 | |
| 8451 | /* "xmmsvalue.pyx":465 |
| 8452 | * pass |
| 8453 | * else: |
| 8454 | * self._operands.clear() # <<<<<<<<<<<<<< |
| 8455 | * self._operands.extend(ops) |
| 8456 | * property ids: |
| 8457 | */ |
| 8458 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_operands, __pyx_n_s_clear); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__8458; goto __pyx_L1_error;} |
| 8459 | __Pyx_GOTREF(__pyx_t_1); |
| 8460 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__8460; goto __pyx_L1_error;} |
| 8461 | __Pyx_GOTREF(__pyx_t_4); |
| 8462 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8463 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8464 | |
| 8465 | /* "xmmsvalue.pyx":466 |
| 8466 | * else: |
| 8467 | * self._operands.clear() |
| 8468 | * self._operands.extend(ops) # <<<<<<<<<<<<<< |
| 8469 | * property ids: |
| 8470 | * def __get__(self): |
| 8471 | */ |
| 8472 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_operands, __pyx_n_s_extend); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__8472; goto __pyx_L1_error;} |
| 8473 | __Pyx_GOTREF(__pyx_t_4); |
| 8474 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__8474; goto __pyx_L1_error;} |
| 8475 | __Pyx_GOTREF(__pyx_t_1); |
| 8476 | __Pyx_INCREF(__pyx_v_ops)( ((PyObject*)(__pyx_v_ops))->ob_refcnt++); |
| 8477 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_ops)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_v_ops); |
| 8478 | __Pyx_GIVEREF(__pyx_v_ops); |
| 8479 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__8479; goto __pyx_L1_error;} |
| 8480 | __Pyx_GOTREF(__pyx_t_5); |
| 8481 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8482 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8483 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 8484 | } |
| 8485 | __pyx_L3:; |
| 8486 | |
| 8487 | /* "xmmsvalue.pyx":460 |
| 8488 | * self.init_operands() |
| 8489 | * return self._operands |
| 8490 | * def __set__(self, ops): # <<<<<<<<<<<<<< |
| 8491 | * self.init_operands() |
| 8492 | * if self._operands is ops: |
| 8493 | */ |
| 8494 | |
| 8495 | /* function exit code */ |
| 8496 | __pyx_r = 0; |
| 8497 | goto __pyx_L0; |
| 8498 | __pyx_L1_error:; |
| 8499 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 8500 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 8501 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 8502 | __Pyx_AddTraceback("xmmsvalue.Collection.operands.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8503 | __pyx_r = -1; |
| 8504 | __pyx_L0:; |
| 8505 | __Pyx_RefNannyFinishContext(); |
| 8506 | return __pyx_r; |
| 8507 | } |
| 8508 | |
| 8509 | /* "xmmsvalue.pyx":468 |
| 8510 | * self._operands.extend(ops) |
| 8511 | * property ids: |
| 8512 | * def __get__(self): # <<<<<<<<<<<<<< |
| 8513 | * self.init_idlist() |
| 8514 | * return self._idlist |
| 8515 | */ |
| 8516 | |
| 8517 | /* Python wrapper */ |
| 8518 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_3ids_1__get__(PyObject *__pyx_v_self); /*proto*/ |
| 8519 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_3ids_1__get__(PyObject *__pyx_v_self) { |
| 8520 | PyObject *__pyx_r = 0; |
| 8521 | __Pyx_RefNannyDeclarations |
| 8522 | __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); |
| 8523 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_3ids___get__(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self)); |
| 8524 | |
| 8525 | /* function exit code */ |
| 8526 | __Pyx_RefNannyFinishContext(); |
| 8527 | return __pyx_r; |
| 8528 | } |
| 8529 | |
| 8530 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_3ids___get__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 8531 | PyObject *__pyx_r = NULL((void*)0); |
| 8532 | __Pyx_RefNannyDeclarations |
| 8533 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8534 | int __pyx_lineno = 0; |
| 8535 | const char *__pyx_filename = NULL((void*)0); |
| 8536 | int __pyx_clineno = 0; |
| 8537 | __Pyx_RefNannySetupContext("__get__", 0); |
| 8538 | |
| 8539 | /* "xmmsvalue.pyx":469 |
| 8540 | * property ids: |
| 8541 | * def __get__(self): |
| 8542 | * self.init_idlist() # <<<<<<<<<<<<<< |
| 8543 | * return self._idlist |
| 8544 | * def __set__(self, ids): |
| 8545 | */ |
| 8546 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_Collection *)__pyx_v_self->__pyx_base.__pyx_vtab)->init_idlist(__pyx_v_self); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 469; __pyx_clineno = __LINE__8546; goto __pyx_L1_error;} |
| 8547 | __Pyx_GOTREF(__pyx_t_1); |
| 8548 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8549 | |
| 8550 | /* "xmmsvalue.pyx":470 |
| 8551 | * def __get__(self): |
| 8552 | * self.init_idlist() |
| 8553 | * return self._idlist # <<<<<<<<<<<<<< |
| 8554 | * def __set__(self, ids): |
| 8555 | * self.init_idlist() |
| 8556 | */ |
| 8557 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 8558 | __Pyx_INCREF(__pyx_v_self->_idlist)( ((PyObject*)(__pyx_v_self->_idlist))->ob_refcnt++); |
| 8559 | __pyx_r = __pyx_v_self->_idlist; |
| 8560 | goto __pyx_L0; |
| 8561 | |
| 8562 | /* "xmmsvalue.pyx":468 |
| 8563 | * self._operands.extend(ops) |
| 8564 | * property ids: |
| 8565 | * def __get__(self): # <<<<<<<<<<<<<< |
| 8566 | * self.init_idlist() |
| 8567 | * return self._idlist |
| 8568 | */ |
| 8569 | |
| 8570 | /* function exit code */ |
| 8571 | __pyx_L1_error:; |
| 8572 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 8573 | __Pyx_AddTraceback("xmmsvalue.Collection.ids.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8574 | __pyx_r = NULL((void*)0); |
| 8575 | __pyx_L0:; |
| 8576 | __Pyx_XGIVEREF(__pyx_r); |
| 8577 | __Pyx_RefNannyFinishContext(); |
| 8578 | return __pyx_r; |
| 8579 | } |
| 8580 | |
| 8581 | /* "xmmsvalue.pyx":471 |
| 8582 | * self.init_idlist() |
| 8583 | * return self._idlist |
| 8584 | * def __set__(self, ids): # <<<<<<<<<<<<<< |
| 8585 | * self.init_idlist() |
| 8586 | * if self._idlist is None: |
| 8587 | */ |
| 8588 | |
| 8589 | /* Python wrapper */ |
| 8590 | static int __pyx_pw_9xmmsvalue_10Collection_3ids_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ids); /*proto*/ |
| 8591 | static int __pyx_pw_9xmmsvalue_10Collection_3ids_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_ids) { |
| 8592 | int __pyx_r; |
| 8593 | __Pyx_RefNannyDeclarations |
| 8594 | __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); |
| 8595 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_3ids_2__set__(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self), ((PyObject *)__pyx_v_ids)); |
| 8596 | |
| 8597 | /* function exit code */ |
| 8598 | __Pyx_RefNannyFinishContext(); |
| 8599 | return __pyx_r; |
| 8600 | } |
| 8601 | |
| 8602 | static int __pyx_pf_9xmmsvalue_10Collection_3ids_2__set__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ids) { |
| 8603 | int __pyx_r; |
| 8604 | __Pyx_RefNannyDeclarations |
| 8605 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8606 | int __pyx_t_2; |
| 8607 | int __pyx_t_3; |
| 8608 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 8609 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 8610 | int __pyx_lineno = 0; |
| 8611 | const char *__pyx_filename = NULL((void*)0); |
| 8612 | int __pyx_clineno = 0; |
| 8613 | __Pyx_RefNannySetupContext("__set__", 0); |
| 8614 | |
| 8615 | /* "xmmsvalue.pyx":472 |
| 8616 | * return self._idlist |
| 8617 | * def __set__(self, ids): |
| 8618 | * self.init_idlist() # <<<<<<<<<<<<<< |
| 8619 | * if self._idlist is None: |
| 8620 | * raise TypeError("Can't set idlist for this type of collection") |
| 8621 | */ |
| 8622 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_Collection *)__pyx_v_self->__pyx_base.__pyx_vtab)->init_idlist(__pyx_v_self); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__8622; goto __pyx_L1_error;} |
| 8623 | __Pyx_GOTREF(__pyx_t_1); |
| 8624 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8625 | |
| 8626 | /* "xmmsvalue.pyx":473 |
| 8627 | * def __set__(self, ids): |
| 8628 | * self.init_idlist() |
| 8629 | * if self._idlist is None: # <<<<<<<<<<<<<< |
| 8630 | * raise TypeError("Can't set idlist for this type of collection") |
| 8631 | * elif self._idlist is ids: |
| 8632 | */ |
| 8633 | __pyx_t_2 = (__pyx_v_self->_idlist == Py_None(&_Py_NoneStruct)); |
| 8634 | __pyx_t_3 = (__pyx_t_2 != 0); |
| 8635 | if (__pyx_t_3) { |
| 8636 | |
| 8637 | /* "xmmsvalue.pyx":474 |
| 8638 | * self.init_idlist() |
| 8639 | * if self._idlist is None: |
| 8640 | * raise TypeError("Can't set idlist for this type of collection") # <<<<<<<<<<<<<< |
| 8641 | * elif self._idlist is ids: |
| 8642 | * pass |
| 8643 | */ |
| 8644 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__15, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__8644; goto __pyx_L1_error;} |
| 8645 | __Pyx_GOTREF(__pyx_t_1); |
| 8646 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 8647 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8648 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__8648; goto __pyx_L1_error;} |
| 8649 | } |
| 8650 | |
| 8651 | /* "xmmsvalue.pyx":475 |
| 8652 | * if self._idlist is None: |
| 8653 | * raise TypeError("Can't set idlist for this type of collection") |
| 8654 | * elif self._idlist is ids: # <<<<<<<<<<<<<< |
| 8655 | * pass |
| 8656 | * else: |
| 8657 | */ |
| 8658 | __pyx_t_3 = (__pyx_v_self->_idlist == __pyx_v_ids); |
| 8659 | __pyx_t_2 = (__pyx_t_3 != 0); |
| 8660 | if (__pyx_t_2) { |
| 8661 | goto __pyx_L3; |
| 8662 | } |
| 8663 | /*else*/ { |
| 8664 | |
| 8665 | /* "xmmsvalue.pyx":478 |
| 8666 | * pass |
| 8667 | * else: |
| 8668 | * self._idlist.clear() # <<<<<<<<<<<<<< |
| 8669 | * self._idlist.extend(ids) |
| 8670 | * |
| 8671 | */ |
| 8672 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_idlist, __pyx_n_s_clear); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__8672; goto __pyx_L1_error;} |
| 8673 | __Pyx_GOTREF(__pyx_t_1); |
| 8674 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__8674; goto __pyx_L1_error;} |
| 8675 | __Pyx_GOTREF(__pyx_t_4); |
| 8676 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8677 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8678 | |
| 8679 | /* "xmmsvalue.pyx":479 |
| 8680 | * else: |
| 8681 | * self._idlist.clear() |
| 8682 | * self._idlist.extend(ids) # <<<<<<<<<<<<<< |
| 8683 | * |
| 8684 | * cpdef copy(self): |
| 8685 | */ |
| 8686 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_idlist, __pyx_n_s_extend); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__8686; goto __pyx_L1_error;} |
| 8687 | __Pyx_GOTREF(__pyx_t_4); |
| 8688 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__8688; goto __pyx_L1_error;} |
| 8689 | __Pyx_GOTREF(__pyx_t_1); |
| 8690 | __Pyx_INCREF(__pyx_v_ids)( ((PyObject*)(__pyx_v_ids))->ob_refcnt++); |
| 8691 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_ids)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_v_ids); |
| 8692 | __Pyx_GIVEREF(__pyx_v_ids); |
| 8693 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__8693; goto __pyx_L1_error;} |
| 8694 | __Pyx_GOTREF(__pyx_t_5); |
| 8695 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8696 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8697 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 8698 | } |
| 8699 | __pyx_L3:; |
| 8700 | |
| 8701 | /* "xmmsvalue.pyx":471 |
| 8702 | * self.init_idlist() |
| 8703 | * return self._idlist |
| 8704 | * def __set__(self, ids): # <<<<<<<<<<<<<< |
| 8705 | * self.init_idlist() |
| 8706 | * if self._idlist is None: |
| 8707 | */ |
| 8708 | |
| 8709 | /* function exit code */ |
| 8710 | __pyx_r = 0; |
| 8711 | goto __pyx_L0; |
| 8712 | __pyx_L1_error:; |
| 8713 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 8714 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 8715 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 8716 | __Pyx_AddTraceback("xmmsvalue.Collection.ids.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8717 | __pyx_r = -1; |
| 8718 | __pyx_L0:; |
| 8719 | __Pyx_RefNannyFinishContext(); |
| 8720 | return __pyx_r; |
| 8721 | } |
| 8722 | |
| 8723 | /* "xmmsvalue.pyx":481 |
| 8724 | * self._idlist.extend(ids) |
| 8725 | * |
| 8726 | * cpdef copy(self): # <<<<<<<<<<<<<< |
| 8727 | * cdef xmmsv_t *newcoll = xmmsv_copy(<xmmsv_t *>self.coll) |
| 8728 | * coll = create_coll(newcoll) |
| 8729 | */ |
| 8730 | |
| 8731 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_1copy(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 8732 | static PyObject *__pyx_f_9xmmsvalue_10Collection_copy(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, int __pyx_skip_dispatch) { |
| 8733 | xmmsv_t *__pyx_v_newcoll; |
| 8734 | PyObject *__pyx_v_coll = NULL((void*)0); |
| 8735 | PyObject *__pyx_r = NULL((void*)0); |
| 8736 | __Pyx_RefNannyDeclarations |
| 8737 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8738 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 8739 | int __pyx_lineno = 0; |
| 8740 | const char *__pyx_filename = NULL((void*)0); |
| 8741 | int __pyx_clineno = 0; |
| 8742 | __Pyx_RefNannySetupContext("copy", 0); |
| 8743 | /* Check if called by wrapper */ |
| 8744 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 8745 | /* Check if overridden in Python */ |
| 8746 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 8747 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__8747; goto __pyx_L1_error;} |
| 8748 | __Pyx_GOTREF(__pyx_t_1); |
| 8749 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_10Collection_1copy)) { |
| 8750 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 8751 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__8751; goto __pyx_L1_error;} |
| 8752 | __Pyx_GOTREF(__pyx_t_2); |
| 8753 | __pyx_r = __pyx_t_2; |
| 8754 | __pyx_t_2 = 0; |
| 8755 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8756 | goto __pyx_L0; |
| 8757 | } |
| 8758 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8759 | } |
| 8760 | |
| 8761 | /* "xmmsvalue.pyx":482 |
| 8762 | * |
| 8763 | * cpdef copy(self): |
| 8764 | * cdef xmmsv_t *newcoll = xmmsv_copy(<xmmsv_t *>self.coll) # <<<<<<<<<<<<<< |
| 8765 | * coll = create_coll(newcoll) |
| 8766 | * xmmsv_unref(newcoll) |
| 8767 | */ |
| 8768 | __pyx_v_newcoll = xmmsv_copy(((xmmsv_t *)__pyx_v_self->__pyx_base.coll)); |
| 8769 | |
| 8770 | /* "xmmsvalue.pyx":483 |
| 8771 | * cpdef copy(self): |
| 8772 | * cdef xmmsv_t *newcoll = xmmsv_copy(<xmmsv_t *>self.coll) |
| 8773 | * coll = create_coll(newcoll) # <<<<<<<<<<<<<< |
| 8774 | * xmmsv_unref(newcoll) |
| 8775 | * return coll |
| 8776 | */ |
| 8777 | __pyx_t_1 = __pyx_f_9xmmsvalue_create_coll(__pyx_v_newcoll); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 483; __pyx_clineno = __LINE__8777; goto __pyx_L1_error;} |
| 8778 | __Pyx_GOTREF(__pyx_t_1); |
| 8779 | __pyx_v_coll = __pyx_t_1; |
| 8780 | __pyx_t_1 = 0; |
| 8781 | |
| 8782 | /* "xmmsvalue.pyx":484 |
| 8783 | * cdef xmmsv_t *newcoll = xmmsv_copy(<xmmsv_t *>self.coll) |
| 8784 | * coll = create_coll(newcoll) |
| 8785 | * xmmsv_unref(newcoll) # <<<<<<<<<<<<<< |
| 8786 | * return coll |
| 8787 | * |
| 8788 | */ |
| 8789 | xmmsv_unref(__pyx_v_newcoll); |
| 8790 | |
| 8791 | /* "xmmsvalue.pyx":485 |
| 8792 | * coll = create_coll(newcoll) |
| 8793 | * xmmsv_unref(newcoll) |
| 8794 | * return coll # <<<<<<<<<<<<<< |
| 8795 | * |
| 8796 | * def __repr__(self): |
| 8797 | */ |
| 8798 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 8799 | __Pyx_INCREF(__pyx_v_coll)( ((PyObject*)(__pyx_v_coll))->ob_refcnt++); |
| 8800 | __pyx_r = __pyx_v_coll; |
| 8801 | goto __pyx_L0; |
| 8802 | |
| 8803 | /* "xmmsvalue.pyx":481 |
| 8804 | * self._idlist.extend(ids) |
| 8805 | * |
| 8806 | * cpdef copy(self): # <<<<<<<<<<<<<< |
| 8807 | * cdef xmmsv_t *newcoll = xmmsv_copy(<xmmsv_t *>self.coll) |
| 8808 | * coll = create_coll(newcoll) |
| 8809 | */ |
| 8810 | |
| 8811 | /* function exit code */ |
| 8812 | __pyx_L1_error:; |
| 8813 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 8814 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 8815 | __Pyx_AddTraceback("xmmsvalue.Collection.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8816 | __pyx_r = 0; |
| 8817 | __pyx_L0:; |
| 8818 | __Pyx_XDECREF(__pyx_v_coll)do { if ((__pyx_v_coll) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_coll))->ob_refcnt != 0) ; else ( (*(((PyObject* )((PyObject *)(__pyx_v_coll)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(__pyx_v_coll)))); } while (0); } while (0); |
| 8819 | __Pyx_XGIVEREF(__pyx_r); |
| 8820 | __Pyx_RefNannyFinishContext(); |
| 8821 | return __pyx_r; |
| 8822 | } |
| 8823 | |
| 8824 | /* Python wrapper */ |
| 8825 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_1copy(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 8826 | static char __pyx_doc_9xmmsvalue_10Collection_copy[] = "Collection.copy(self)"; |
| 8827 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_1copy(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 8828 | PyObject *__pyx_r = 0; |
| 8829 | __Pyx_RefNannyDeclarations |
| 8830 | __Pyx_RefNannySetupContext("copy (wrapper)", 0); |
| 8831 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_copy(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self)); |
| 8832 | |
| 8833 | /* function exit code */ |
| 8834 | __Pyx_RefNannyFinishContext(); |
| 8835 | return __pyx_r; |
| 8836 | } |
| 8837 | |
| 8838 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_copy(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 8839 | PyObject *__pyx_r = NULL((void*)0); |
| 8840 | __Pyx_RefNannyDeclarations |
| 8841 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8842 | int __pyx_lineno = 0; |
| 8843 | const char *__pyx_filename = NULL((void*)0); |
| 8844 | int __pyx_clineno = 0; |
| 8845 | __Pyx_RefNannySetupContext("copy", 0); |
| 8846 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 8847 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_Collection *)__pyx_v_self->__pyx_base.__pyx_vtab)->copy(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__8847; goto __pyx_L1_error;} |
| 8848 | __Pyx_GOTREF(__pyx_t_1); |
| 8849 | __pyx_r = __pyx_t_1; |
| 8850 | __pyx_t_1 = 0; |
| 8851 | goto __pyx_L0; |
| 8852 | |
| 8853 | /* function exit code */ |
| 8854 | __pyx_L1_error:; |
| 8855 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 8856 | __Pyx_AddTraceback("xmmsvalue.Collection.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 8857 | __pyx_r = NULL((void*)0); |
| 8858 | __pyx_L0:; |
| 8859 | __Pyx_XGIVEREF(__pyx_r); |
| 8860 | __Pyx_RefNannyFinishContext(); |
| 8861 | return __pyx_r; |
| 8862 | } |
| 8863 | |
| 8864 | /* "xmmsvalue.pyx":487 |
| 8865 | * return coll |
| 8866 | * |
| 8867 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 8868 | * atr = [] |
| 8869 | * operands = [] |
| 8870 | */ |
| 8871 | |
| 8872 | /* Python wrapper */ |
| 8873 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_3__repr__(PyObject *__pyx_v_self); /*proto*/ |
| 8874 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_3__repr__(PyObject *__pyx_v_self) { |
| 8875 | PyObject *__pyx_r = 0; |
| 8876 | __Pyx_RefNannyDeclarations |
| 8877 | __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); |
| 8878 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_2__repr__(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self)); |
| 8879 | |
| 8880 | /* function exit code */ |
| 8881 | __Pyx_RefNannyFinishContext(); |
| 8882 | return __pyx_r; |
| 8883 | } |
| 8884 | |
| 8885 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_2__repr__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 8886 | PyObject *__pyx_v_atr = NULL((void*)0); |
| 8887 | PyObject *__pyx_v_operands = NULL((void*)0); |
| 8888 | PyObject *__pyx_v_o = NULL((void*)0); |
| 8889 | PyObject *__pyx_v_k = NULL((void*)0); |
| 8890 | PyObject *__pyx_v_v = NULL((void*)0); |
| 8891 | PyObject *__pyx_r = NULL((void*)0); |
| 8892 | __Pyx_RefNannyDeclarations |
| 8893 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 8894 | int __pyx_t_2; |
| 8895 | int __pyx_t_3; |
| 8896 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 8897 | int __pyx_t_5; |
| 8898 | Py_ssize_t __pyx_t_6; |
| 8899 | PyObject *(*__pyx_t_7)(PyObject *); |
| 8900 | Py_ssize_t __pyx_t_8; |
| 8901 | int __pyx_t_9; |
| 8902 | PyObject *__pyx_t_10 = NULL((void*)0); |
| 8903 | int __pyx_t_11; |
| 8904 | int __pyx_lineno = 0; |
| 8905 | const char *__pyx_filename = NULL((void*)0); |
| 8906 | int __pyx_clineno = 0; |
| 8907 | __Pyx_RefNannySetupContext("__repr__", 0); |
| 8908 | |
| 8909 | /* "xmmsvalue.pyx":488 |
| 8910 | * |
| 8911 | * def __repr__(self): |
| 8912 | * atr = [] # <<<<<<<<<<<<<< |
| 8913 | * operands = [] |
| 8914 | * if self.ids is not None: |
| 8915 | */ |
| 8916 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 488; __pyx_clineno = __LINE__8916; goto __pyx_L1_error;} |
| 8917 | __Pyx_GOTREF(__pyx_t_1); |
| 8918 | __pyx_v_atr = ((PyObject*)__pyx_t_1); |
| 8919 | __pyx_t_1 = 0; |
| 8920 | |
| 8921 | /* "xmmsvalue.pyx":489 |
| 8922 | * def __repr__(self): |
| 8923 | * atr = [] |
| 8924 | * operands = [] # <<<<<<<<<<<<<< |
| 8925 | * if self.ids is not None: |
| 8926 | * atr.append("ids=%r" % self.ids) |
| 8927 | */ |
| 8928 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__8928; goto __pyx_L1_error;} |
| 8929 | __Pyx_GOTREF(__pyx_t_1); |
| 8930 | __pyx_v_operands = ((PyObject*)__pyx_t_1); |
| 8931 | __pyx_t_1 = 0; |
| 8932 | |
| 8933 | /* "xmmsvalue.pyx":490 |
| 8934 | * atr = [] |
| 8935 | * operands = [] |
| 8936 | * if self.ids is not None: # <<<<<<<<<<<<<< |
| 8937 | * atr.append("ids=%r" % self.ids) |
| 8938 | * for o in self.operands: |
| 8939 | */ |
| 8940 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ids); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__8940; goto __pyx_L1_error;} |
| 8941 | __Pyx_GOTREF(__pyx_t_1); |
| 8942 | __pyx_t_2 = (__pyx_t_1 != Py_None(&_Py_NoneStruct)); |
| 8943 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8944 | __pyx_t_3 = (__pyx_t_2 != 0); |
| 8945 | if (__pyx_t_3) { |
| 8946 | |
| 8947 | /* "xmmsvalue.pyx":491 |
| 8948 | * operands = [] |
| 8949 | * if self.ids is not None: |
| 8950 | * atr.append("ids=%r" % self.ids) # <<<<<<<<<<<<<< |
| 8951 | * for o in self.operands: |
| 8952 | * operands.append(repr(o)) |
| 8953 | */ |
| 8954 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ids); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__8954; goto __pyx_L1_error;} |
| 8955 | __Pyx_GOTREF(__pyx_t_1); |
| 8956 | __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_ids_r, __pyx_t_1)PyString_Format(__pyx_kp_s_ids_r, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__8956; goto __pyx_L1_error;} |
| 8957 | __Pyx_GOTREF(__pyx_t_4); |
| 8958 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 8959 | __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_atr, __pyx_t_4); if (unlikely(__pyx_t_5 == -1)__builtin_expect(!!(__pyx_t_5 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 491; __pyx_clineno = __LINE__8959; goto __pyx_L1_error;} |
| 8960 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8961 | goto __pyx_L3; |
| 8962 | } |
| 8963 | __pyx_L3:; |
| 8964 | |
| 8965 | /* "xmmsvalue.pyx":492 |
| 8966 | * if self.ids is not None: |
| 8967 | * atr.append("ids=%r" % self.ids) |
| 8968 | * for o in self.operands: # <<<<<<<<<<<<<< |
| 8969 | * operands.append(repr(o)) |
| 8970 | * if operands: |
| 8971 | */ |
| 8972 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_operands); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__8972; goto __pyx_L1_error;} |
| 8973 | __Pyx_GOTREF(__pyx_t_4); |
| 8974 | if (PyList_CheckExact(__pyx_t_4)((((PyObject*)(__pyx_t_4))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_t_4)((((PyObject*)(__pyx_t_4))->ob_type) == &PyTuple_Type)) { |
| 8975 | __pyx_t_1 = __pyx_t_4; __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); __pyx_t_6 = 0; |
| 8976 | __pyx_t_7 = NULL((void*)0); |
| 8977 | } else { |
| 8978 | __pyx_t_6 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__8978; goto __pyx_L1_error;} |
| 8979 | __Pyx_GOTREF(__pyx_t_1); |
| 8980 | __pyx_t_7 = Py_TYPE(__pyx_t_1)(((PyObject*)(__pyx_t_1))->ob_type)->tp_iternext; |
| 8981 | } |
| 8982 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 8983 | for (;;) { |
| 8984 | if (!__pyx_t_7 && PyList_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyList_Type)) { |
| 8985 | if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 8986 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 8987 | __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6)(((PyListObject *)(__pyx_t_1))->ob_item[__pyx_t_6]); __Pyx_INCREF(__pyx_t_4)( ((PyObject*)(__pyx_t_4))->ob_refcnt++); __pyx_t_6++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__8987; goto __pyx_L1_error;} |
| 8988 | #else |
| 8989 | __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_6)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_6) ); __pyx_t_6++; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__8989; goto __pyx_L1_error;} |
| 8990 | #endif |
| 8991 | } else if (!__pyx_t_7 && PyTuple_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyTuple_Type)) { |
| 8992 | if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 8993 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 8994 | __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_6)(((PyTupleObject *)(__pyx_t_1))->ob_item[__pyx_t_6]); __Pyx_INCREF(__pyx_t_4)( ((PyObject*)(__pyx_t_4))->ob_refcnt++); __pyx_t_6++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__8994; goto __pyx_L1_error;} |
| 8995 | #else |
| 8996 | __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_6)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_6) ); __pyx_t_6++; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__8996; goto __pyx_L1_error;} |
| 8997 | #endif |
| 8998 | } else { |
| 8999 | __pyx_t_4 = __pyx_t_7(__pyx_t_1); |
| 9000 | if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) { |
| 9001 | PyObject* exc_type = PyErr_Occurred(); |
| 9002 | if (exc_type) { |
| 9003 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 9004 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__9004; goto __pyx_L1_error;} |
| 9005 | } |
| 9006 | break; |
| 9007 | } |
| 9008 | __Pyx_GOTREF(__pyx_t_4); |
| 9009 | } |
| 9010 | __Pyx_XDECREF_SET(__pyx_v_o, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_v_o; __pyx_v_o = __pyx_t_4 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 9011 | __pyx_t_4 = 0; |
| 9012 | |
| 9013 | /* "xmmsvalue.pyx":493 |
| 9014 | * atr.append("ids=%r" % self.ids) |
| 9015 | * for o in self.operands: |
| 9016 | * operands.append(repr(o)) # <<<<<<<<<<<<<< |
| 9017 | * if operands: |
| 9018 | * atr.append("operands=[%s]" % ", ".join(operands)) |
| 9019 | */ |
| 9020 | __pyx_t_4 = PyObject_Repr(__pyx_v_o); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__9020; goto __pyx_L1_error;} |
| 9021 | __Pyx_GOTREF(__pyx_t_4); |
| 9022 | __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_operands, __pyx_t_4); if (unlikely(__pyx_t_5 == -1)__builtin_expect(!!(__pyx_t_5 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 493; __pyx_clineno = __LINE__9022; goto __pyx_L1_error;} |
| 9023 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9024 | } |
| 9025 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 9026 | |
| 9027 | /* "xmmsvalue.pyx":494 |
| 9028 | * for o in self.operands: |
| 9029 | * operands.append(repr(o)) |
| 9030 | * if operands: # <<<<<<<<<<<<<< |
| 9031 | * atr.append("operands=[%s]" % ", ".join(operands)) |
| 9032 | * for k,v in self.attributes.iteritems(): |
| 9033 | */ |
| 9034 | __pyx_t_3 = (__pyx_v_operands != Py_None(&_Py_NoneStruct)) && (PyList_GET_SIZE(__pyx_v_operands)(((PyVarObject*)(__pyx_v_operands))->ob_size) != 0); |
| 9035 | if (__pyx_t_3) { |
| 9036 | |
| 9037 | /* "xmmsvalue.pyx":495 |
| 9038 | * operands.append(repr(o)) |
| 9039 | * if operands: |
| 9040 | * atr.append("operands=[%s]" % ", ".join(operands)) # <<<<<<<<<<<<<< |
| 9041 | * for k,v in self.attributes.iteritems(): |
| 9042 | * atr.append("%s=%s" % (k, repr(v))) |
| 9043 | */ |
| 9044 | __pyx_t_1 = __Pyx_PyString_Join_PyString_Join(__pyx_kp_s__16, __pyx_v_operands); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__9044; goto __pyx_L1_error;} |
| 9045 | __Pyx_GOTREF(__pyx_t_1); |
| 9046 | __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_operands_s, __pyx_t_1)PyString_Format(__pyx_kp_s_operands_s, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__9046; goto __pyx_L1_error;} |
| 9047 | __Pyx_GOTREF(__pyx_t_4); |
| 9048 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 9049 | __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_atr, __pyx_t_4); if (unlikely(__pyx_t_5 == -1)__builtin_expect(!!(__pyx_t_5 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__9049; goto __pyx_L1_error;} |
| 9050 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9051 | goto __pyx_L6; |
| 9052 | } |
| 9053 | __pyx_L6:; |
| 9054 | |
| 9055 | /* "xmmsvalue.pyx":496 |
| 9056 | * if operands: |
| 9057 | * atr.append("operands=[%s]" % ", ".join(operands)) |
| 9058 | * for k,v in self.attributes.iteritems(): # <<<<<<<<<<<<<< |
| 9059 | * atr.append("%s=%s" % (k, repr(v))) |
| 9060 | * return "%s(%s)" % (self.__class__.__name__, ", ".join(atr)) |
| 9061 | */ |
| 9062 | __pyx_t_6 = 0; |
| 9063 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_attributes); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; __pyx_clineno = __LINE__9063; goto __pyx_L1_error;} |
| 9064 | __Pyx_GOTREF(__pyx_t_1); |
| 9065 | if (unlikely(__pyx_t_1 == Py_None)__builtin_expect(!!(__pyx_t_1 == (&_Py_NoneStruct)), 0)) { |
| 9066 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "iteritems"); |
| 9067 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; __pyx_clineno = __LINE__9067; goto __pyx_L1_error;} |
| 9068 | } |
| 9069 | __pyx_t_10 = __Pyx_dict_iterator(__pyx_t_1, 0, __pyx_n_s_iteritems, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; __pyx_clineno = __LINE__9069; goto __pyx_L1_error;} |
| 9070 | __Pyx_GOTREF(__pyx_t_10); |
| 9071 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 9072 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 9073 | __pyx_t_4 = __pyx_t_10; |
| 9074 | __pyx_t_10 = 0; |
| 9075 | while (1) { |
| 9076 | __pyx_t_11 = __Pyx_dict_iter_next(__pyx_t_4, __pyx_t_8, &__pyx_t_6, &__pyx_t_10, &__pyx_t_1, NULL((void*)0), __pyx_t_9); |
| 9077 | if (unlikely(__pyx_t_11 == 0)__builtin_expect(!!(__pyx_t_11 == 0), 0)) break; |
| 9078 | if (unlikely(__pyx_t_11 == -1)__builtin_expect(!!(__pyx_t_11 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; __pyx_clineno = __LINE__9078; goto __pyx_L1_error;} |
| 9079 | __Pyx_GOTREF(__pyx_t_10); |
| 9080 | __Pyx_GOTREF(__pyx_t_1); |
| 9081 | __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_10)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_t_10 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 9082 | __pyx_t_10 = 0; |
| 9083 | __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_v; __pyx_v_v = __pyx_t_1 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 9084 | __pyx_t_1 = 0; |
| 9085 | |
| 9086 | /* "xmmsvalue.pyx":497 |
| 9087 | * atr.append("operands=[%s]" % ", ".join(operands)) |
| 9088 | * for k,v in self.attributes.iteritems(): |
| 9089 | * atr.append("%s=%s" % (k, repr(v))) # <<<<<<<<<<<<<< |
| 9090 | * return "%s(%s)" % (self.__class__.__name__, ", ".join(atr)) |
| 9091 | * |
| 9092 | */ |
| 9093 | __pyx_t_1 = PyObject_Repr(__pyx_v_v); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__9093; goto __pyx_L1_error;} |
| 9094 | __Pyx_GOTREF(__pyx_t_1); |
| 9095 | __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__9095; goto __pyx_L1_error;} |
| 9096 | __Pyx_GOTREF(__pyx_t_10); |
| 9097 | __Pyx_INCREF(__pyx_v_k)( ((PyObject*)(__pyx_v_k))->ob_refcnt++); |
| 9098 | PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_v_k)(((PyTupleObject *)(__pyx_t_10))->ob_item[0] = __pyx_v_k); |
| 9099 | __Pyx_GIVEREF(__pyx_v_k); |
| 9100 | PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_10))->ob_item[1] = __pyx_t_1); |
| 9101 | __Pyx_GIVEREF(__pyx_t_1); |
| 9102 | __pyx_t_1 = 0; |
| 9103 | __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_s_s, __pyx_t_10)PyString_Format(__pyx_kp_s_s_s, __pyx_t_10); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__9103; goto __pyx_L1_error;} |
| 9104 | __Pyx_GOTREF(__pyx_t_1); |
| 9105 | __Pyx_DECREF(__pyx_t_10)do { if ( --((PyObject*)(__pyx_t_10))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_10)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_10)))); } while (0); __pyx_t_10 = 0; |
| 9106 | __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_atr, __pyx_t_1); if (unlikely(__pyx_t_5 == -1)__builtin_expect(!!(__pyx_t_5 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__9106; goto __pyx_L1_error;} |
| 9107 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 9108 | } |
| 9109 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9110 | |
| 9111 | /* "xmmsvalue.pyx":498 |
| 9112 | * for k,v in self.attributes.iteritems(): |
| 9113 | * atr.append("%s=%s" % (k, repr(v))) |
| 9114 | * return "%s(%s)" % (self.__class__.__name__, ", ".join(atr)) # <<<<<<<<<<<<<< |
| 9115 | * |
| 9116 | * def __or__(self, other): # | |
| 9117 | */ |
| 9118 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 9119 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__9119; goto __pyx_L1_error;} |
| 9120 | __Pyx_GOTREF(__pyx_t_4); |
| 9121 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__9121; goto __pyx_L1_error;} |
| 9122 | __Pyx_GOTREF(__pyx_t_1); |
| 9123 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9124 | __pyx_t_4 = __Pyx_PyString_Join_PyString_Join(__pyx_kp_s__16, __pyx_v_atr); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__9124; goto __pyx_L1_error;} |
| 9125 | __Pyx_GOTREF(__pyx_t_4); |
| 9126 | __pyx_t_10 = PyTuple_New(2); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__9126; goto __pyx_L1_error;} |
| 9127 | __Pyx_GOTREF(__pyx_t_10); |
| 9128 | PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_10))->ob_item[0] = __pyx_t_1); |
| 9129 | __Pyx_GIVEREF(__pyx_t_1); |
| 9130 | PyTuple_SET_ITEM(__pyx_t_10, 1, __pyx_t_4)(((PyTupleObject *)(__pyx_t_10))->ob_item[1] = __pyx_t_4); |
| 9131 | __Pyx_GIVEREF(__pyx_t_4); |
| 9132 | __pyx_t_1 = 0; |
| 9133 | __pyx_t_4 = 0; |
| 9134 | __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_s_s_2, __pyx_t_10)PyString_Format(__pyx_kp_s_s_s_2, __pyx_t_10); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 498; __pyx_clineno = __LINE__9134; goto __pyx_L1_error;} |
| 9135 | __Pyx_GOTREF(__pyx_t_4); |
| 9136 | __Pyx_DECREF(__pyx_t_10)do { if ( --((PyObject*)(__pyx_t_10))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_10)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_10)))); } while (0); __pyx_t_10 = 0; |
| 9137 | __pyx_r = __pyx_t_4; |
| 9138 | __pyx_t_4 = 0; |
| 9139 | goto __pyx_L0; |
| 9140 | |
| 9141 | /* "xmmsvalue.pyx":487 |
| 9142 | * return coll |
| 9143 | * |
| 9144 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 9145 | * atr = [] |
| 9146 | * operands = [] |
| 9147 | */ |
| 9148 | |
| 9149 | /* function exit code */ |
| 9150 | __pyx_L1_error:; |
| 9151 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 9152 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 9153 | __Pyx_XDECREF(__pyx_t_10)do { if ((__pyx_t_10) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_10))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_10)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_10)))); } while (0); } while (0); |
| 9154 | __Pyx_AddTraceback("xmmsvalue.Collection.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 9155 | __pyx_r = NULL((void*)0); |
| 9156 | __pyx_L0:; |
| 9157 | __Pyx_XDECREF(__pyx_v_atr)do { if ((__pyx_v_atr) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_atr))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(__pyx_v_atr)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_atr)))); } while (0); } while (0); |
| 9158 | __Pyx_XDECREF(__pyx_v_operands)do { if ((__pyx_v_operands) == ((void*)0)) ; else do { if ( -- ((PyObject*)(__pyx_v_operands))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(__pyx_v_operands)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_operands)))); } while (0); } while (0); |
| 9159 | __Pyx_XDECREF(__pyx_v_o)do { if ((__pyx_v_o) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_o))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_o)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_o)))); } while (0); } while (0); |
| 9160 | __Pyx_XDECREF(__pyx_v_k)do { if ((__pyx_v_k) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_k))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_k)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_k)))); } while (0); } while (0); |
| 9161 | __Pyx_XDECREF(__pyx_v_v)do { if ((__pyx_v_v) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_v))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_v)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_v)))); } while (0); } while (0); |
| 9162 | __Pyx_XGIVEREF(__pyx_r); |
| 9163 | __Pyx_RefNannyFinishContext(); |
| 9164 | return __pyx_r; |
| 9165 | } |
| 9166 | |
| 9167 | /* "xmmsvalue.pyx":500 |
| 9168 | * return "%s(%s)" % (self.__class__.__name__, ", ".join(atr)) |
| 9169 | * |
| 9170 | * def __or__(self, other): # | # <<<<<<<<<<<<<< |
| 9171 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): |
| 9172 | * raise TypeError("Unsupported operand type(s) for |: %r and %r" |
| 9173 | */ |
| 9174 | |
| 9175 | /* Python wrapper */ |
| 9176 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_5__or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ |
| 9177 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_5__or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { |
| 9178 | PyObject *__pyx_r = 0; |
| 9179 | __Pyx_RefNannyDeclarations |
| 9180 | __Pyx_RefNannySetupContext("__or__ (wrapper)", 0); |
| 9181 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_4__or__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other)); |
| 9182 | |
| 9183 | /* function exit code */ |
| 9184 | __Pyx_RefNannyFinishContext(); |
| 9185 | return __pyx_r; |
| 9186 | } |
| 9187 | |
| 9188 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_4__or__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { |
| 9189 | PyObject *__pyx_v_u = NULL((void*)0); |
| 9190 | PyObject *__pyx_v_op = NULL((void*)0); |
| 9191 | PyObject *__pyx_r = NULL((void*)0); |
| 9192 | __Pyx_RefNannyDeclarations |
| 9193 | int __pyx_t_1; |
| 9194 | int __pyx_t_2; |
| 9195 | int __pyx_t_3; |
| 9196 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 9197 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 9198 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 9199 | Py_ssize_t __pyx_t_7; |
| 9200 | PyObject *__pyx_t_8 = NULL((void*)0); |
| 9201 | int __pyx_t_9; |
| 9202 | int __pyx_lineno = 0; |
| 9203 | const char *__pyx_filename = NULL((void*)0); |
| 9204 | int __pyx_clineno = 0; |
| 9205 | __Pyx_RefNannySetupContext("__or__", 0); |
| 9206 | |
| 9207 | /* "xmmsvalue.pyx":501 |
| 9208 | * |
| 9209 | * def __or__(self, other): # | |
| 9210 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): # <<<<<<<<<<<<<< |
| 9211 | * raise TypeError("Unsupported operand type(s) for |: %r and %r" |
| 9212 | * % (self.__class__.__name__, other.__class__.__name__)) |
| 9213 | */ |
| 9214 | __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_self, ((PyObject*)__pyx_ptype_9xmmsvalue_Collection))((((PyObject*)(__pyx_v_self))->ob_type) == ((PyTypeObject * )((PyObject*)__pyx_ptype_9xmmsvalue_Collection)) || PyType_IsSubtype ((((PyObject*)(__pyx_v_self))->ob_type), ((PyTypeObject *) ((PyObject*)__pyx_ptype_9xmmsvalue_Collection)))); |
| 9215 | if ((__pyx_t_1 != 0)) { |
| 9216 | __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_other, ((PyObject*)__pyx_ptype_9xmmsvalue_Collection))((((PyObject*)(__pyx_v_other))->ob_type) == ((PyTypeObject *)((PyObject*)__pyx_ptype_9xmmsvalue_Collection)) || PyType_IsSubtype ((((PyObject*)(__pyx_v_other))->ob_type), ((PyTypeObject * )((PyObject*)__pyx_ptype_9xmmsvalue_Collection)))); |
| 9217 | __pyx_t_3 = (__pyx_t_2 != 0); |
| 9218 | } else { |
| 9219 | __pyx_t_3 = (__pyx_t_1 != 0); |
| 9220 | } |
| 9221 | __pyx_t_1 = ((!__pyx_t_3) != 0); |
| 9222 | if (__pyx_t_1) { |
| 9223 | |
| 9224 | /* "xmmsvalue.pyx":503 |
| 9225 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): |
| 9226 | * raise TypeError("Unsupported operand type(s) for |: %r and %r" |
| 9227 | * % (self.__class__.__name__, other.__class__.__name__)) # <<<<<<<<<<<<<< |
| 9228 | * u = Union() |
| 9229 | * for op in (self, other): |
| 9230 | */ |
| 9231 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__9231; goto __pyx_L1_error;} |
| 9232 | __Pyx_GOTREF(__pyx_t_4); |
| 9233 | __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__9233; goto __pyx_L1_error;} |
| 9234 | __Pyx_GOTREF(__pyx_t_5); |
| 9235 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9236 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__9236; goto __pyx_L1_error;} |
| 9237 | __Pyx_GOTREF(__pyx_t_4); |
| 9238 | __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__9238; goto __pyx_L1_error;} |
| 9239 | __Pyx_GOTREF(__pyx_t_6); |
| 9240 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9241 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__9241; goto __pyx_L1_error;} |
| 9242 | __Pyx_GOTREF(__pyx_t_4); |
| 9243 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_t_5); |
| 9244 | __Pyx_GIVEREF(__pyx_t_5); |
| 9245 | PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6)(((PyTupleObject *)(__pyx_t_4))->ob_item[1] = __pyx_t_6); |
| 9246 | __Pyx_GIVEREF(__pyx_t_6); |
| 9247 | __pyx_t_5 = 0; |
| 9248 | __pyx_t_6 = 0; |
| 9249 | __pyx_t_6 = __Pyx_PyString_Format(__pyx_kp_s_Unsupported_operand_type_s_for_r, __pyx_t_4)PyString_Format(__pyx_kp_s_Unsupported_operand_type_s_for_r, __pyx_t_4 ); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__9249; goto __pyx_L1_error;} |
| 9250 | __Pyx_GOTREF(__pyx_t_6); |
| 9251 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9252 | |
| 9253 | /* "xmmsvalue.pyx":502 |
| 9254 | * def __or__(self, other): # | |
| 9255 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): |
| 9256 | * raise TypeError("Unsupported operand type(s) for |: %r and %r" # <<<<<<<<<<<<<< |
| 9257 | * % (self.__class__.__name__, other.__class__.__name__)) |
| 9258 | * u = Union() |
| 9259 | */ |
| 9260 | __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__9260; goto __pyx_L1_error;} |
| 9261 | __Pyx_GOTREF(__pyx_t_4); |
| 9262 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_t_6); |
| 9263 | __Pyx_GIVEREF(__pyx_t_6); |
| 9264 | __pyx_t_6 = 0; |
| 9265 | __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__9265; goto __pyx_L1_error;} |
| 9266 | __Pyx_GOTREF(__pyx_t_6); |
| 9267 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9268 | __Pyx_Raise(__pyx_t_6, 0, 0, 0); |
| 9269 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 9270 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__9270; goto __pyx_L1_error;} |
| 9271 | } |
| 9272 | |
| 9273 | /* "xmmsvalue.pyx":504 |
| 9274 | * raise TypeError("Unsupported operand type(s) for |: %r and %r" |
| 9275 | * % (self.__class__.__name__, other.__class__.__name__)) |
| 9276 | * u = Union() # <<<<<<<<<<<<<< |
| 9277 | * for op in (self, other): |
| 9278 | * if isinstance(op, Union): |
| 9279 | */ |
| 9280 | __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Union); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__9280; goto __pyx_L1_error;} |
| 9281 | __Pyx_GOTREF(__pyx_t_6); |
| 9282 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__9282; goto __pyx_L1_error;} |
| 9283 | __Pyx_GOTREF(__pyx_t_4); |
| 9284 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 9285 | __pyx_v_u = __pyx_t_4; |
| 9286 | __pyx_t_4 = 0; |
| 9287 | |
| 9288 | /* "xmmsvalue.pyx":505 |
| 9289 | * % (self.__class__.__name__, other.__class__.__name__)) |
| 9290 | * u = Union() |
| 9291 | * for op in (self, other): # <<<<<<<<<<<<<< |
| 9292 | * if isinstance(op, Union): |
| 9293 | * u.operands.extend(op.operands) |
| 9294 | */ |
| 9295 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__9295; goto __pyx_L1_error;} |
| 9296 | __Pyx_GOTREF(__pyx_t_4); |
| 9297 | __Pyx_INCREF(__pyx_v_self)( ((PyObject*)(__pyx_v_self))->ob_refcnt++); |
| 9298 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_v_self ); |
| 9299 | __Pyx_GIVEREF(__pyx_v_self); |
| 9300 | __Pyx_INCREF(__pyx_v_other)( ((PyObject*)(__pyx_v_other))->ob_refcnt++); |
| 9301 | PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_other)(((PyTupleObject *)(__pyx_t_4))->ob_item[1] = __pyx_v_other ); |
| 9302 | __Pyx_GIVEREF(__pyx_v_other); |
| 9303 | __pyx_t_6 = __pyx_t_4; __Pyx_INCREF(__pyx_t_6)( ((PyObject*)(__pyx_t_6))->ob_refcnt++); __pyx_t_7 = 0; |
| 9304 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9305 | for (;;) { |
| 9306 | if (__pyx_t_7 >= 2) break; |
| 9307 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 9308 | __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7)(((PyTupleObject *)(__pyx_t_6))->ob_item[__pyx_t_7]); __Pyx_INCREF(__pyx_t_4)( ((PyObject*)(__pyx_t_4))->ob_refcnt++); __pyx_t_7++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__9308; goto __pyx_L1_error;} |
| 9309 | #else |
| 9310 | __pyx_t_4 = PySequence_ITEM(__pyx_t_6, __pyx_t_7)( (((PyObject*)(__pyx_t_6))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_6, __pyx_t_7) ); __pyx_t_7++; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__9310; goto __pyx_L1_error;} |
| 9311 | #endif |
| 9312 | __Pyx_XDECREF_SET(__pyx_v_op, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_v_op; __pyx_v_op = __pyx_t_4 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 9313 | __pyx_t_4 = 0; |
| 9314 | |
| 9315 | /* "xmmsvalue.pyx":506 |
| 9316 | * u = Union() |
| 9317 | * for op in (self, other): |
| 9318 | * if isinstance(op, Union): # <<<<<<<<<<<<<< |
| 9319 | * u.operands.extend(op.operands) |
| 9320 | * else: |
| 9321 | */ |
| 9322 | __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Union); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__9322; goto __pyx_L1_error;} |
| 9323 | __Pyx_GOTREF(__pyx_t_4); |
| 9324 | __pyx_t_1 = PyObject_IsInstance(__pyx_v_op, __pyx_t_4); if (unlikely(__pyx_t_1 == -1)__builtin_expect(!!(__pyx_t_1 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 506; __pyx_clineno = __LINE__9324; goto __pyx_L1_error;} |
| 9325 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9326 | __pyx_t_3 = (__pyx_t_1 != 0); |
| 9327 | if (__pyx_t_3) { |
| 9328 | |
| 9329 | /* "xmmsvalue.pyx":507 |
| 9330 | * for op in (self, other): |
| 9331 | * if isinstance(op, Union): |
| 9332 | * u.operands.extend(op.operands) # <<<<<<<<<<<<<< |
| 9333 | * else: |
| 9334 | * u.operands.append(op) |
| 9335 | */ |
| 9336 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_u, __pyx_n_s_operands); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__9336; goto __pyx_L1_error;} |
| 9337 | __Pyx_GOTREF(__pyx_t_4); |
| 9338 | __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_extend); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__9338; goto __pyx_L1_error;} |
| 9339 | __Pyx_GOTREF(__pyx_t_5); |
| 9340 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9341 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_op, __pyx_n_s_operands); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__9341; goto __pyx_L1_error;} |
| 9342 | __Pyx_GOTREF(__pyx_t_4); |
| 9343 | __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__9343; goto __pyx_L1_error;} |
| 9344 | __Pyx_GOTREF(__pyx_t_8); |
| 9345 | PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4)(((PyTupleObject *)(__pyx_t_8))->ob_item[0] = __pyx_t_4); |
| 9346 | __Pyx_GIVEREF(__pyx_t_4); |
| 9347 | __pyx_t_4 = 0; |
| 9348 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__9348; goto __pyx_L1_error;} |
| 9349 | __Pyx_GOTREF(__pyx_t_4); |
| 9350 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 9351 | __Pyx_DECREF(__pyx_t_8)do { if ( --((PyObject*)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_8)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while ( 0); __pyx_t_8 = 0; |
| 9352 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9353 | goto __pyx_L6; |
| 9354 | } |
| 9355 | /*else*/ { |
| 9356 | |
| 9357 | /* "xmmsvalue.pyx":509 |
| 9358 | * u.operands.extend(op.operands) |
| 9359 | * else: |
| 9360 | * u.operands.append(op) # <<<<<<<<<<<<<< |
| 9361 | * return u |
| 9362 | * |
| 9363 | */ |
| 9364 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_u, __pyx_n_s_operands); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__9364; goto __pyx_L1_error;} |
| 9365 | __Pyx_GOTREF(__pyx_t_4); |
| 9366 | __pyx_t_9 = __Pyx_PyObject_Append(__pyx_t_4, __pyx_v_op); if (unlikely(__pyx_t_9 == -1)__builtin_expect(!!(__pyx_t_9 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__9366; goto __pyx_L1_error;} |
| 9367 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9368 | } |
| 9369 | __pyx_L6:; |
| 9370 | } |
| 9371 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 9372 | |
| 9373 | /* "xmmsvalue.pyx":510 |
| 9374 | * else: |
| 9375 | * u.operands.append(op) |
| 9376 | * return u # <<<<<<<<<<<<<< |
| 9377 | * |
| 9378 | * def __and__(self, other): # & |
| 9379 | */ |
| 9380 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 9381 | __Pyx_INCREF(__pyx_v_u)( ((PyObject*)(__pyx_v_u))->ob_refcnt++); |
| 9382 | __pyx_r = __pyx_v_u; |
| 9383 | goto __pyx_L0; |
| 9384 | |
| 9385 | /* "xmmsvalue.pyx":500 |
| 9386 | * return "%s(%s)" % (self.__class__.__name__, ", ".join(atr)) |
| 9387 | * |
| 9388 | * def __or__(self, other): # | # <<<<<<<<<<<<<< |
| 9389 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): |
| 9390 | * raise TypeError("Unsupported operand type(s) for |: %r and %r" |
| 9391 | */ |
| 9392 | |
| 9393 | /* function exit code */ |
| 9394 | __pyx_L1_error:; |
| 9395 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 9396 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 9397 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 9398 | __Pyx_XDECREF(__pyx_t_8)do { if ((__pyx_t_8) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_8)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while (0); } while (0); |
| 9399 | __Pyx_AddTraceback("xmmsvalue.Collection.__or__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 9400 | __pyx_r = NULL((void*)0); |
| 9401 | __pyx_L0:; |
| 9402 | __Pyx_XDECREF(__pyx_v_u)do { if ((__pyx_v_u) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_u))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_u)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_u)))); } while (0); } while (0); |
| 9403 | __Pyx_XDECREF(__pyx_v_op)do { if ((__pyx_v_op) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_op))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_v_op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_op)))); } while (0); } while (0); |
| 9404 | __Pyx_XGIVEREF(__pyx_r); |
| 9405 | __Pyx_RefNannyFinishContext(); |
| 9406 | return __pyx_r; |
| 9407 | } |
| 9408 | |
| 9409 | /* "xmmsvalue.pyx":512 |
| 9410 | * return u |
| 9411 | * |
| 9412 | * def __and__(self, other): # & # <<<<<<<<<<<<<< |
| 9413 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): |
| 9414 | * raise TypeError("Unsupported operand type(s) for &: %r and %r" |
| 9415 | */ |
| 9416 | |
| 9417 | /* Python wrapper */ |
| 9418 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_7__and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/ |
| 9419 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_7__and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { |
| 9420 | PyObject *__pyx_r = 0; |
| 9421 | __Pyx_RefNannyDeclarations |
| 9422 | __Pyx_RefNannySetupContext("__and__ (wrapper)", 0); |
| 9423 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_6__and__(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_other)); |
| 9424 | |
| 9425 | /* function exit code */ |
| 9426 | __Pyx_RefNannyFinishContext(); |
| 9427 | return __pyx_r; |
| 9428 | } |
| 9429 | |
| 9430 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_6__and__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) { |
| 9431 | PyObject *__pyx_v_i = NULL((void*)0); |
| 9432 | PyObject *__pyx_v_op = NULL((void*)0); |
| 9433 | PyObject *__pyx_r = NULL((void*)0); |
| 9434 | __Pyx_RefNannyDeclarations |
| 9435 | int __pyx_t_1; |
| 9436 | int __pyx_t_2; |
| 9437 | int __pyx_t_3; |
| 9438 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 9439 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 9440 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 9441 | Py_ssize_t __pyx_t_7; |
| 9442 | PyObject *__pyx_t_8 = NULL((void*)0); |
| 9443 | int __pyx_t_9; |
| 9444 | int __pyx_lineno = 0; |
| 9445 | const char *__pyx_filename = NULL((void*)0); |
| 9446 | int __pyx_clineno = 0; |
| 9447 | __Pyx_RefNannySetupContext("__and__", 0); |
| 9448 | |
| 9449 | /* "xmmsvalue.pyx":513 |
| 9450 | * |
| 9451 | * def __and__(self, other): # & |
| 9452 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): # <<<<<<<<<<<<<< |
| 9453 | * raise TypeError("Unsupported operand type(s) for &: %r and %r" |
| 9454 | * % (self.__class__.__name__, other.__class__.__name__)) |
| 9455 | */ |
| 9456 | __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_self, ((PyObject*)__pyx_ptype_9xmmsvalue_Collection))((((PyObject*)(__pyx_v_self))->ob_type) == ((PyTypeObject * )((PyObject*)__pyx_ptype_9xmmsvalue_Collection)) || PyType_IsSubtype ((((PyObject*)(__pyx_v_self))->ob_type), ((PyTypeObject *) ((PyObject*)__pyx_ptype_9xmmsvalue_Collection)))); |
| 9457 | if ((__pyx_t_1 != 0)) { |
| 9458 | __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_other, ((PyObject*)__pyx_ptype_9xmmsvalue_Collection))((((PyObject*)(__pyx_v_other))->ob_type) == ((PyTypeObject *)((PyObject*)__pyx_ptype_9xmmsvalue_Collection)) || PyType_IsSubtype ((((PyObject*)(__pyx_v_other))->ob_type), ((PyTypeObject * )((PyObject*)__pyx_ptype_9xmmsvalue_Collection)))); |
| 9459 | __pyx_t_3 = (__pyx_t_2 != 0); |
| 9460 | } else { |
| 9461 | __pyx_t_3 = (__pyx_t_1 != 0); |
| 9462 | } |
| 9463 | __pyx_t_1 = ((!__pyx_t_3) != 0); |
| 9464 | if (__pyx_t_1) { |
| 9465 | |
| 9466 | /* "xmmsvalue.pyx":515 |
| 9467 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): |
| 9468 | * raise TypeError("Unsupported operand type(s) for &: %r and %r" |
| 9469 | * % (self.__class__.__name__, other.__class__.__name__)) # <<<<<<<<<<<<<< |
| 9470 | * i = Intersection() |
| 9471 | * for op in (self, other): |
| 9472 | */ |
| 9473 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__9473; goto __pyx_L1_error;} |
| 9474 | __Pyx_GOTREF(__pyx_t_4); |
| 9475 | __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__9475; goto __pyx_L1_error;} |
| 9476 | __Pyx_GOTREF(__pyx_t_5); |
| 9477 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9478 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_class); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__9478; goto __pyx_L1_error;} |
| 9479 | __Pyx_GOTREF(__pyx_t_4); |
| 9480 | __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_name); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__9480; goto __pyx_L1_error;} |
| 9481 | __Pyx_GOTREF(__pyx_t_6); |
| 9482 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9483 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__9483; goto __pyx_L1_error;} |
| 9484 | __Pyx_GOTREF(__pyx_t_4); |
| 9485 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_t_5); |
| 9486 | __Pyx_GIVEREF(__pyx_t_5); |
| 9487 | PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_6)(((PyTupleObject *)(__pyx_t_4))->ob_item[1] = __pyx_t_6); |
| 9488 | __Pyx_GIVEREF(__pyx_t_6); |
| 9489 | __pyx_t_5 = 0; |
| 9490 | __pyx_t_6 = 0; |
| 9491 | __pyx_t_6 = __Pyx_PyString_Format(__pyx_kp_s_Unsupported_operand_type_s_for_r_2, __pyx_t_4)PyString_Format(__pyx_kp_s_Unsupported_operand_type_s_for_r_2 , __pyx_t_4); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__9491; goto __pyx_L1_error;} |
| 9492 | __Pyx_GOTREF(__pyx_t_6); |
| 9493 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9494 | |
| 9495 | /* "xmmsvalue.pyx":514 |
| 9496 | * def __and__(self, other): # & |
| 9497 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): |
| 9498 | * raise TypeError("Unsupported operand type(s) for &: %r and %r" # <<<<<<<<<<<<<< |
| 9499 | * % (self.__class__.__name__, other.__class__.__name__)) |
| 9500 | * i = Intersection() |
| 9501 | */ |
| 9502 | __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__9502; goto __pyx_L1_error;} |
| 9503 | __Pyx_GOTREF(__pyx_t_4); |
| 9504 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_t_6); |
| 9505 | __Pyx_GIVEREF(__pyx_t_6); |
| 9506 | __pyx_t_6 = 0; |
| 9507 | __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__9507; goto __pyx_L1_error;} |
| 9508 | __Pyx_GOTREF(__pyx_t_6); |
| 9509 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9510 | __Pyx_Raise(__pyx_t_6, 0, 0, 0); |
| 9511 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 9512 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__9512; goto __pyx_L1_error;} |
| 9513 | } |
| 9514 | |
| 9515 | /* "xmmsvalue.pyx":516 |
| 9516 | * raise TypeError("Unsupported operand type(s) for &: %r and %r" |
| 9517 | * % (self.__class__.__name__, other.__class__.__name__)) |
| 9518 | * i = Intersection() # <<<<<<<<<<<<<< |
| 9519 | * for op in (self, other): |
| 9520 | * if isinstance(op, Intersection): |
| 9521 | */ |
| 9522 | __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_Intersection); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__9522; goto __pyx_L1_error;} |
| 9523 | __Pyx_GOTREF(__pyx_t_6); |
| 9524 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 516; __pyx_clineno = __LINE__9524; goto __pyx_L1_error;} |
| 9525 | __Pyx_GOTREF(__pyx_t_4); |
| 9526 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 9527 | __pyx_v_i = __pyx_t_4; |
| 9528 | __pyx_t_4 = 0; |
| 9529 | |
| 9530 | /* "xmmsvalue.pyx":517 |
| 9531 | * % (self.__class__.__name__, other.__class__.__name__)) |
| 9532 | * i = Intersection() |
| 9533 | * for op in (self, other): # <<<<<<<<<<<<<< |
| 9534 | * if isinstance(op, Intersection): |
| 9535 | * i.operands.extend(op.operands) |
| 9536 | */ |
| 9537 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__9537; goto __pyx_L1_error;} |
| 9538 | __Pyx_GOTREF(__pyx_t_4); |
| 9539 | __Pyx_INCREF(__pyx_v_self)( ((PyObject*)(__pyx_v_self))->ob_refcnt++); |
| 9540 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_v_self ); |
| 9541 | __Pyx_GIVEREF(__pyx_v_self); |
| 9542 | __Pyx_INCREF(__pyx_v_other)( ((PyObject*)(__pyx_v_other))->ob_refcnt++); |
| 9543 | PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_other)(((PyTupleObject *)(__pyx_t_4))->ob_item[1] = __pyx_v_other ); |
| 9544 | __Pyx_GIVEREF(__pyx_v_other); |
| 9545 | __pyx_t_6 = __pyx_t_4; __Pyx_INCREF(__pyx_t_6)( ((PyObject*)(__pyx_t_6))->ob_refcnt++); __pyx_t_7 = 0; |
| 9546 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9547 | for (;;) { |
| 9548 | if (__pyx_t_7 >= 2) break; |
| 9549 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 9550 | __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7)(((PyTupleObject *)(__pyx_t_6))->ob_item[__pyx_t_7]); __Pyx_INCREF(__pyx_t_4)( ((PyObject*)(__pyx_t_4))->ob_refcnt++); __pyx_t_7++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__9550; goto __pyx_L1_error;} |
| 9551 | #else |
| 9552 | __pyx_t_4 = PySequence_ITEM(__pyx_t_6, __pyx_t_7)( (((PyObject*)(__pyx_t_6))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_6, __pyx_t_7) ); __pyx_t_7++; if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__9552; goto __pyx_L1_error;} |
| 9553 | #endif |
| 9554 | __Pyx_XDECREF_SET(__pyx_v_op, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_v_op; __pyx_v_op = __pyx_t_4 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 9555 | __pyx_t_4 = 0; |
| 9556 | |
| 9557 | /* "xmmsvalue.pyx":518 |
| 9558 | * i = Intersection() |
| 9559 | * for op in (self, other): |
| 9560 | * if isinstance(op, Intersection): # <<<<<<<<<<<<<< |
| 9561 | * i.operands.extend(op.operands) |
| 9562 | * else: |
| 9563 | */ |
| 9564 | __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Intersection); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__9564; goto __pyx_L1_error;} |
| 9565 | __Pyx_GOTREF(__pyx_t_4); |
| 9566 | __pyx_t_1 = PyObject_IsInstance(__pyx_v_op, __pyx_t_4); if (unlikely(__pyx_t_1 == -1)__builtin_expect(!!(__pyx_t_1 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 518; __pyx_clineno = __LINE__9566; goto __pyx_L1_error;} |
| 9567 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9568 | __pyx_t_3 = (__pyx_t_1 != 0); |
| 9569 | if (__pyx_t_3) { |
| 9570 | |
| 9571 | /* "xmmsvalue.pyx":519 |
| 9572 | * for op in (self, other): |
| 9573 | * if isinstance(op, Intersection): |
| 9574 | * i.operands.extend(op.operands) # <<<<<<<<<<<<<< |
| 9575 | * else: |
| 9576 | * i.operands.append(op) |
| 9577 | */ |
| 9578 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_i, __pyx_n_s_operands); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__9578; goto __pyx_L1_error;} |
| 9579 | __Pyx_GOTREF(__pyx_t_4); |
| 9580 | __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_extend); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__9580; goto __pyx_L1_error;} |
| 9581 | __Pyx_GOTREF(__pyx_t_5); |
| 9582 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9583 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_op, __pyx_n_s_operands); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__9583; goto __pyx_L1_error;} |
| 9584 | __Pyx_GOTREF(__pyx_t_4); |
| 9585 | __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__9585; goto __pyx_L1_error;} |
| 9586 | __Pyx_GOTREF(__pyx_t_8); |
| 9587 | PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4)(((PyTupleObject *)(__pyx_t_8))->ob_item[0] = __pyx_t_4); |
| 9588 | __Pyx_GIVEREF(__pyx_t_4); |
| 9589 | __pyx_t_4 = 0; |
| 9590 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__9590; goto __pyx_L1_error;} |
| 9591 | __Pyx_GOTREF(__pyx_t_4); |
| 9592 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 9593 | __Pyx_DECREF(__pyx_t_8)do { if ( --((PyObject*)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_8)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while ( 0); __pyx_t_8 = 0; |
| 9594 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9595 | goto __pyx_L6; |
| 9596 | } |
| 9597 | /*else*/ { |
| 9598 | |
| 9599 | /* "xmmsvalue.pyx":521 |
| 9600 | * i.operands.extend(op.operands) |
| 9601 | * else: |
| 9602 | * i.operands.append(op) # <<<<<<<<<<<<<< |
| 9603 | * return i |
| 9604 | * |
| 9605 | */ |
| 9606 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_i, __pyx_n_s_operands); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__9606; goto __pyx_L1_error;} |
| 9607 | __Pyx_GOTREF(__pyx_t_4); |
| 9608 | __pyx_t_9 = __Pyx_PyObject_Append(__pyx_t_4, __pyx_v_op); if (unlikely(__pyx_t_9 == -1)__builtin_expect(!!(__pyx_t_9 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 521; __pyx_clineno = __LINE__9608; goto __pyx_L1_error;} |
| 9609 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9610 | } |
| 9611 | __pyx_L6:; |
| 9612 | } |
| 9613 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 9614 | |
| 9615 | /* "xmmsvalue.pyx":522 |
| 9616 | * else: |
| 9617 | * i.operands.append(op) |
| 9618 | * return i # <<<<<<<<<<<<<< |
| 9619 | * |
| 9620 | * def __invert__(self): #~ |
| 9621 | */ |
| 9622 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 9623 | __Pyx_INCREF(__pyx_v_i)( ((PyObject*)(__pyx_v_i))->ob_refcnt++); |
| 9624 | __pyx_r = __pyx_v_i; |
| 9625 | goto __pyx_L0; |
| 9626 | |
| 9627 | /* "xmmsvalue.pyx":512 |
| 9628 | * return u |
| 9629 | * |
| 9630 | * def __and__(self, other): # & # <<<<<<<<<<<<<< |
| 9631 | * if not (isinstance(self, Collection) and isinstance(other, Collection)): |
| 9632 | * raise TypeError("Unsupported operand type(s) for &: %r and %r" |
| 9633 | */ |
| 9634 | |
| 9635 | /* function exit code */ |
| 9636 | __pyx_L1_error:; |
| 9637 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 9638 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 9639 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 9640 | __Pyx_XDECREF(__pyx_t_8)do { if ((__pyx_t_8) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_8)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while (0); } while (0); |
| 9641 | __Pyx_AddTraceback("xmmsvalue.Collection.__and__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 9642 | __pyx_r = NULL((void*)0); |
| 9643 | __pyx_L0:; |
| 9644 | __Pyx_XDECREF(__pyx_v_i)do { if ((__pyx_v_i) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_i))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_i)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_i)))); } while (0); } while (0); |
| 9645 | __Pyx_XDECREF(__pyx_v_op)do { if ((__pyx_v_op) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_op))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_v_op)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_op)))); } while (0); } while (0); |
| 9646 | __Pyx_XGIVEREF(__pyx_r); |
| 9647 | __Pyx_RefNannyFinishContext(); |
| 9648 | return __pyx_r; |
| 9649 | } |
| 9650 | |
| 9651 | /* "xmmsvalue.pyx":524 |
| 9652 | * return i |
| 9653 | * |
| 9654 | * def __invert__(self): #~ # <<<<<<<<<<<<<< |
| 9655 | * if isinstance(self, Complement): |
| 9656 | * return self.operands[0] |
| 9657 | */ |
| 9658 | |
| 9659 | /* Python wrapper */ |
| 9660 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_9__invert__(PyObject *__pyx_v_self); /*proto*/ |
| 9661 | static PyObject *__pyx_pw_9xmmsvalue_10Collection_9__invert__(PyObject *__pyx_v_self) { |
| 9662 | PyObject *__pyx_r = 0; |
| 9663 | __Pyx_RefNannyDeclarations |
| 9664 | __Pyx_RefNannySetupContext("__invert__ (wrapper)", 0); |
| 9665 | __pyx_r = __pyx_pf_9xmmsvalue_10Collection_8__invert__(((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_self)); |
| 9666 | |
| 9667 | /* function exit code */ |
| 9668 | __Pyx_RefNannyFinishContext(); |
| 9669 | return __pyx_r; |
| 9670 | } |
| 9671 | |
| 9672 | static PyObject *__pyx_pf_9xmmsvalue_10Collection_8__invert__(struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self) { |
| 9673 | PyObject *__pyx_r = NULL((void*)0); |
| 9674 | __Pyx_RefNannyDeclarations |
| 9675 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 9676 | int __pyx_t_2; |
| 9677 | int __pyx_t_3; |
| 9678 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 9679 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 9680 | int __pyx_lineno = 0; |
| 9681 | const char *__pyx_filename = NULL((void*)0); |
| 9682 | int __pyx_clineno = 0; |
| 9683 | __Pyx_RefNannySetupContext("__invert__", 0); |
| 9684 | |
| 9685 | /* "xmmsvalue.pyx":525 |
| 9686 | * |
| 9687 | * def __invert__(self): #~ |
| 9688 | * if isinstance(self, Complement): # <<<<<<<<<<<<<< |
| 9689 | * return self.operands[0] |
| 9690 | * return Complement(self) |
| 9691 | */ |
| 9692 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Complement); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__9692; goto __pyx_L1_error;} |
| 9693 | __Pyx_GOTREF(__pyx_t_1); |
| 9694 | __pyx_t_2 = PyObject_IsInstance(((PyObject *)__pyx_v_self), __pyx_t_1); if (unlikely(__pyx_t_2 == -1)__builtin_expect(!!(__pyx_t_2 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__9694; goto __pyx_L1_error;} |
| 9695 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 9696 | __pyx_t_3 = (__pyx_t_2 != 0); |
| 9697 | if (__pyx_t_3) { |
| 9698 | |
| 9699 | /* "xmmsvalue.pyx":526 |
| 9700 | * def __invert__(self): #~ |
| 9701 | * if isinstance(self, Complement): |
| 9702 | * return self.operands[0] # <<<<<<<<<<<<<< |
| 9703 | * return Complement(self) |
| 9704 | * |
| 9705 | */ |
| 9706 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 9707 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_operands); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__9707; goto __pyx_L1_error;} |
| 9708 | __Pyx_GOTREF(__pyx_t_1); |
| 9709 | __pyx_t_4 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1)(( (sizeof(long) < sizeof(Py_ssize_t)) || (sizeof(long) > sizeof(Py_ssize_t) && __builtin_expect(!!(0 < (long )((Py_ssize_t)(((size_t)-1)>>1)) || 0 == (long)((Py_ssize_t )(((size_t)-1)>>1))), 1) && (!1 || __builtin_expect (!!(0 > (long)(-((Py_ssize_t)(((size_t)-1)>>1))-1) || 0 == (long)(-((Py_ssize_t)(((size_t)-1)>>1))-1)), 1))) || (sizeof(long) == sizeof(Py_ssize_t) && (1 || __builtin_expect (!!(0 < (long)((Py_ssize_t)(((size_t)-1)>>1)) || 0 == (long)((Py_ssize_t)(((size_t)-1)>>1))), 1))) ) ? __Pyx_GetItemInt_Fast (__pyx_t_1, (Py_ssize_t)0, 0, 0, 1) : (0 ? (PyErr_SetString(PyExc_IndexError , "list index out of range"), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic (__pyx_t_1, __Pyx_PyInt_From_long(0)))); if (unlikely(__pyx_t_4 == NULL)__builtin_expect(!!(__pyx_t_4 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__9709; goto __pyx_L1_error;}; |
| 9710 | __Pyx_GOTREF(__pyx_t_4); |
| 9711 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 9712 | __pyx_r = __pyx_t_4; |
| 9713 | __pyx_t_4 = 0; |
| 9714 | goto __pyx_L0; |
| 9715 | } |
| 9716 | |
| 9717 | /* "xmmsvalue.pyx":527 |
| 9718 | * if isinstance(self, Complement): |
| 9719 | * return self.operands[0] |
| 9720 | * return Complement(self) # <<<<<<<<<<<<<< |
| 9721 | * |
| 9722 | * |
| 9723 | */ |
| 9724 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 9725 | __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Complement); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__9725; goto __pyx_L1_error;} |
| 9726 | __Pyx_GOTREF(__pyx_t_4); |
| 9727 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__9727; goto __pyx_L1_error;} |
| 9728 | __Pyx_GOTREF(__pyx_t_1); |
| 9729 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 9730 | PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 9731 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 9732 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__9732; goto __pyx_L1_error;} |
| 9733 | __Pyx_GOTREF(__pyx_t_5); |
| 9734 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 9735 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 9736 | __pyx_r = __pyx_t_5; |
| 9737 | __pyx_t_5 = 0; |
| 9738 | goto __pyx_L0; |
| 9739 | |
| 9740 | /* "xmmsvalue.pyx":524 |
| 9741 | * return i |
| 9742 | * |
| 9743 | * def __invert__(self): #~ # <<<<<<<<<<<<<< |
| 9744 | * if isinstance(self, Complement): |
| 9745 | * return self.operands[0] |
| 9746 | */ |
| 9747 | |
| 9748 | /* function exit code */ |
| 9749 | __pyx_L1_error:; |
| 9750 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 9751 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 9752 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 9753 | __Pyx_AddTraceback("xmmsvalue.Collection.__invert__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 9754 | __pyx_r = NULL((void*)0); |
| 9755 | __pyx_L0:; |
| 9756 | __Pyx_XGIVEREF(__pyx_r); |
| 9757 | __Pyx_RefNannyFinishContext(); |
| 9758 | return __pyx_r; |
| 9759 | } |
| 9760 | |
| 9761 | /* "xmmsvalue.pyx":535 |
| 9762 | * #cdef CollectionAttributes attr |
| 9763 | * |
| 9764 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 9765 | * self.diter = NULL |
| 9766 | * self.itertype = 0 |
| 9767 | */ |
| 9768 | |
| 9769 | /* Python wrapper */ |
| 9770 | static int __pyx_pw_9xmmsvalue_18AttributesIterator_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 9771 | static int __pyx_pw_9xmmsvalue_18AttributesIterator_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 9772 | int __pyx_r; |
| 9773 | __Pyx_RefNannyDeclarations |
| 9774 | __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0); |
| 9775 | if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)__builtin_expect(!!((((PyVarObject*)(__pyx_args))->ob_size ) > 0), 0)) { |
| 9776 | __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); return -1;} |
| 9777 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0) && unlikely(PyDict_Size(__pyx_kwds) > 0)__builtin_expect(!!(PyDict_Size(__pyx_kwds) > 0), 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))__builtin_expect(!!(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__" , 0)), 0)) return -1; |
| 9778 | __pyx_r = __pyx_pf_9xmmsvalue_18AttributesIterator___cinit__(((struct __pyx_obj_9xmmsvalue_AttributesIterator *)__pyx_v_self)); |
| 9779 | |
| 9780 | /* function exit code */ |
| 9781 | __Pyx_RefNannyFinishContext(); |
| 9782 | return __pyx_r; |
| 9783 | } |
| 9784 | |
| 9785 | static int __pyx_pf_9xmmsvalue_18AttributesIterator___cinit__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self) { |
| 9786 | int __pyx_r; |
| 9787 | __Pyx_RefNannyDeclarations |
| 9788 | __Pyx_RefNannySetupContext("__cinit__", 0); |
| 9789 | |
| 9790 | /* "xmmsvalue.pyx":536 |
| 9791 | * |
| 9792 | * def __cinit__(self): |
| 9793 | * self.diter = NULL # <<<<<<<<<<<<<< |
| 9794 | * self.itertype = 0 |
| 9795 | * |
| 9796 | */ |
| 9797 | __pyx_v_self->diter = NULL((void*)0); |
| 9798 | |
| 9799 | /* "xmmsvalue.pyx":537 |
| 9800 | * def __cinit__(self): |
| 9801 | * self.diter = NULL |
| 9802 | * self.itertype = 0 # <<<<<<<<<<<<<< |
| 9803 | * |
| 9804 | * def __dealloc__(self): |
| 9805 | */ |
| 9806 | __pyx_v_self->itertype = 0; |
| 9807 | |
| 9808 | /* "xmmsvalue.pyx":535 |
| 9809 | * #cdef CollectionAttributes attr |
| 9810 | * |
| 9811 | * def __cinit__(self): # <<<<<<<<<<<<<< |
| 9812 | * self.diter = NULL |
| 9813 | * self.itertype = 0 |
| 9814 | */ |
| 9815 | |
| 9816 | /* function exit code */ |
| 9817 | __pyx_r = 0; |
| 9818 | __Pyx_RefNannyFinishContext(); |
| 9819 | return __pyx_r; |
| 9820 | } |
| 9821 | |
| 9822 | /* "xmmsvalue.pyx":539 |
| 9823 | * self.itertype = 0 |
| 9824 | * |
| 9825 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 9826 | * if self.diter != NULL: |
| 9827 | * xmmsv_dict_iter_explicit_destroy(self.diter) |
| 9828 | */ |
| 9829 | |
| 9830 | /* Python wrapper */ |
| 9831 | static void __pyx_pw_9xmmsvalue_18AttributesIterator_3__dealloc__(PyObject *__pyx_v_self); /*proto*/ |
| 9832 | static void __pyx_pw_9xmmsvalue_18AttributesIterator_3__dealloc__(PyObject *__pyx_v_self) { |
| 9833 | __Pyx_RefNannyDeclarations |
| 9834 | __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); |
| 9835 | __pyx_pf_9xmmsvalue_18AttributesIterator_2__dealloc__(((struct __pyx_obj_9xmmsvalue_AttributesIterator *)__pyx_v_self)); |
| 9836 | |
| 9837 | /* function exit code */ |
| 9838 | __Pyx_RefNannyFinishContext(); |
| 9839 | } |
| 9840 | |
| 9841 | static void __pyx_pf_9xmmsvalue_18AttributesIterator_2__dealloc__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self) { |
| 9842 | __Pyx_RefNannyDeclarations |
| 9843 | int __pyx_t_1; |
| 9844 | __Pyx_RefNannySetupContext("__dealloc__", 0); |
| 9845 | |
| 9846 | /* "xmmsvalue.pyx":540 |
| 9847 | * |
| 9848 | * def __dealloc__(self): |
| 9849 | * if self.diter != NULL: # <<<<<<<<<<<<<< |
| 9850 | * xmmsv_dict_iter_explicit_destroy(self.diter) |
| 9851 | * |
| 9852 | */ |
| 9853 | __pyx_t_1 = ((__pyx_v_self->diter != NULL((void*)0)) != 0); |
| 9854 | if (__pyx_t_1) { |
| 9855 | |
| 9856 | /* "xmmsvalue.pyx":541 |
| 9857 | * def __dealloc__(self): |
| 9858 | * if self.diter != NULL: |
| 9859 | * xmmsv_dict_iter_explicit_destroy(self.diter) # <<<<<<<<<<<<<< |
| 9860 | * |
| 9861 | * def __init__(self, CollectionAttributes attributes, AttributesIterType itertype): |
| 9862 | */ |
| 9863 | xmmsv_dict_iter_explicit_destroy(__pyx_v_self->diter); |
| 9864 | goto __pyx_L3; |
| 9865 | } |
| 9866 | __pyx_L3:; |
| 9867 | |
| 9868 | /* "xmmsvalue.pyx":539 |
| 9869 | * self.itertype = 0 |
| 9870 | * |
| 9871 | * def __dealloc__(self): # <<<<<<<<<<<<<< |
| 9872 | * if self.diter != NULL: |
| 9873 | * xmmsv_dict_iter_explicit_destroy(self.diter) |
| 9874 | */ |
| 9875 | |
| 9876 | /* function exit code */ |
| 9877 | __Pyx_RefNannyFinishContext(); |
| 9878 | } |
| 9879 | |
| 9880 | /* "xmmsvalue.pyx":543 |
| 9881 | * xmmsv_dict_iter_explicit_destroy(self.diter) |
| 9882 | * |
| 9883 | * def __init__(self, CollectionAttributes attributes, AttributesIterType itertype): # <<<<<<<<<<<<<< |
| 9884 | * cdef xmmsv_dict_iter_t *it = NULL |
| 9885 | * if attributes is None: |
| 9886 | */ |
| 9887 | |
| 9888 | /* Python wrapper */ |
| 9889 | static int __pyx_pw_9xmmsvalue_18AttributesIterator_5__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 9890 | static int __pyx_pw_9xmmsvalue_18AttributesIterator_5__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 9891 | struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_attributes = 0; |
| 9892 | enum __pyx_t_9xmmsvalue_AttributesIterType __pyx_v_itertype; |
| 9893 | int __pyx_lineno = 0; |
| 9894 | const char *__pyx_filename = NULL((void*)0); |
| 9895 | int __pyx_clineno = 0; |
| 9896 | int __pyx_r; |
| 9897 | __Pyx_RefNannyDeclarations |
| 9898 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 9899 | { |
| 9900 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_attributes,&__pyx_n_s_itertype,0}; |
| 9901 | PyObject* values[2] = {0,0}; |
| 9902 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 9903 | Py_ssize_t kw_args; |
| 9904 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 9905 | switch (pos_args) { |
| 9906 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 9907 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 9908 | case 0: break; |
| 9909 | default: goto __pyx_L5_argtuple_error; |
| 9910 | } |
| 9911 | kw_args = PyDict_Size(__pyx_kwds); |
| 9912 | switch (pos_args) { |
| 9913 | case 0: |
| 9914 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_attributes)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_attributes )) != 0), 1)) kw_args--; |
| 9915 | else goto __pyx_L5_argtuple_error; |
| 9916 | case 1: |
| 9917 | if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_itertype)) != 0)__builtin_expect(!!((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_itertype )) != 0), 1)) kw_args--; |
| 9918 | else { |
| 9919 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__9919; goto __pyx_L3_error;} |
| 9920 | } |
| 9921 | } |
| 9922 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 9923 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__9923; goto __pyx_L3_error;} |
| 9924 | } |
| 9925 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) != 2) { |
| 9926 | goto __pyx_L5_argtuple_error; |
| 9927 | } else { |
| 9928 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 9929 | values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 9930 | } |
| 9931 | __pyx_v_attributes = ((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)values[0]); |
| 9932 | __pyx_v_itertype = ((enum __pyx_t_9xmmsvalue_AttributesIterType)PyInt_AsLong(values[1])); if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__9932; goto __pyx_L3_error;} |
| 9933 | } |
| 9934 | goto __pyx_L4_argument_unpacking_done; |
| 9935 | __pyx_L5_argtuple_error:; |
| 9936 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__9936; goto __pyx_L3_error;} |
| 9937 | __pyx_L3_error:; |
| 9938 | __Pyx_AddTraceback("xmmsvalue.AttributesIterator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 9939 | __Pyx_RefNannyFinishContext(); |
| 9940 | return -1; |
| 9941 | __pyx_L4_argument_unpacking_done:; |
| 9942 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_attributes), __pyx_ptype_9xmmsvalue_CollectionAttributes, 1, "attributes", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_attributes ), __pyx_ptype_9xmmsvalue_CollectionAttributes, 1, "attributes" , 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__9942; goto __pyx_L1_error;} |
| 9943 | __pyx_r = __pyx_pf_9xmmsvalue_18AttributesIterator_4__init__(((struct __pyx_obj_9xmmsvalue_AttributesIterator *)__pyx_v_self), __pyx_v_attributes, __pyx_v_itertype); |
| 9944 | |
| 9945 | /* function exit code */ |
| 9946 | goto __pyx_L0; |
| 9947 | __pyx_L1_error:; |
| 9948 | __pyx_r = -1; |
| 9949 | __pyx_L0:; |
| 9950 | __Pyx_RefNannyFinishContext(); |
| 9951 | return __pyx_r; |
| 9952 | } |
| 9953 | |
| 9954 | static int __pyx_pf_9xmmsvalue_18AttributesIterator_4__init__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self, struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_attributes, enum __pyx_t_9xmmsvalue_AttributesIterType __pyx_v_itertype) { |
| 9955 | xmmsv_dict_iter_t *__pyx_v_it; |
| 9956 | int __pyx_r; |
| 9957 | __Pyx_RefNannyDeclarations |
| 9958 | int __pyx_t_1; |
| 9959 | int __pyx_t_2; |
| 9960 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 9961 | int __pyx_lineno = 0; |
| 9962 | const char *__pyx_filename = NULL((void*)0); |
| 9963 | int __pyx_clineno = 0; |
| 9964 | __Pyx_RefNannySetupContext("__init__", 0); |
| 9965 | |
| 9966 | /* "xmmsvalue.pyx":544 |
| 9967 | * |
| 9968 | * def __init__(self, CollectionAttributes attributes, AttributesIterType itertype): |
| 9969 | * cdef xmmsv_dict_iter_t *it = NULL # <<<<<<<<<<<<<< |
| 9970 | * if attributes is None: |
| 9971 | * raise TypeError("__init__() argument must not be None") |
| 9972 | */ |
| 9973 | __pyx_v_it = NULL((void*)0); |
| 9974 | |
| 9975 | /* "xmmsvalue.pyx":545 |
| 9976 | * def __init__(self, CollectionAttributes attributes, AttributesIterType itertype): |
| 9977 | * cdef xmmsv_dict_iter_t *it = NULL |
| 9978 | * if attributes is None: # <<<<<<<<<<<<<< |
| 9979 | * raise TypeError("__init__() argument must not be None") |
| 9980 | * if not xmmsv_get_dict_iter(xmmsv_coll_attributes_get(attributes.coll), &it): |
| 9981 | */ |
| 9982 | __pyx_t_1 = (((PyObject *)__pyx_v_attributes) == Py_None(&_Py_NoneStruct)); |
| 9983 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 9984 | if (__pyx_t_2) { |
| 9985 | |
| 9986 | /* "xmmsvalue.pyx":546 |
| 9987 | * cdef xmmsv_dict_iter_t *it = NULL |
| 9988 | * if attributes is None: |
| 9989 | * raise TypeError("__init__() argument must not be None") # <<<<<<<<<<<<<< |
| 9990 | * if not xmmsv_get_dict_iter(xmmsv_coll_attributes_get(attributes.coll), &it): |
| 9991 | * raise RuntimeError("Failed to get fict iterator") |
| 9992 | */ |
| 9993 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__17, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__9993; goto __pyx_L1_error;} |
| 9994 | __Pyx_GOTREF(__pyx_t_3); |
| 9995 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 9996 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 9997 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__9997; goto __pyx_L1_error;} |
| 9998 | } |
| 9999 | |
| 10000 | /* "xmmsvalue.pyx":547 |
| 10001 | * if attributes is None: |
| 10002 | * raise TypeError("__init__() argument must not be None") |
| 10003 | * if not xmmsv_get_dict_iter(xmmsv_coll_attributes_get(attributes.coll), &it): # <<<<<<<<<<<<<< |
| 10004 | * raise RuntimeError("Failed to get fict iterator") |
| 10005 | * xmmsv_dict_iter_first(it) |
| 10006 | */ |
| 10007 | __pyx_t_2 = ((!(xmmsv_get_dict_iter(xmmsv_coll_attributes_get(__pyx_v_attributes->__pyx_base.coll), (&__pyx_v_it)) != 0)) != 0); |
| 10008 | if (__pyx_t_2) { |
| 10009 | |
| 10010 | /* "xmmsvalue.pyx":548 |
| 10011 | * raise TypeError("__init__() argument must not be None") |
| 10012 | * if not xmmsv_get_dict_iter(xmmsv_coll_attributes_get(attributes.coll), &it): |
| 10013 | * raise RuntimeError("Failed to get fict iterator") # <<<<<<<<<<<<<< |
| 10014 | * xmmsv_dict_iter_first(it) |
| 10015 | * self.diter = it |
| 10016 | */ |
| 10017 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__18, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__10017; goto __pyx_L1_error;} |
| 10018 | __Pyx_GOTREF(__pyx_t_3); |
| 10019 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 10020 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 10021 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__10021; goto __pyx_L1_error;} |
| 10022 | } |
| 10023 | |
| 10024 | /* "xmmsvalue.pyx":549 |
| 10025 | * if not xmmsv_get_dict_iter(xmmsv_coll_attributes_get(attributes.coll), &it): |
| 10026 | * raise RuntimeError("Failed to get fict iterator") |
| 10027 | * xmmsv_dict_iter_first(it) # <<<<<<<<<<<<<< |
| 10028 | * self.diter = it |
| 10029 | * self.itertype = itertype |
| 10030 | */ |
| 10031 | xmmsv_dict_iter_first(__pyx_v_it); |
| 10032 | |
| 10033 | /* "xmmsvalue.pyx":550 |
| 10034 | * raise RuntimeError("Failed to get fict iterator") |
| 10035 | * xmmsv_dict_iter_first(it) |
| 10036 | * self.diter = it # <<<<<<<<<<<<<< |
| 10037 | * self.itertype = itertype |
| 10038 | * |
| 10039 | */ |
| 10040 | __pyx_v_self->diter = __pyx_v_it; |
| 10041 | |
| 10042 | /* "xmmsvalue.pyx":551 |
| 10043 | * xmmsv_dict_iter_first(it) |
| 10044 | * self.diter = it |
| 10045 | * self.itertype = itertype # <<<<<<<<<<<<<< |
| 10046 | * |
| 10047 | * def __iter__(self): |
| 10048 | */ |
| 10049 | __pyx_v_self->itertype = __pyx_v_itertype; |
| 10050 | |
| 10051 | /* "xmmsvalue.pyx":543 |
| 10052 | * xmmsv_dict_iter_explicit_destroy(self.diter) |
| 10053 | * |
| 10054 | * def __init__(self, CollectionAttributes attributes, AttributesIterType itertype): # <<<<<<<<<<<<<< |
| 10055 | * cdef xmmsv_dict_iter_t *it = NULL |
| 10056 | * if attributes is None: |
| 10057 | */ |
| 10058 | |
| 10059 | /* function exit code */ |
| 10060 | __pyx_r = 0; |
| 10061 | goto __pyx_L0; |
| 10062 | __pyx_L1_error:; |
| 10063 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 10064 | __Pyx_AddTraceback("xmmsvalue.AttributesIterator.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10065 | __pyx_r = -1; |
| 10066 | __pyx_L0:; |
| 10067 | __Pyx_RefNannyFinishContext(); |
| 10068 | return __pyx_r; |
| 10069 | } |
| 10070 | |
| 10071 | /* "xmmsvalue.pyx":553 |
| 10072 | * self.itertype = itertype |
| 10073 | * |
| 10074 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 10075 | * return self |
| 10076 | * |
| 10077 | */ |
| 10078 | |
| 10079 | /* Python wrapper */ |
| 10080 | static PyObject *__pyx_pw_9xmmsvalue_18AttributesIterator_7__iter__(PyObject *__pyx_v_self); /*proto*/ |
| 10081 | static PyObject *__pyx_pw_9xmmsvalue_18AttributesIterator_7__iter__(PyObject *__pyx_v_self) { |
| 10082 | PyObject *__pyx_r = 0; |
| 10083 | __Pyx_RefNannyDeclarations |
| 10084 | __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); |
| 10085 | __pyx_r = __pyx_pf_9xmmsvalue_18AttributesIterator_6__iter__(((struct __pyx_obj_9xmmsvalue_AttributesIterator *)__pyx_v_self)); |
| 10086 | |
| 10087 | /* function exit code */ |
| 10088 | __Pyx_RefNannyFinishContext(); |
| 10089 | return __pyx_r; |
| 10090 | } |
| 10091 | |
| 10092 | static PyObject *__pyx_pf_9xmmsvalue_18AttributesIterator_6__iter__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self) { |
| 10093 | PyObject *__pyx_r = NULL((void*)0); |
| 10094 | __Pyx_RefNannyDeclarations |
| 10095 | __Pyx_RefNannySetupContext("__iter__", 0); |
| 10096 | |
| 10097 | /* "xmmsvalue.pyx":554 |
| 10098 | * |
| 10099 | * def __iter__(self): |
| 10100 | * return self # <<<<<<<<<<<<<< |
| 10101 | * |
| 10102 | * def __next__(self): |
| 10103 | */ |
| 10104 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10105 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 10106 | __pyx_r = ((PyObject *)__pyx_v_self); |
| 10107 | goto __pyx_L0; |
| 10108 | |
| 10109 | /* "xmmsvalue.pyx":553 |
| 10110 | * self.itertype = itertype |
| 10111 | * |
| 10112 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 10113 | * return self |
| 10114 | * |
| 10115 | */ |
| 10116 | |
| 10117 | /* function exit code */ |
| 10118 | __pyx_L0:; |
| 10119 | __Pyx_XGIVEREF(__pyx_r); |
| 10120 | __Pyx_RefNannyFinishContext(); |
| 10121 | return __pyx_r; |
| 10122 | } |
| 10123 | |
| 10124 | /* "xmmsvalue.pyx":556 |
| 10125 | * return self |
| 10126 | * |
| 10127 | * def __next__(self): # <<<<<<<<<<<<<< |
| 10128 | * cdef char *key = NULL |
| 10129 | * cdef xmmsv_t *value = NULL |
| 10130 | */ |
| 10131 | |
| 10132 | /* Python wrapper */ |
| 10133 | static PyObject *__pyx_pw_9xmmsvalue_18AttributesIterator_9__next__(PyObject *__pyx_v_self); /*proto*/ |
| 10134 | static PyObject *__pyx_pw_9xmmsvalue_18AttributesIterator_9__next__(PyObject *__pyx_v_self) { |
| 10135 | PyObject *__pyx_r = 0; |
| 10136 | __Pyx_RefNannyDeclarations |
| 10137 | __Pyx_RefNannySetupContext("__next__ (wrapper)", 0); |
| 10138 | __pyx_r = __pyx_pf_9xmmsvalue_18AttributesIterator_8__next__(((struct __pyx_obj_9xmmsvalue_AttributesIterator *)__pyx_v_self)); |
| 10139 | |
| 10140 | /* function exit code */ |
| 10141 | __Pyx_RefNannyFinishContext(); |
| 10142 | return __pyx_r; |
| 10143 | } |
| 10144 | |
| 10145 | static PyObject *__pyx_pf_9xmmsvalue_18AttributesIterator_8__next__(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self) { |
| 10146 | char *__pyx_v_key; |
| 10147 | xmmsv_t *__pyx_v_value; |
| 10148 | PyObject *__pyx_v_k = NULL((void*)0); |
| 10149 | PyObject *__pyx_v_ret = NULL((void*)0); |
| 10150 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_v = NULL((void*)0); |
| 10151 | PyObject *__pyx_r = NULL((void*)0); |
| 10152 | __Pyx_RefNannyDeclarations |
| 10153 | int __pyx_t_1; |
| 10154 | int __pyx_t_2; |
| 10155 | int __pyx_t_3; |
| 10156 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 10157 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 10158 | int __pyx_lineno = 0; |
| 10159 | const char *__pyx_filename = NULL((void*)0); |
| 10160 | int __pyx_clineno = 0; |
| 10161 | __Pyx_RefNannySetupContext("__next__", 0); |
| 10162 | |
| 10163 | /* "xmmsvalue.pyx":557 |
| 10164 | * |
| 10165 | * def __next__(self): |
| 10166 | * cdef char *key = NULL # <<<<<<<<<<<<<< |
| 10167 | * cdef xmmsv_t *value = NULL |
| 10168 | * if self.diter != NULL and xmmsv_dict_iter_valid(self.diter): |
| 10169 | */ |
| 10170 | __pyx_v_key = NULL((void*)0); |
| 10171 | |
| 10172 | /* "xmmsvalue.pyx":558 |
| 10173 | * def __next__(self): |
| 10174 | * cdef char *key = NULL |
| 10175 | * cdef xmmsv_t *value = NULL # <<<<<<<<<<<<<< |
| 10176 | * if self.diter != NULL and xmmsv_dict_iter_valid(self.diter): |
| 10177 | * xmmsv_dict_iter_pair(self.diter, <const_char **>&key, &value) |
| 10178 | */ |
| 10179 | __pyx_v_value = NULL((void*)0); |
| 10180 | |
| 10181 | /* "xmmsvalue.pyx":559 |
| 10182 | * cdef char *key = NULL |
| 10183 | * cdef xmmsv_t *value = NULL |
| 10184 | * if self.diter != NULL and xmmsv_dict_iter_valid(self.diter): # <<<<<<<<<<<<<< |
| 10185 | * xmmsv_dict_iter_pair(self.diter, <const_char **>&key, &value) |
| 10186 | * k = to_unicode(key) |
| 10187 | */ |
| 10188 | __pyx_t_1 = ((__pyx_v_self->diter != NULL((void*)0)) != 0); |
| 10189 | if (__pyx_t_1) { |
| 10190 | __pyx_t_2 = (xmmsv_dict_iter_valid(__pyx_v_self->diter) != 0); |
| 10191 | __pyx_t_3 = __pyx_t_2; |
| 10192 | } else { |
| 10193 | __pyx_t_3 = __pyx_t_1; |
| 10194 | } |
| 10195 | if (__pyx_t_3) { |
| 10196 | |
| 10197 | /* "xmmsvalue.pyx":560 |
| 10198 | * cdef xmmsv_t *value = NULL |
| 10199 | * if self.diter != NULL and xmmsv_dict_iter_valid(self.diter): |
| 10200 | * xmmsv_dict_iter_pair(self.diter, <const_char **>&key, &value) # <<<<<<<<<<<<<< |
| 10201 | * k = to_unicode(key) |
| 10202 | * if self.itertype == ITER_KEYS: |
| 10203 | */ |
| 10204 | xmmsv_dict_iter_pair(__pyx_v_self->diter, ((const char **)(&__pyx_v_key)), (&__pyx_v_value)); |
| 10205 | |
| 10206 | /* "xmmsvalue.pyx":561 |
| 10207 | * if self.diter != NULL and xmmsv_dict_iter_valid(self.diter): |
| 10208 | * xmmsv_dict_iter_pair(self.diter, <const_char **>&key, &value) |
| 10209 | * k = to_unicode(key) # <<<<<<<<<<<<<< |
| 10210 | * if self.itertype == ITER_KEYS: |
| 10211 | * ret = k |
| 10212 | */ |
| 10213 | __pyx_t_4 = __pyx_f_9xmmsutils_to_unicode(__pyx_v_key); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__10213; goto __pyx_L1_error;} |
| 10214 | __Pyx_GOTREF(__pyx_t_4); |
| 10215 | __pyx_v_k = __pyx_t_4; |
| 10216 | __pyx_t_4 = 0; |
| 10217 | |
| 10218 | /* "xmmsvalue.pyx":562 |
| 10219 | * xmmsv_dict_iter_pair(self.diter, <const_char **>&key, &value) |
| 10220 | * k = to_unicode(key) |
| 10221 | * if self.itertype == ITER_KEYS: # <<<<<<<<<<<<<< |
| 10222 | * ret = k |
| 10223 | * else: |
| 10224 | */ |
| 10225 | __pyx_t_3 = ((__pyx_v_self->itertype == __pyx_e_9xmmsvalue_ITER_KEYS) != 0); |
| 10226 | if (__pyx_t_3) { |
| 10227 | |
| 10228 | /* "xmmsvalue.pyx":563 |
| 10229 | * k = to_unicode(key) |
| 10230 | * if self.itertype == ITER_KEYS: |
| 10231 | * ret = k # <<<<<<<<<<<<<< |
| 10232 | * else: |
| 10233 | * v = XmmsValue() |
| 10234 | */ |
| 10235 | __Pyx_INCREF(__pyx_v_k)( ((PyObject*)(__pyx_v_k))->ob_refcnt++); |
| 10236 | __pyx_v_ret = __pyx_v_k; |
| 10237 | goto __pyx_L4; |
| 10238 | } |
| 10239 | /*else*/ { |
| 10240 | |
| 10241 | /* "xmmsvalue.pyx":565 |
| 10242 | * ret = k |
| 10243 | * else: |
| 10244 | * v = XmmsValue() # <<<<<<<<<<<<<< |
| 10245 | * v.set_value(value) |
| 10246 | * if self.itertype == ITER_VALUES: |
| 10247 | */ |
| 10248 | __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)), __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__10248; goto __pyx_L1_error;} |
| 10249 | __Pyx_GOTREF(__pyx_t_4); |
| 10250 | __pyx_v_v = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_t_4); |
| 10251 | __pyx_t_4 = 0; |
| 10252 | |
| 10253 | /* "xmmsvalue.pyx":566 |
| 10254 | * else: |
| 10255 | * v = XmmsValue() |
| 10256 | * v.set_value(value) # <<<<<<<<<<<<<< |
| 10257 | * if self.itertype == ITER_VALUES: |
| 10258 | * ret = v.values |
| 10259 | */ |
| 10260 | __pyx_t_4 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_v->__pyx_vtab)->set_value(__pyx_v_v, __pyx_v_value, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 566; __pyx_clineno = __LINE__10260; goto __pyx_L1_error;} |
| 10261 | __Pyx_GOTREF(__pyx_t_4); |
| 10262 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 10263 | |
| 10264 | /* "xmmsvalue.pyx":573 |
| 10265 | * elif self.itertype == ITER_XVALUES: |
| 10266 | * ret = v |
| 10267 | * elif self.itertype == ITER_XITEMS: # <<<<<<<<<<<<<< |
| 10268 | * ret = (k, v) |
| 10269 | * else: |
| 10270 | */ |
| 10271 | switch (__pyx_v_self->itertype) { |
| 10272 | |
| 10273 | /* "xmmsvalue.pyx":567 |
| 10274 | * v = XmmsValue() |
| 10275 | * v.set_value(value) |
| 10276 | * if self.itertype == ITER_VALUES: # <<<<<<<<<<<<<< |
| 10277 | * ret = v.values |
| 10278 | * elif self.itertype == ITER_ITEMS: |
| 10279 | */ |
| 10280 | case __pyx_e_9xmmsvalue_ITER_VALUES: |
| 10281 | |
| 10282 | /* "xmmsvalue.pyx":568 |
| 10283 | * v.set_value(value) |
| 10284 | * if self.itertype == ITER_VALUES: |
| 10285 | * ret = v.values # <<<<<<<<<<<<<< |
| 10286 | * elif self.itertype == ITER_ITEMS: |
| 10287 | * ret = (k, v.value()) |
| 10288 | */ |
| 10289 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_v), __pyx_n_s_values); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__10289; goto __pyx_L1_error;} |
| 10290 | __Pyx_GOTREF(__pyx_t_4); |
| 10291 | __pyx_v_ret = __pyx_t_4; |
| 10292 | __pyx_t_4 = 0; |
| 10293 | break; |
| 10294 | |
| 10295 | /* "xmmsvalue.pyx":569 |
| 10296 | * if self.itertype == ITER_VALUES: |
| 10297 | * ret = v.values |
| 10298 | * elif self.itertype == ITER_ITEMS: # <<<<<<<<<<<<<< |
| 10299 | * ret = (k, v.value()) |
| 10300 | * elif self.itertype == ITER_XVALUES: |
| 10301 | */ |
| 10302 | case __pyx_e_9xmmsvalue_ITER_ITEMS: |
| 10303 | |
| 10304 | /* "xmmsvalue.pyx":570 |
| 10305 | * ret = v.values |
| 10306 | * elif self.itertype == ITER_ITEMS: |
| 10307 | * ret = (k, v.value()) # <<<<<<<<<<<<<< |
| 10308 | * elif self.itertype == ITER_XVALUES: |
| 10309 | * ret = v |
| 10310 | */ |
| 10311 | __pyx_t_4 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_v->__pyx_vtab)->value(__pyx_v_v, 0); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__10311; goto __pyx_L1_error;} |
| 10312 | __Pyx_GOTREF(__pyx_t_4); |
| 10313 | __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__10313; goto __pyx_L1_error;} |
| 10314 | __Pyx_GOTREF(__pyx_t_5); |
| 10315 | __Pyx_INCREF(__pyx_v_k)( ((PyObject*)(__pyx_v_k))->ob_refcnt++); |
| 10316 | PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_k)(((PyTupleObject *)(__pyx_t_5))->ob_item[0] = __pyx_v_k); |
| 10317 | __Pyx_GIVEREF(__pyx_v_k); |
| 10318 | PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4)(((PyTupleObject *)(__pyx_t_5))->ob_item[1] = __pyx_t_4); |
| 10319 | __Pyx_GIVEREF(__pyx_t_4); |
| 10320 | __pyx_t_4 = 0; |
| 10321 | __pyx_v_ret = __pyx_t_5; |
| 10322 | __pyx_t_5 = 0; |
| 10323 | break; |
| 10324 | |
| 10325 | /* "xmmsvalue.pyx":571 |
| 10326 | * elif self.itertype == ITER_ITEMS: |
| 10327 | * ret = (k, v.value()) |
| 10328 | * elif self.itertype == ITER_XVALUES: # <<<<<<<<<<<<<< |
| 10329 | * ret = v |
| 10330 | * elif self.itertype == ITER_XITEMS: |
| 10331 | */ |
| 10332 | case __pyx_e_9xmmsvalue_ITER_XVALUES: |
| 10333 | |
| 10334 | /* "xmmsvalue.pyx":572 |
| 10335 | * ret = (k, v.value()) |
| 10336 | * elif self.itertype == ITER_XVALUES: |
| 10337 | * ret = v # <<<<<<<<<<<<<< |
| 10338 | * elif self.itertype == ITER_XITEMS: |
| 10339 | * ret = (k, v) |
| 10340 | */ |
| 10341 | __Pyx_INCREF(((PyObject *)__pyx_v_v))( ((PyObject*)(((PyObject *)__pyx_v_v)))->ob_refcnt++); |
| 10342 | __pyx_v_ret = ((PyObject *)__pyx_v_v); |
| 10343 | break; |
| 10344 | |
| 10345 | /* "xmmsvalue.pyx":573 |
| 10346 | * elif self.itertype == ITER_XVALUES: |
| 10347 | * ret = v |
| 10348 | * elif self.itertype == ITER_XITEMS: # <<<<<<<<<<<<<< |
| 10349 | * ret = (k, v) |
| 10350 | * else: |
| 10351 | */ |
| 10352 | case __pyx_e_9xmmsvalue_ITER_XITEMS: |
| 10353 | |
| 10354 | /* "xmmsvalue.pyx":574 |
| 10355 | * ret = v |
| 10356 | * elif self.itertype == ITER_XITEMS: |
| 10357 | * ret = (k, v) # <<<<<<<<<<<<<< |
| 10358 | * else: |
| 10359 | * # Should never be reached |
| 10360 | */ |
| 10361 | __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__10361; goto __pyx_L1_error;} |
| 10362 | __Pyx_GOTREF(__pyx_t_5); |
| 10363 | __Pyx_INCREF(__pyx_v_k)( ((PyObject*)(__pyx_v_k))->ob_refcnt++); |
| 10364 | PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_k)(((PyTupleObject *)(__pyx_t_5))->ob_item[0] = __pyx_v_k); |
| 10365 | __Pyx_GIVEREF(__pyx_v_k); |
| 10366 | __Pyx_INCREF(((PyObject *)__pyx_v_v))( ((PyObject*)(((PyObject *)__pyx_v_v)))->ob_refcnt++); |
| 10367 | PyTuple_SET_ITEM(__pyx_t_5, 1, ((PyObject *)__pyx_v_v))(((PyTupleObject *)(__pyx_t_5))->ob_item[1] = ((PyObject * )__pyx_v_v)); |
| 10368 | __Pyx_GIVEREF(((PyObject *)__pyx_v_v)); |
| 10369 | __pyx_v_ret = __pyx_t_5; |
| 10370 | __pyx_t_5 = 0; |
| 10371 | break; |
| 10372 | default: |
| 10373 | |
| 10374 | /* "xmmsvalue.pyx":577 |
| 10375 | * else: |
| 10376 | * # Should never be reached |
| 10377 | * raise RuntimeError("Unknown iter type") # <<<<<<<<<<<<<< |
| 10378 | * xmmsv_dict_iter_next(self.diter) |
| 10379 | * return ret |
| 10380 | */ |
| 10381 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__19, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__10381; goto __pyx_L1_error;} |
| 10382 | __Pyx_GOTREF(__pyx_t_5); |
| 10383 | __Pyx_Raise(__pyx_t_5, 0, 0, 0); |
| 10384 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 10385 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__10385; goto __pyx_L1_error;} |
| 10386 | break; |
| 10387 | } |
| 10388 | } |
| 10389 | __pyx_L4:; |
| 10390 | |
| 10391 | /* "xmmsvalue.pyx":578 |
| 10392 | * # Should never be reached |
| 10393 | * raise RuntimeError("Unknown iter type") |
| 10394 | * xmmsv_dict_iter_next(self.diter) # <<<<<<<<<<<<<< |
| 10395 | * return ret |
| 10396 | * raise StopIteration() |
| 10397 | */ |
| 10398 | xmmsv_dict_iter_next(__pyx_v_self->diter); |
| 10399 | |
| 10400 | /* "xmmsvalue.pyx":579 |
| 10401 | * raise RuntimeError("Unknown iter type") |
| 10402 | * xmmsv_dict_iter_next(self.diter) |
| 10403 | * return ret # <<<<<<<<<<<<<< |
| 10404 | * raise StopIteration() |
| 10405 | * |
| 10406 | */ |
| 10407 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10408 | __Pyx_INCREF(__pyx_v_ret)( ((PyObject*)(__pyx_v_ret))->ob_refcnt++); |
| 10409 | __pyx_r = __pyx_v_ret; |
| 10410 | goto __pyx_L0; |
| 10411 | } |
| 10412 | |
| 10413 | /* "xmmsvalue.pyx":580 |
| 10414 | * xmmsv_dict_iter_next(self.diter) |
| 10415 | * return ret |
| 10416 | * raise StopIteration() # <<<<<<<<<<<<<< |
| 10417 | * |
| 10418 | * cpdef reset(self): |
| 10419 | */ |
| 10420 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_StopIteration, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__10420; goto __pyx_L1_error;} |
| 10421 | __Pyx_GOTREF(__pyx_t_5); |
| 10422 | __Pyx_Raise(__pyx_t_5, 0, 0, 0); |
| 10423 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 10424 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__10424; goto __pyx_L1_error;} |
| 10425 | |
| 10426 | /* "xmmsvalue.pyx":556 |
| 10427 | * return self |
| 10428 | * |
| 10429 | * def __next__(self): # <<<<<<<<<<<<<< |
| 10430 | * cdef char *key = NULL |
| 10431 | * cdef xmmsv_t *value = NULL |
| 10432 | */ |
| 10433 | |
| 10434 | /* function exit code */ |
| 10435 | __pyx_L1_error:; |
| 10436 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 10437 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 10438 | __Pyx_AddTraceback("xmmsvalue.AttributesIterator.__next__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10439 | __pyx_r = NULL((void*)0); |
| 10440 | __pyx_L0:; |
| 10441 | __Pyx_XDECREF(__pyx_v_k)do { if ((__pyx_v_k) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_k))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_k)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_k)))); } while (0); } while (0); |
| 10442 | __Pyx_XDECREF(__pyx_v_ret)do { if ((__pyx_v_ret) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_ret))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(__pyx_v_ret)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_ret)))); } while (0); } while (0); |
| 10443 | __Pyx_XDECREF((PyObject *)__pyx_v_v)do { if (((PyObject *)__pyx_v_v) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_v))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_v) ))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_v)))); } while (0); } while (0); |
| 10444 | __Pyx_XGIVEREF(__pyx_r); |
| 10445 | __Pyx_RefNannyFinishContext(); |
| 10446 | return __pyx_r; |
| 10447 | } |
| 10448 | |
| 10449 | /* "xmmsvalue.pyx":582 |
| 10450 | * raise StopIteration() |
| 10451 | * |
| 10452 | * cpdef reset(self): # <<<<<<<<<<<<<< |
| 10453 | * xmmsv_dict_iter_first(self.diter) |
| 10454 | * |
| 10455 | */ |
| 10456 | |
| 10457 | static PyObject *__pyx_pw_9xmmsvalue_18AttributesIterator_11reset(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 10458 | static PyObject *__pyx_f_9xmmsvalue_18AttributesIterator_reset(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self, int __pyx_skip_dispatch) { |
| 10459 | PyObject *__pyx_r = NULL((void*)0); |
| 10460 | __Pyx_RefNannyDeclarations |
| 10461 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 10462 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 10463 | int __pyx_lineno = 0; |
| 10464 | const char *__pyx_filename = NULL((void*)0); |
| 10465 | int __pyx_clineno = 0; |
| 10466 | __Pyx_RefNannySetupContext("reset", 0); |
| 10467 | /* Check if called by wrapper */ |
| 10468 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 10469 | /* Check if overridden in Python */ |
| 10470 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 10471 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_reset); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__10471; goto __pyx_L1_error;} |
| 10472 | __Pyx_GOTREF(__pyx_t_1); |
| 10473 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_18AttributesIterator_11reset)) { |
| 10474 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10475 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__10475; goto __pyx_L1_error;} |
| 10476 | __Pyx_GOTREF(__pyx_t_2); |
| 10477 | __pyx_r = __pyx_t_2; |
| 10478 | __pyx_t_2 = 0; |
| 10479 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 10480 | goto __pyx_L0; |
| 10481 | } |
| 10482 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 10483 | } |
| 10484 | |
| 10485 | /* "xmmsvalue.pyx":583 |
| 10486 | * |
| 10487 | * cpdef reset(self): |
| 10488 | * xmmsv_dict_iter_first(self.diter) # <<<<<<<<<<<<<< |
| 10489 | * |
| 10490 | * |
| 10491 | */ |
| 10492 | xmmsv_dict_iter_first(__pyx_v_self->diter); |
| 10493 | |
| 10494 | /* "xmmsvalue.pyx":582 |
| 10495 | * raise StopIteration() |
| 10496 | * |
| 10497 | * cpdef reset(self): # <<<<<<<<<<<<<< |
| 10498 | * xmmsv_dict_iter_first(self.diter) |
| 10499 | * |
| 10500 | */ |
| 10501 | |
| 10502 | /* function exit code */ |
| 10503 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 10504 | goto __pyx_L0; |
| 10505 | __pyx_L1_error:; |
| 10506 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 10507 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 10508 | __Pyx_AddTraceback("xmmsvalue.AttributesIterator.reset", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10509 | __pyx_r = 0; |
| 10510 | __pyx_L0:; |
| 10511 | __Pyx_XGIVEREF(__pyx_r); |
| 10512 | __Pyx_RefNannyFinishContext(); |
| 10513 | return __pyx_r; |
| 10514 | } |
| 10515 | |
| 10516 | /* Python wrapper */ |
| 10517 | static PyObject *__pyx_pw_9xmmsvalue_18AttributesIterator_11reset(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 10518 | static char __pyx_doc_9xmmsvalue_18AttributesIterator_10reset[] = "AttributesIterator.reset(self)"; |
| 10519 | static PyObject *__pyx_pw_9xmmsvalue_18AttributesIterator_11reset(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 10520 | PyObject *__pyx_r = 0; |
| 10521 | __Pyx_RefNannyDeclarations |
| 10522 | __Pyx_RefNannySetupContext("reset (wrapper)", 0); |
| 10523 | __pyx_r = __pyx_pf_9xmmsvalue_18AttributesIterator_10reset(((struct __pyx_obj_9xmmsvalue_AttributesIterator *)__pyx_v_self)); |
| 10524 | |
| 10525 | /* function exit code */ |
| 10526 | __Pyx_RefNannyFinishContext(); |
| 10527 | return __pyx_r; |
| 10528 | } |
| 10529 | |
| 10530 | static PyObject *__pyx_pf_9xmmsvalue_18AttributesIterator_10reset(struct __pyx_obj_9xmmsvalue_AttributesIterator *__pyx_v_self) { |
| 10531 | PyObject *__pyx_r = NULL((void*)0); |
| 10532 | __Pyx_RefNannyDeclarations |
| 10533 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 10534 | int __pyx_lineno = 0; |
| 10535 | const char *__pyx_filename = NULL((void*)0); |
| 10536 | int __pyx_clineno = 0; |
| 10537 | __Pyx_RefNannySetupContext("reset", 0); |
| 10538 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10539 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_AttributesIterator *)__pyx_v_self->__pyx_vtab)->reset(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__10539; goto __pyx_L1_error;} |
| 10540 | __Pyx_GOTREF(__pyx_t_1); |
| 10541 | __pyx_r = __pyx_t_1; |
| 10542 | __pyx_t_1 = 0; |
| 10543 | goto __pyx_L0; |
| 10544 | |
| 10545 | /* function exit code */ |
| 10546 | __pyx_L1_error:; |
| 10547 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 10548 | __Pyx_AddTraceback("xmmsvalue.AttributesIterator.reset", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10549 | __pyx_r = NULL((void*)0); |
| 10550 | __pyx_L0:; |
| 10551 | __Pyx_XGIVEREF(__pyx_r); |
| 10552 | __Pyx_RefNannyFinishContext(); |
| 10553 | return __pyx_r; |
| 10554 | } |
| 10555 | |
| 10556 | /* "xmmsvalue.pyx":587 |
| 10557 | * |
| 10558 | * cdef class CollectionAttributes(CollectionRef): |
| 10559 | * def __init__(self, Collection c): # <<<<<<<<<<<<<< |
| 10560 | * if c.coll == NULL: |
| 10561 | * raise RuntimeError("Uninitialized collection") |
| 10562 | */ |
| 10563 | |
| 10564 | /* Python wrapper */ |
| 10565 | static int __pyx_pw_9xmmsvalue_20CollectionAttributes_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 10566 | static int __pyx_pw_9xmmsvalue_20CollectionAttributes_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 10567 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c = 0; |
| 10568 | int __pyx_lineno = 0; |
| 10569 | const char *__pyx_filename = NULL((void*)0); |
| 10570 | int __pyx_clineno = 0; |
| 10571 | int __pyx_r; |
| 10572 | __Pyx_RefNannyDeclarations |
| 10573 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 10574 | { |
| 10575 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_c,0}; |
| 10576 | PyObject* values[1] = {0}; |
| 10577 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 10578 | Py_ssize_t kw_args; |
| 10579 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 10580 | switch (pos_args) { |
| 10581 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 10582 | case 0: break; |
| 10583 | default: goto __pyx_L5_argtuple_error; |
| 10584 | } |
| 10585 | kw_args = PyDict_Size(__pyx_kwds); |
| 10586 | switch (pos_args) { |
| 10587 | case 0: |
| 10588 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_c)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_c )) != 0), 1)) kw_args--; |
| 10589 | else goto __pyx_L5_argtuple_error; |
| 10590 | } |
| 10591 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 10592 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__10592; goto __pyx_L3_error;} |
| 10593 | } |
| 10594 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) != 1) { |
| 10595 | goto __pyx_L5_argtuple_error; |
| 10596 | } else { |
| 10597 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 10598 | } |
| 10599 | __pyx_v_c = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 10600 | } |
| 10601 | goto __pyx_L4_argument_unpacking_done; |
| 10602 | __pyx_L5_argtuple_error:; |
| 10603 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__10603; goto __pyx_L3_error;} |
| 10604 | __pyx_L3_error:; |
| 10605 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10606 | __Pyx_RefNannyFinishContext(); |
| 10607 | return -1; |
| 10608 | __pyx_L4_argument_unpacking_done:; |
| 10609 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), __pyx_ptype_9xmmsvalue_Collection, 1, "c", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c ), __pyx_ptype_9xmmsvalue_Collection, 1, "c", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__10609; goto __pyx_L1_error;} |
| 10610 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes___init__(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self), __pyx_v_c); |
| 10611 | |
| 10612 | /* function exit code */ |
| 10613 | goto __pyx_L0; |
| 10614 | __pyx_L1_error:; |
| 10615 | __pyx_r = -1; |
| 10616 | __pyx_L0:; |
| 10617 | __Pyx_RefNannyFinishContext(); |
| 10618 | return __pyx_r; |
| 10619 | } |
| 10620 | |
| 10621 | static int __pyx_pf_9xmmsvalue_20CollectionAttributes___init__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c) { |
| 10622 | int __pyx_r; |
| 10623 | __Pyx_RefNannyDeclarations |
| 10624 | int __pyx_t_1; |
| 10625 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 10626 | int __pyx_lineno = 0; |
| 10627 | const char *__pyx_filename = NULL((void*)0); |
| 10628 | int __pyx_clineno = 0; |
| 10629 | __Pyx_RefNannySetupContext("__init__", 0); |
| 10630 | |
| 10631 | /* "xmmsvalue.pyx":588 |
| 10632 | * cdef class CollectionAttributes(CollectionRef): |
| 10633 | * def __init__(self, Collection c): |
| 10634 | * if c.coll == NULL: # <<<<<<<<<<<<<< |
| 10635 | * raise RuntimeError("Uninitialized collection") |
| 10636 | * self.set_collection(c.coll) |
| 10637 | */ |
| 10638 | __pyx_t_1 = ((__pyx_v_c->__pyx_base.coll == NULL((void*)0)) != 0); |
| 10639 | if (__pyx_t_1) { |
| 10640 | |
| 10641 | /* "xmmsvalue.pyx":589 |
| 10642 | * def __init__(self, Collection c): |
| 10643 | * if c.coll == NULL: |
| 10644 | * raise RuntimeError("Uninitialized collection") # <<<<<<<<<<<<<< |
| 10645 | * self.set_collection(c.coll) |
| 10646 | * |
| 10647 | */ |
| 10648 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__20, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__10648; goto __pyx_L1_error;} |
| 10649 | __Pyx_GOTREF(__pyx_t_2); |
| 10650 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 10651 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 10652 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__10652; goto __pyx_L1_error;} |
| 10653 | } |
| 10654 | |
| 10655 | /* "xmmsvalue.pyx":590 |
| 10656 | * if c.coll == NULL: |
| 10657 | * raise RuntimeError("Uninitialized collection") |
| 10658 | * self.set_collection(c.coll) # <<<<<<<<<<<<<< |
| 10659 | * |
| 10660 | * cpdef get_dict(self): |
| 10661 | */ |
| 10662 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.set_collection(((struct __pyx_obj_9xmmsvalue_CollectionRef *)__pyx_v_self), __pyx_v_c->__pyx_base.coll); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__10662; goto __pyx_L1_error;} |
| 10663 | __Pyx_GOTREF(__pyx_t_2); |
| 10664 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 10665 | |
| 10666 | /* "xmmsvalue.pyx":587 |
| 10667 | * |
| 10668 | * cdef class CollectionAttributes(CollectionRef): |
| 10669 | * def __init__(self, Collection c): # <<<<<<<<<<<<<< |
| 10670 | * if c.coll == NULL: |
| 10671 | * raise RuntimeError("Uninitialized collection") |
| 10672 | */ |
| 10673 | |
| 10674 | /* function exit code */ |
| 10675 | __pyx_r = 0; |
| 10676 | goto __pyx_L0; |
| 10677 | __pyx_L1_error:; |
| 10678 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 10679 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10680 | __pyx_r = -1; |
| 10681 | __pyx_L0:; |
| 10682 | __Pyx_RefNannyFinishContext(); |
| 10683 | return __pyx_r; |
| 10684 | } |
| 10685 | |
| 10686 | /* "xmmsvalue.pyx":592 |
| 10687 | * self.set_collection(c.coll) |
| 10688 | * |
| 10689 | * cpdef get_dict(self): # <<<<<<<<<<<<<< |
| 10690 | * """Get a copy of attributes dict""" |
| 10691 | * return dict(self.iteritems()) |
| 10692 | */ |
| 10693 | |
| 10694 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_3get_dict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 10695 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_get_dict(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 10696 | PyObject *__pyx_r = NULL((void*)0); |
| 10697 | __Pyx_RefNannyDeclarations |
| 10698 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 10699 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 10700 | int __pyx_lineno = 0; |
| 10701 | const char *__pyx_filename = NULL((void*)0); |
| 10702 | int __pyx_clineno = 0; |
| 10703 | __Pyx_RefNannySetupContext("get_dict", 0); |
| 10704 | /* Check if called by wrapper */ |
| 10705 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 10706 | /* Check if overridden in Python */ |
| 10707 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 10708 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_dict); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__10708; goto __pyx_L1_error;} |
| 10709 | __Pyx_GOTREF(__pyx_t_1); |
| 10710 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_3get_dict)) { |
| 10711 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10712 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__10712; goto __pyx_L1_error;} |
| 10713 | __Pyx_GOTREF(__pyx_t_2); |
| 10714 | __pyx_r = __pyx_t_2; |
| 10715 | __pyx_t_2 = 0; |
| 10716 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 10717 | goto __pyx_L0; |
| 10718 | } |
| 10719 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 10720 | } |
| 10721 | |
| 10722 | /* "xmmsvalue.pyx":594 |
| 10723 | * cpdef get_dict(self): |
| 10724 | * """Get a copy of attributes dict""" |
| 10725 | * return dict(self.iteritems()) # <<<<<<<<<<<<<< |
| 10726 | * |
| 10727 | * cpdef iterkeys(self): |
| 10728 | */ |
| 10729 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10730 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iteritems(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__10730; goto __pyx_L1_error;} |
| 10731 | __Pyx_GOTREF(__pyx_t_1); |
| 10732 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__10732; goto __pyx_L1_error;} |
| 10733 | __Pyx_GOTREF(__pyx_t_2); |
| 10734 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 10735 | __Pyx_GIVEREF(__pyx_t_1); |
| 10736 | __pyx_t_1 = 0; |
| 10737 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyDict_Type))), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__10737; goto __pyx_L1_error;} |
| 10738 | __Pyx_GOTREF(__pyx_t_1); |
| 10739 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 10740 | __pyx_r = __pyx_t_1; |
| 10741 | __pyx_t_1 = 0; |
| 10742 | goto __pyx_L0; |
| 10743 | |
| 10744 | /* "xmmsvalue.pyx":592 |
| 10745 | * self.set_collection(c.coll) |
| 10746 | * |
| 10747 | * cpdef get_dict(self): # <<<<<<<<<<<<<< |
| 10748 | * """Get a copy of attributes dict""" |
| 10749 | * return dict(self.iteritems()) |
| 10750 | */ |
| 10751 | |
| 10752 | /* function exit code */ |
| 10753 | __pyx_L1_error:; |
| 10754 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 10755 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 10756 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.get_dict", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10757 | __pyx_r = 0; |
| 10758 | __pyx_L0:; |
| 10759 | __Pyx_XGIVEREF(__pyx_r); |
| 10760 | __Pyx_RefNannyFinishContext(); |
| 10761 | return __pyx_r; |
| 10762 | } |
| 10763 | |
| 10764 | /* Python wrapper */ |
| 10765 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_3get_dict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 10766 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_2get_dict[] = "CollectionAttributes.get_dict(self)\nGet a copy of attributes dict"; |
| 10767 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_3get_dict(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 10768 | PyObject *__pyx_r = 0; |
| 10769 | __Pyx_RefNannyDeclarations |
| 10770 | __Pyx_RefNannySetupContext("get_dict (wrapper)", 0); |
| 10771 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_2get_dict(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 10772 | |
| 10773 | /* function exit code */ |
| 10774 | __Pyx_RefNannyFinishContext(); |
| 10775 | return __pyx_r; |
| 10776 | } |
| 10777 | |
| 10778 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_2get_dict(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 10779 | PyObject *__pyx_r = NULL((void*)0); |
| 10780 | __Pyx_RefNannyDeclarations |
| 10781 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 10782 | int __pyx_lineno = 0; |
| 10783 | const char *__pyx_filename = NULL((void*)0); |
| 10784 | int __pyx_clineno = 0; |
| 10785 | __Pyx_RefNannySetupContext("get_dict", 0); |
| 10786 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10787 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->get_dict(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__10787; goto __pyx_L1_error;} |
| 10788 | __Pyx_GOTREF(__pyx_t_1); |
| 10789 | __pyx_r = __pyx_t_1; |
| 10790 | __pyx_t_1 = 0; |
| 10791 | goto __pyx_L0; |
| 10792 | |
| 10793 | /* function exit code */ |
| 10794 | __pyx_L1_error:; |
| 10795 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 10796 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.get_dict", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10797 | __pyx_r = NULL((void*)0); |
| 10798 | __pyx_L0:; |
| 10799 | __Pyx_XGIVEREF(__pyx_r); |
| 10800 | __Pyx_RefNannyFinishContext(); |
| 10801 | return __pyx_r; |
| 10802 | } |
| 10803 | |
| 10804 | /* "xmmsvalue.pyx":596 |
| 10805 | * return dict(self.iteritems()) |
| 10806 | * |
| 10807 | * cpdef iterkeys(self): # <<<<<<<<<<<<<< |
| 10808 | * return AttributesIterator(self, ITER_KEYS) |
| 10809 | * |
| 10810 | */ |
| 10811 | |
| 10812 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_5iterkeys(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 10813 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_iterkeys(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 10814 | PyObject *__pyx_r = NULL((void*)0); |
| 10815 | __Pyx_RefNannyDeclarations |
| 10816 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 10817 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 10818 | int __pyx_lineno = 0; |
| 10819 | const char *__pyx_filename = NULL((void*)0); |
| 10820 | int __pyx_clineno = 0; |
| 10821 | __Pyx_RefNannySetupContext("iterkeys", 0); |
| 10822 | /* Check if called by wrapper */ |
| 10823 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 10824 | /* Check if overridden in Python */ |
| 10825 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 10826 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_iterkeys); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__10826; goto __pyx_L1_error;} |
| 10827 | __Pyx_GOTREF(__pyx_t_1); |
| 10828 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_5iterkeys)) { |
| 10829 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10830 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__10830; goto __pyx_L1_error;} |
| 10831 | __Pyx_GOTREF(__pyx_t_2); |
| 10832 | __pyx_r = __pyx_t_2; |
| 10833 | __pyx_t_2 = 0; |
| 10834 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 10835 | goto __pyx_L0; |
| 10836 | } |
| 10837 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 10838 | } |
| 10839 | |
| 10840 | /* "xmmsvalue.pyx":597 |
| 10841 | * |
| 10842 | * cpdef iterkeys(self): |
| 10843 | * return AttributesIterator(self, ITER_KEYS) # <<<<<<<<<<<<<< |
| 10844 | * |
| 10845 | * cpdef keys(self): |
| 10846 | */ |
| 10847 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10848 | __pyx_t_1 = PyInt_FromLong(__pyx_e_9xmmsvalue_ITER_KEYS); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__10848; goto __pyx_L1_error;} |
| 10849 | __Pyx_GOTREF(__pyx_t_1); |
| 10850 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__10850; goto __pyx_L1_error;} |
| 10851 | __Pyx_GOTREF(__pyx_t_2); |
| 10852 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 10853 | PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 10854 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 10855 | PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[1] = __pyx_t_1); |
| 10856 | __Pyx_GIVEREF(__pyx_t_1); |
| 10857 | __pyx_t_1 = 0; |
| 10858 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_AttributesIterator)), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__10858; goto __pyx_L1_error;} |
| 10859 | __Pyx_GOTREF(__pyx_t_1); |
| 10860 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 10861 | __pyx_r = __pyx_t_1; |
| 10862 | __pyx_t_1 = 0; |
| 10863 | goto __pyx_L0; |
| 10864 | |
| 10865 | /* "xmmsvalue.pyx":596 |
| 10866 | * return dict(self.iteritems()) |
| 10867 | * |
| 10868 | * cpdef iterkeys(self): # <<<<<<<<<<<<<< |
| 10869 | * return AttributesIterator(self, ITER_KEYS) |
| 10870 | * |
| 10871 | */ |
| 10872 | |
| 10873 | /* function exit code */ |
| 10874 | __pyx_L1_error:; |
| 10875 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 10876 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 10877 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.iterkeys", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10878 | __pyx_r = 0; |
| 10879 | __pyx_L0:; |
| 10880 | __Pyx_XGIVEREF(__pyx_r); |
| 10881 | __Pyx_RefNannyFinishContext(); |
| 10882 | return __pyx_r; |
| 10883 | } |
| 10884 | |
| 10885 | /* Python wrapper */ |
| 10886 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_5iterkeys(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 10887 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_4iterkeys[] = "CollectionAttributes.iterkeys(self)"; |
| 10888 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_5iterkeys(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 10889 | PyObject *__pyx_r = 0; |
| 10890 | __Pyx_RefNannyDeclarations |
| 10891 | __Pyx_RefNannySetupContext("iterkeys (wrapper)", 0); |
| 10892 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_4iterkeys(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 10893 | |
| 10894 | /* function exit code */ |
| 10895 | __Pyx_RefNannyFinishContext(); |
| 10896 | return __pyx_r; |
| 10897 | } |
| 10898 | |
| 10899 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_4iterkeys(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 10900 | PyObject *__pyx_r = NULL((void*)0); |
| 10901 | __Pyx_RefNannyDeclarations |
| 10902 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 10903 | int __pyx_lineno = 0; |
| 10904 | const char *__pyx_filename = NULL((void*)0); |
| 10905 | int __pyx_clineno = 0; |
| 10906 | __Pyx_RefNannySetupContext("iterkeys", 0); |
| 10907 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10908 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iterkeys(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__10908; goto __pyx_L1_error;} |
| 10909 | __Pyx_GOTREF(__pyx_t_1); |
| 10910 | __pyx_r = __pyx_t_1; |
| 10911 | __pyx_t_1 = 0; |
| 10912 | goto __pyx_L0; |
| 10913 | |
| 10914 | /* function exit code */ |
| 10915 | __pyx_L1_error:; |
| 10916 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 10917 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.iterkeys", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10918 | __pyx_r = NULL((void*)0); |
| 10919 | __pyx_L0:; |
| 10920 | __Pyx_XGIVEREF(__pyx_r); |
| 10921 | __Pyx_RefNannyFinishContext(); |
| 10922 | return __pyx_r; |
| 10923 | } |
| 10924 | |
| 10925 | /* "xmmsvalue.pyx":599 |
| 10926 | * return AttributesIterator(self, ITER_KEYS) |
| 10927 | * |
| 10928 | * cpdef keys(self): # <<<<<<<<<<<<<< |
| 10929 | * return list(self.iterkeys()) |
| 10930 | * |
| 10931 | */ |
| 10932 | |
| 10933 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_7keys(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 10934 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_keys(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 10935 | PyObject *__pyx_r = NULL((void*)0); |
| 10936 | __Pyx_RefNannyDeclarations |
| 10937 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 10938 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 10939 | int __pyx_lineno = 0; |
| 10940 | const char *__pyx_filename = NULL((void*)0); |
| 10941 | int __pyx_clineno = 0; |
| 10942 | __Pyx_RefNannySetupContext("keys", 0); |
| 10943 | /* Check if called by wrapper */ |
| 10944 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 10945 | /* Check if overridden in Python */ |
| 10946 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 10947 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_keys); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__10947; goto __pyx_L1_error;} |
| 10948 | __Pyx_GOTREF(__pyx_t_1); |
| 10949 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_7keys)) { |
| 10950 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10951 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__10951; goto __pyx_L1_error;} |
| 10952 | __Pyx_GOTREF(__pyx_t_2); |
| 10953 | __pyx_r = __pyx_t_2; |
| 10954 | __pyx_t_2 = 0; |
| 10955 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 10956 | goto __pyx_L0; |
| 10957 | } |
| 10958 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 10959 | } |
| 10960 | |
| 10961 | /* "xmmsvalue.pyx":600 |
| 10962 | * |
| 10963 | * cpdef keys(self): |
| 10964 | * return list(self.iterkeys()) # <<<<<<<<<<<<<< |
| 10965 | * |
| 10966 | * cpdef itervalues(self): |
| 10967 | */ |
| 10968 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 10969 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iterkeys(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__10969; goto __pyx_L1_error;} |
| 10970 | __Pyx_GOTREF(__pyx_t_1); |
| 10971 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__10971; goto __pyx_L1_error;} |
| 10972 | __Pyx_GOTREF(__pyx_t_2); |
| 10973 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 10974 | __Pyx_GIVEREF(__pyx_t_1); |
| 10975 | __pyx_t_1 = 0; |
| 10976 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__10976; goto __pyx_L1_error;} |
| 10977 | __Pyx_GOTREF(__pyx_t_1); |
| 10978 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 10979 | __pyx_r = __pyx_t_1; |
| 10980 | __pyx_t_1 = 0; |
| 10981 | goto __pyx_L0; |
| 10982 | |
| 10983 | /* "xmmsvalue.pyx":599 |
| 10984 | * return AttributesIterator(self, ITER_KEYS) |
| 10985 | * |
| 10986 | * cpdef keys(self): # <<<<<<<<<<<<<< |
| 10987 | * return list(self.iterkeys()) |
| 10988 | * |
| 10989 | */ |
| 10990 | |
| 10991 | /* function exit code */ |
| 10992 | __pyx_L1_error:; |
| 10993 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 10994 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 10995 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.keys", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 10996 | __pyx_r = 0; |
| 10997 | __pyx_L0:; |
| 10998 | __Pyx_XGIVEREF(__pyx_r); |
| 10999 | __Pyx_RefNannyFinishContext(); |
| 11000 | return __pyx_r; |
| 11001 | } |
| 11002 | |
| 11003 | /* Python wrapper */ |
| 11004 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_7keys(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11005 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_6keys[] = "CollectionAttributes.keys(self)"; |
| 11006 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_7keys(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11007 | PyObject *__pyx_r = 0; |
| 11008 | __Pyx_RefNannyDeclarations |
| 11009 | __Pyx_RefNannySetupContext("keys (wrapper)", 0); |
| 11010 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_6keys(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11011 | |
| 11012 | /* function exit code */ |
| 11013 | __Pyx_RefNannyFinishContext(); |
| 11014 | return __pyx_r; |
| 11015 | } |
| 11016 | |
| 11017 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_6keys(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11018 | PyObject *__pyx_r = NULL((void*)0); |
| 11019 | __Pyx_RefNannyDeclarations |
| 11020 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11021 | int __pyx_lineno = 0; |
| 11022 | const char *__pyx_filename = NULL((void*)0); |
| 11023 | int __pyx_clineno = 0; |
| 11024 | __Pyx_RefNannySetupContext("keys", 0); |
| 11025 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11026 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->keys(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__11026; goto __pyx_L1_error;} |
| 11027 | __Pyx_GOTREF(__pyx_t_1); |
| 11028 | __pyx_r = __pyx_t_1; |
| 11029 | __pyx_t_1 = 0; |
| 11030 | goto __pyx_L0; |
| 11031 | |
| 11032 | /* function exit code */ |
| 11033 | __pyx_L1_error:; |
| 11034 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11035 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.keys", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11036 | __pyx_r = NULL((void*)0); |
| 11037 | __pyx_L0:; |
| 11038 | __Pyx_XGIVEREF(__pyx_r); |
| 11039 | __Pyx_RefNannyFinishContext(); |
| 11040 | return __pyx_r; |
| 11041 | } |
| 11042 | |
| 11043 | /* "xmmsvalue.pyx":602 |
| 11044 | * return list(self.iterkeys()) |
| 11045 | * |
| 11046 | * cpdef itervalues(self): # <<<<<<<<<<<<<< |
| 11047 | * return AttributesIterator(self, ITER_VALUES) |
| 11048 | * |
| 11049 | */ |
| 11050 | |
| 11051 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_9itervalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11052 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_itervalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 11053 | PyObject *__pyx_r = NULL((void*)0); |
| 11054 | __Pyx_RefNannyDeclarations |
| 11055 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11056 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 11057 | int __pyx_lineno = 0; |
| 11058 | const char *__pyx_filename = NULL((void*)0); |
| 11059 | int __pyx_clineno = 0; |
| 11060 | __Pyx_RefNannySetupContext("itervalues", 0); |
| 11061 | /* Check if called by wrapper */ |
| 11062 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 11063 | /* Check if overridden in Python */ |
| 11064 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 11065 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_itervalues); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__11065; goto __pyx_L1_error;} |
| 11066 | __Pyx_GOTREF(__pyx_t_1); |
| 11067 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_9itervalues)) { |
| 11068 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11069 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__11069; goto __pyx_L1_error;} |
| 11070 | __Pyx_GOTREF(__pyx_t_2); |
| 11071 | __pyx_r = __pyx_t_2; |
| 11072 | __pyx_t_2 = 0; |
| 11073 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11074 | goto __pyx_L0; |
| 11075 | } |
| 11076 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11077 | } |
| 11078 | |
| 11079 | /* "xmmsvalue.pyx":603 |
| 11080 | * |
| 11081 | * cpdef itervalues(self): |
| 11082 | * return AttributesIterator(self, ITER_VALUES) # <<<<<<<<<<<<<< |
| 11083 | * |
| 11084 | * cpdef iterxvalues(self): |
| 11085 | */ |
| 11086 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11087 | __pyx_t_1 = PyInt_FromLong(__pyx_e_9xmmsvalue_ITER_VALUES); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__11087; goto __pyx_L1_error;} |
| 11088 | __Pyx_GOTREF(__pyx_t_1); |
| 11089 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__11089; goto __pyx_L1_error;} |
| 11090 | __Pyx_GOTREF(__pyx_t_2); |
| 11091 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 11092 | PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 11093 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 11094 | PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[1] = __pyx_t_1); |
| 11095 | __Pyx_GIVEREF(__pyx_t_1); |
| 11096 | __pyx_t_1 = 0; |
| 11097 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_AttributesIterator)), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__11097; goto __pyx_L1_error;} |
| 11098 | __Pyx_GOTREF(__pyx_t_1); |
| 11099 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 11100 | __pyx_r = __pyx_t_1; |
| 11101 | __pyx_t_1 = 0; |
| 11102 | goto __pyx_L0; |
| 11103 | |
| 11104 | /* "xmmsvalue.pyx":602 |
| 11105 | * return list(self.iterkeys()) |
| 11106 | * |
| 11107 | * cpdef itervalues(self): # <<<<<<<<<<<<<< |
| 11108 | * return AttributesIterator(self, ITER_VALUES) |
| 11109 | * |
| 11110 | */ |
| 11111 | |
| 11112 | /* function exit code */ |
| 11113 | __pyx_L1_error:; |
| 11114 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11115 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 11116 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.itervalues", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11117 | __pyx_r = 0; |
| 11118 | __pyx_L0:; |
| 11119 | __Pyx_XGIVEREF(__pyx_r); |
| 11120 | __Pyx_RefNannyFinishContext(); |
| 11121 | return __pyx_r; |
| 11122 | } |
| 11123 | |
| 11124 | /* Python wrapper */ |
| 11125 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_9itervalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11126 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_8itervalues[] = "CollectionAttributes.itervalues(self)"; |
| 11127 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_9itervalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11128 | PyObject *__pyx_r = 0; |
| 11129 | __Pyx_RefNannyDeclarations |
| 11130 | __Pyx_RefNannySetupContext("itervalues (wrapper)", 0); |
| 11131 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_8itervalues(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11132 | |
| 11133 | /* function exit code */ |
| 11134 | __Pyx_RefNannyFinishContext(); |
| 11135 | return __pyx_r; |
| 11136 | } |
| 11137 | |
| 11138 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_8itervalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11139 | PyObject *__pyx_r = NULL((void*)0); |
| 11140 | __Pyx_RefNannyDeclarations |
| 11141 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11142 | int __pyx_lineno = 0; |
| 11143 | const char *__pyx_filename = NULL((void*)0); |
| 11144 | int __pyx_clineno = 0; |
| 11145 | __Pyx_RefNannySetupContext("itervalues", 0); |
| 11146 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11147 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->itervalues(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__11147; goto __pyx_L1_error;} |
| 11148 | __Pyx_GOTREF(__pyx_t_1); |
| 11149 | __pyx_r = __pyx_t_1; |
| 11150 | __pyx_t_1 = 0; |
| 11151 | goto __pyx_L0; |
| 11152 | |
| 11153 | /* function exit code */ |
| 11154 | __pyx_L1_error:; |
| 11155 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11156 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.itervalues", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11157 | __pyx_r = NULL((void*)0); |
| 11158 | __pyx_L0:; |
| 11159 | __Pyx_XGIVEREF(__pyx_r); |
| 11160 | __Pyx_RefNannyFinishContext(); |
| 11161 | return __pyx_r; |
| 11162 | } |
| 11163 | |
| 11164 | /* "xmmsvalue.pyx":605 |
| 11165 | * return AttributesIterator(self, ITER_VALUES) |
| 11166 | * |
| 11167 | * cpdef iterxvalues(self): # <<<<<<<<<<<<<< |
| 11168 | * return AttributesIterator(self, ITER_XVALUES) |
| 11169 | * |
| 11170 | */ |
| 11171 | |
| 11172 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_11iterxvalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11173 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_iterxvalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 11174 | PyObject *__pyx_r = NULL((void*)0); |
| 11175 | __Pyx_RefNannyDeclarations |
| 11176 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11177 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 11178 | int __pyx_lineno = 0; |
| 11179 | const char *__pyx_filename = NULL((void*)0); |
| 11180 | int __pyx_clineno = 0; |
| 11181 | __Pyx_RefNannySetupContext("iterxvalues", 0); |
| 11182 | /* Check if called by wrapper */ |
| 11183 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 11184 | /* Check if overridden in Python */ |
| 11185 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 11186 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_iterxvalues); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__11186; goto __pyx_L1_error;} |
| 11187 | __Pyx_GOTREF(__pyx_t_1); |
| 11188 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_11iterxvalues)) { |
| 11189 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11190 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__11190; goto __pyx_L1_error;} |
| 11191 | __Pyx_GOTREF(__pyx_t_2); |
| 11192 | __pyx_r = __pyx_t_2; |
| 11193 | __pyx_t_2 = 0; |
| 11194 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11195 | goto __pyx_L0; |
| 11196 | } |
| 11197 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11198 | } |
| 11199 | |
| 11200 | /* "xmmsvalue.pyx":606 |
| 11201 | * |
| 11202 | * cpdef iterxvalues(self): |
| 11203 | * return AttributesIterator(self, ITER_XVALUES) # <<<<<<<<<<<<<< |
| 11204 | * |
| 11205 | * cpdef values(self): |
| 11206 | */ |
| 11207 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11208 | __pyx_t_1 = PyInt_FromLong(__pyx_e_9xmmsvalue_ITER_XVALUES); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__11208; goto __pyx_L1_error;} |
| 11209 | __Pyx_GOTREF(__pyx_t_1); |
| 11210 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__11210; goto __pyx_L1_error;} |
| 11211 | __Pyx_GOTREF(__pyx_t_2); |
| 11212 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 11213 | PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 11214 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 11215 | PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[1] = __pyx_t_1); |
| 11216 | __Pyx_GIVEREF(__pyx_t_1); |
| 11217 | __pyx_t_1 = 0; |
| 11218 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_AttributesIterator)), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__11218; goto __pyx_L1_error;} |
| 11219 | __Pyx_GOTREF(__pyx_t_1); |
| 11220 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 11221 | __pyx_r = __pyx_t_1; |
| 11222 | __pyx_t_1 = 0; |
| 11223 | goto __pyx_L0; |
| 11224 | |
| 11225 | /* "xmmsvalue.pyx":605 |
| 11226 | * return AttributesIterator(self, ITER_VALUES) |
| 11227 | * |
| 11228 | * cpdef iterxvalues(self): # <<<<<<<<<<<<<< |
| 11229 | * return AttributesIterator(self, ITER_XVALUES) |
| 11230 | * |
| 11231 | */ |
| 11232 | |
| 11233 | /* function exit code */ |
| 11234 | __pyx_L1_error:; |
| 11235 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11236 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 11237 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.iterxvalues", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11238 | __pyx_r = 0; |
| 11239 | __pyx_L0:; |
| 11240 | __Pyx_XGIVEREF(__pyx_r); |
| 11241 | __Pyx_RefNannyFinishContext(); |
| 11242 | return __pyx_r; |
| 11243 | } |
| 11244 | |
| 11245 | /* Python wrapper */ |
| 11246 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_11iterxvalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11247 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_10iterxvalues[] = "CollectionAttributes.iterxvalues(self)"; |
| 11248 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_11iterxvalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11249 | PyObject *__pyx_r = 0; |
| 11250 | __Pyx_RefNannyDeclarations |
| 11251 | __Pyx_RefNannySetupContext("iterxvalues (wrapper)", 0); |
| 11252 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_10iterxvalues(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11253 | |
| 11254 | /* function exit code */ |
| 11255 | __Pyx_RefNannyFinishContext(); |
| 11256 | return __pyx_r; |
| 11257 | } |
| 11258 | |
| 11259 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_10iterxvalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11260 | PyObject *__pyx_r = NULL((void*)0); |
| 11261 | __Pyx_RefNannyDeclarations |
| 11262 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11263 | int __pyx_lineno = 0; |
| 11264 | const char *__pyx_filename = NULL((void*)0); |
| 11265 | int __pyx_clineno = 0; |
| 11266 | __Pyx_RefNannySetupContext("iterxvalues", 0); |
| 11267 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11268 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iterxvalues(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__11268; goto __pyx_L1_error;} |
| 11269 | __Pyx_GOTREF(__pyx_t_1); |
| 11270 | __pyx_r = __pyx_t_1; |
| 11271 | __pyx_t_1 = 0; |
| 11272 | goto __pyx_L0; |
| 11273 | |
| 11274 | /* function exit code */ |
| 11275 | __pyx_L1_error:; |
| 11276 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11277 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.iterxvalues", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11278 | __pyx_r = NULL((void*)0); |
| 11279 | __pyx_L0:; |
| 11280 | __Pyx_XGIVEREF(__pyx_r); |
| 11281 | __Pyx_RefNannyFinishContext(); |
| 11282 | return __pyx_r; |
| 11283 | } |
| 11284 | |
| 11285 | /* "xmmsvalue.pyx":608 |
| 11286 | * return AttributesIterator(self, ITER_XVALUES) |
| 11287 | * |
| 11288 | * cpdef values(self): # <<<<<<<<<<<<<< |
| 11289 | * return list(self.itervalues()) |
| 11290 | * |
| 11291 | */ |
| 11292 | |
| 11293 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_13values(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11294 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_values(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 11295 | PyObject *__pyx_r = NULL((void*)0); |
| 11296 | __Pyx_RefNannyDeclarations |
| 11297 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11298 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 11299 | int __pyx_lineno = 0; |
| 11300 | const char *__pyx_filename = NULL((void*)0); |
| 11301 | int __pyx_clineno = 0; |
| 11302 | __Pyx_RefNannySetupContext("values", 0); |
| 11303 | /* Check if called by wrapper */ |
| 11304 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 11305 | /* Check if overridden in Python */ |
| 11306 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 11307 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_values); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__11307; goto __pyx_L1_error;} |
| 11308 | __Pyx_GOTREF(__pyx_t_1); |
| 11309 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_13values)) { |
| 11310 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11311 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__11311; goto __pyx_L1_error;} |
| 11312 | __Pyx_GOTREF(__pyx_t_2); |
| 11313 | __pyx_r = __pyx_t_2; |
| 11314 | __pyx_t_2 = 0; |
| 11315 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11316 | goto __pyx_L0; |
| 11317 | } |
| 11318 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11319 | } |
| 11320 | |
| 11321 | /* "xmmsvalue.pyx":609 |
| 11322 | * |
| 11323 | * cpdef values(self): |
| 11324 | * return list(self.itervalues()) # <<<<<<<<<<<<<< |
| 11325 | * |
| 11326 | * cpdef xvalues(self): |
| 11327 | */ |
| 11328 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11329 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->itervalues(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__11329; goto __pyx_L1_error;} |
| 11330 | __Pyx_GOTREF(__pyx_t_1); |
| 11331 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__11331; goto __pyx_L1_error;} |
| 11332 | __Pyx_GOTREF(__pyx_t_2); |
| 11333 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 11334 | __Pyx_GIVEREF(__pyx_t_1); |
| 11335 | __pyx_t_1 = 0; |
| 11336 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__11336; goto __pyx_L1_error;} |
| 11337 | __Pyx_GOTREF(__pyx_t_1); |
| 11338 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 11339 | __pyx_r = __pyx_t_1; |
| 11340 | __pyx_t_1 = 0; |
| 11341 | goto __pyx_L0; |
| 11342 | |
| 11343 | /* "xmmsvalue.pyx":608 |
| 11344 | * return AttributesIterator(self, ITER_XVALUES) |
| 11345 | * |
| 11346 | * cpdef values(self): # <<<<<<<<<<<<<< |
| 11347 | * return list(self.itervalues()) |
| 11348 | * |
| 11349 | */ |
| 11350 | |
| 11351 | /* function exit code */ |
| 11352 | __pyx_L1_error:; |
| 11353 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11354 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 11355 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.values", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11356 | __pyx_r = 0; |
| 11357 | __pyx_L0:; |
| 11358 | __Pyx_XGIVEREF(__pyx_r); |
| 11359 | __Pyx_RefNannyFinishContext(); |
| 11360 | return __pyx_r; |
| 11361 | } |
| 11362 | |
| 11363 | /* Python wrapper */ |
| 11364 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_13values(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11365 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_12values[] = "CollectionAttributes.values(self)"; |
| 11366 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_13values(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11367 | PyObject *__pyx_r = 0; |
| 11368 | __Pyx_RefNannyDeclarations |
| 11369 | __Pyx_RefNannySetupContext("values (wrapper)", 0); |
| 11370 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_12values(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11371 | |
| 11372 | /* function exit code */ |
| 11373 | __Pyx_RefNannyFinishContext(); |
| 11374 | return __pyx_r; |
| 11375 | } |
| 11376 | |
| 11377 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_12values(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11378 | PyObject *__pyx_r = NULL((void*)0); |
| 11379 | __Pyx_RefNannyDeclarations |
| 11380 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11381 | int __pyx_lineno = 0; |
| 11382 | const char *__pyx_filename = NULL((void*)0); |
| 11383 | int __pyx_clineno = 0; |
| 11384 | __Pyx_RefNannySetupContext("values", 0); |
| 11385 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11386 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->values(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__11386; goto __pyx_L1_error;} |
| 11387 | __Pyx_GOTREF(__pyx_t_1); |
| 11388 | __pyx_r = __pyx_t_1; |
| 11389 | __pyx_t_1 = 0; |
| 11390 | goto __pyx_L0; |
| 11391 | |
| 11392 | /* function exit code */ |
| 11393 | __pyx_L1_error:; |
| 11394 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11395 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.values", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11396 | __pyx_r = NULL((void*)0); |
| 11397 | __pyx_L0:; |
| 11398 | __Pyx_XGIVEREF(__pyx_r); |
| 11399 | __Pyx_RefNannyFinishContext(); |
| 11400 | return __pyx_r; |
| 11401 | } |
| 11402 | |
| 11403 | /* "xmmsvalue.pyx":611 |
| 11404 | * return list(self.itervalues()) |
| 11405 | * |
| 11406 | * cpdef xvalues(self): # <<<<<<<<<<<<<< |
| 11407 | * return list(self.iterxvalues()) |
| 11408 | * |
| 11409 | */ |
| 11410 | |
| 11411 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_15xvalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11412 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_xvalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 11413 | PyObject *__pyx_r = NULL((void*)0); |
| 11414 | __Pyx_RefNannyDeclarations |
| 11415 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11416 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 11417 | int __pyx_lineno = 0; |
| 11418 | const char *__pyx_filename = NULL((void*)0); |
| 11419 | int __pyx_clineno = 0; |
| 11420 | __Pyx_RefNannySetupContext("xvalues", 0); |
| 11421 | /* Check if called by wrapper */ |
| 11422 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 11423 | /* Check if overridden in Python */ |
| 11424 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 11425 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_xvalues); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__11425; goto __pyx_L1_error;} |
| 11426 | __Pyx_GOTREF(__pyx_t_1); |
| 11427 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_15xvalues)) { |
| 11428 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11429 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__11429; goto __pyx_L1_error;} |
| 11430 | __Pyx_GOTREF(__pyx_t_2); |
| 11431 | __pyx_r = __pyx_t_2; |
| 11432 | __pyx_t_2 = 0; |
| 11433 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11434 | goto __pyx_L0; |
| 11435 | } |
| 11436 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11437 | } |
| 11438 | |
| 11439 | /* "xmmsvalue.pyx":612 |
| 11440 | * |
| 11441 | * cpdef xvalues(self): |
| 11442 | * return list(self.iterxvalues()) # <<<<<<<<<<<<<< |
| 11443 | * |
| 11444 | * cpdef iteritems(self): |
| 11445 | */ |
| 11446 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11447 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iterxvalues(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__11447; goto __pyx_L1_error;} |
| 11448 | __Pyx_GOTREF(__pyx_t_1); |
| 11449 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__11449; goto __pyx_L1_error;} |
| 11450 | __Pyx_GOTREF(__pyx_t_2); |
| 11451 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 11452 | __Pyx_GIVEREF(__pyx_t_1); |
| 11453 | __pyx_t_1 = 0; |
| 11454 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__11454; goto __pyx_L1_error;} |
| 11455 | __Pyx_GOTREF(__pyx_t_1); |
| 11456 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 11457 | __pyx_r = __pyx_t_1; |
| 11458 | __pyx_t_1 = 0; |
| 11459 | goto __pyx_L0; |
| 11460 | |
| 11461 | /* "xmmsvalue.pyx":611 |
| 11462 | * return list(self.itervalues()) |
| 11463 | * |
| 11464 | * cpdef xvalues(self): # <<<<<<<<<<<<<< |
| 11465 | * return list(self.iterxvalues()) |
| 11466 | * |
| 11467 | */ |
| 11468 | |
| 11469 | /* function exit code */ |
| 11470 | __pyx_L1_error:; |
| 11471 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11472 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 11473 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.xvalues", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11474 | __pyx_r = 0; |
| 11475 | __pyx_L0:; |
| 11476 | __Pyx_XGIVEREF(__pyx_r); |
| 11477 | __Pyx_RefNannyFinishContext(); |
| 11478 | return __pyx_r; |
| 11479 | } |
| 11480 | |
| 11481 | /* Python wrapper */ |
| 11482 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_15xvalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11483 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_14xvalues[] = "CollectionAttributes.xvalues(self)"; |
| 11484 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_15xvalues(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11485 | PyObject *__pyx_r = 0; |
| 11486 | __Pyx_RefNannyDeclarations |
| 11487 | __Pyx_RefNannySetupContext("xvalues (wrapper)", 0); |
| 11488 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_14xvalues(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11489 | |
| 11490 | /* function exit code */ |
| 11491 | __Pyx_RefNannyFinishContext(); |
| 11492 | return __pyx_r; |
| 11493 | } |
| 11494 | |
| 11495 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_14xvalues(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11496 | PyObject *__pyx_r = NULL((void*)0); |
| 11497 | __Pyx_RefNannyDeclarations |
| 11498 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11499 | int __pyx_lineno = 0; |
| 11500 | const char *__pyx_filename = NULL((void*)0); |
| 11501 | int __pyx_clineno = 0; |
| 11502 | __Pyx_RefNannySetupContext("xvalues", 0); |
| 11503 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11504 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->xvalues(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__11504; goto __pyx_L1_error;} |
| 11505 | __Pyx_GOTREF(__pyx_t_1); |
| 11506 | __pyx_r = __pyx_t_1; |
| 11507 | __pyx_t_1 = 0; |
| 11508 | goto __pyx_L0; |
| 11509 | |
| 11510 | /* function exit code */ |
| 11511 | __pyx_L1_error:; |
| 11512 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11513 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.xvalues", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11514 | __pyx_r = NULL((void*)0); |
| 11515 | __pyx_L0:; |
| 11516 | __Pyx_XGIVEREF(__pyx_r); |
| 11517 | __Pyx_RefNannyFinishContext(); |
| 11518 | return __pyx_r; |
| 11519 | } |
| 11520 | |
| 11521 | /* "xmmsvalue.pyx":614 |
| 11522 | * return list(self.iterxvalues()) |
| 11523 | * |
| 11524 | * cpdef iteritems(self): # <<<<<<<<<<<<<< |
| 11525 | * return AttributesIterator(self, ITER_ITEMS) |
| 11526 | * |
| 11527 | */ |
| 11528 | |
| 11529 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_17iteritems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11530 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_iteritems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 11531 | PyObject *__pyx_r = NULL((void*)0); |
| 11532 | __Pyx_RefNannyDeclarations |
| 11533 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11534 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 11535 | int __pyx_lineno = 0; |
| 11536 | const char *__pyx_filename = NULL((void*)0); |
| 11537 | int __pyx_clineno = 0; |
| 11538 | __Pyx_RefNannySetupContext("iteritems", 0); |
| 11539 | /* Check if called by wrapper */ |
| 11540 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 11541 | /* Check if overridden in Python */ |
| 11542 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 11543 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_iteritems); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__11543; goto __pyx_L1_error;} |
| 11544 | __Pyx_GOTREF(__pyx_t_1); |
| 11545 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_17iteritems)) { |
| 11546 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11547 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__11547; goto __pyx_L1_error;} |
| 11548 | __Pyx_GOTREF(__pyx_t_2); |
| 11549 | __pyx_r = __pyx_t_2; |
| 11550 | __pyx_t_2 = 0; |
| 11551 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11552 | goto __pyx_L0; |
| 11553 | } |
| 11554 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11555 | } |
| 11556 | |
| 11557 | /* "xmmsvalue.pyx":615 |
| 11558 | * |
| 11559 | * cpdef iteritems(self): |
| 11560 | * return AttributesIterator(self, ITER_ITEMS) # <<<<<<<<<<<<<< |
| 11561 | * |
| 11562 | * cpdef iterxitems(self): |
| 11563 | */ |
| 11564 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11565 | __pyx_t_1 = PyInt_FromLong(__pyx_e_9xmmsvalue_ITER_ITEMS); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__11565; goto __pyx_L1_error;} |
| 11566 | __Pyx_GOTREF(__pyx_t_1); |
| 11567 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__11567; goto __pyx_L1_error;} |
| 11568 | __Pyx_GOTREF(__pyx_t_2); |
| 11569 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 11570 | PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 11571 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 11572 | PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[1] = __pyx_t_1); |
| 11573 | __Pyx_GIVEREF(__pyx_t_1); |
| 11574 | __pyx_t_1 = 0; |
| 11575 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_AttributesIterator)), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__11575; goto __pyx_L1_error;} |
| 11576 | __Pyx_GOTREF(__pyx_t_1); |
| 11577 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 11578 | __pyx_r = __pyx_t_1; |
| 11579 | __pyx_t_1 = 0; |
| 11580 | goto __pyx_L0; |
| 11581 | |
| 11582 | /* "xmmsvalue.pyx":614 |
| 11583 | * return list(self.iterxvalues()) |
| 11584 | * |
| 11585 | * cpdef iteritems(self): # <<<<<<<<<<<<<< |
| 11586 | * return AttributesIterator(self, ITER_ITEMS) |
| 11587 | * |
| 11588 | */ |
| 11589 | |
| 11590 | /* function exit code */ |
| 11591 | __pyx_L1_error:; |
| 11592 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11593 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 11594 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.iteritems", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11595 | __pyx_r = 0; |
| 11596 | __pyx_L0:; |
| 11597 | __Pyx_XGIVEREF(__pyx_r); |
| 11598 | __Pyx_RefNannyFinishContext(); |
| 11599 | return __pyx_r; |
| 11600 | } |
| 11601 | |
| 11602 | /* Python wrapper */ |
| 11603 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_17iteritems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11604 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_16iteritems[] = "CollectionAttributes.iteritems(self)"; |
| 11605 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_17iteritems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11606 | PyObject *__pyx_r = 0; |
| 11607 | __Pyx_RefNannyDeclarations |
| 11608 | __Pyx_RefNannySetupContext("iteritems (wrapper)", 0); |
| 11609 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_16iteritems(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11610 | |
| 11611 | /* function exit code */ |
| 11612 | __Pyx_RefNannyFinishContext(); |
| 11613 | return __pyx_r; |
| 11614 | } |
| 11615 | |
| 11616 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_16iteritems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11617 | PyObject *__pyx_r = NULL((void*)0); |
| 11618 | __Pyx_RefNannyDeclarations |
| 11619 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11620 | int __pyx_lineno = 0; |
| 11621 | const char *__pyx_filename = NULL((void*)0); |
| 11622 | int __pyx_clineno = 0; |
| 11623 | __Pyx_RefNannySetupContext("iteritems", 0); |
| 11624 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11625 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iteritems(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__11625; goto __pyx_L1_error;} |
| 11626 | __Pyx_GOTREF(__pyx_t_1); |
| 11627 | __pyx_r = __pyx_t_1; |
| 11628 | __pyx_t_1 = 0; |
| 11629 | goto __pyx_L0; |
| 11630 | |
| 11631 | /* function exit code */ |
| 11632 | __pyx_L1_error:; |
| 11633 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11634 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.iteritems", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11635 | __pyx_r = NULL((void*)0); |
| 11636 | __pyx_L0:; |
| 11637 | __Pyx_XGIVEREF(__pyx_r); |
| 11638 | __Pyx_RefNannyFinishContext(); |
| 11639 | return __pyx_r; |
| 11640 | } |
| 11641 | |
| 11642 | /* "xmmsvalue.pyx":617 |
| 11643 | * return AttributesIterator(self, ITER_ITEMS) |
| 11644 | * |
| 11645 | * cpdef iterxitems(self): # <<<<<<<<<<<<<< |
| 11646 | * return AttributesIterator(self, ITER_XITEMS) |
| 11647 | * |
| 11648 | */ |
| 11649 | |
| 11650 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_19iterxitems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11651 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_iterxitems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 11652 | PyObject *__pyx_r = NULL((void*)0); |
| 11653 | __Pyx_RefNannyDeclarations |
| 11654 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11655 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 11656 | int __pyx_lineno = 0; |
| 11657 | const char *__pyx_filename = NULL((void*)0); |
| 11658 | int __pyx_clineno = 0; |
| 11659 | __Pyx_RefNannySetupContext("iterxitems", 0); |
| 11660 | /* Check if called by wrapper */ |
| 11661 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 11662 | /* Check if overridden in Python */ |
| 11663 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 11664 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_iterxitems); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__11664; goto __pyx_L1_error;} |
| 11665 | __Pyx_GOTREF(__pyx_t_1); |
| 11666 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_19iterxitems)) { |
| 11667 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11668 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__11668; goto __pyx_L1_error;} |
| 11669 | __Pyx_GOTREF(__pyx_t_2); |
| 11670 | __pyx_r = __pyx_t_2; |
| 11671 | __pyx_t_2 = 0; |
| 11672 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11673 | goto __pyx_L0; |
| 11674 | } |
| 11675 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11676 | } |
| 11677 | |
| 11678 | /* "xmmsvalue.pyx":618 |
| 11679 | * |
| 11680 | * cpdef iterxitems(self): |
| 11681 | * return AttributesIterator(self, ITER_XITEMS) # <<<<<<<<<<<<<< |
| 11682 | * |
| 11683 | * cpdef items(self): |
| 11684 | */ |
| 11685 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11686 | __pyx_t_1 = PyInt_FromLong(__pyx_e_9xmmsvalue_ITER_XITEMS); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__11686; goto __pyx_L1_error;} |
| 11687 | __Pyx_GOTREF(__pyx_t_1); |
| 11688 | __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__11688; goto __pyx_L1_error;} |
| 11689 | __Pyx_GOTREF(__pyx_t_2); |
| 11690 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 11691 | PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 11692 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 11693 | PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[1] = __pyx_t_1); |
| 11694 | __Pyx_GIVEREF(__pyx_t_1); |
| 11695 | __pyx_t_1 = 0; |
| 11696 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_AttributesIterator)), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__11696; goto __pyx_L1_error;} |
| 11697 | __Pyx_GOTREF(__pyx_t_1); |
| 11698 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 11699 | __pyx_r = __pyx_t_1; |
| 11700 | __pyx_t_1 = 0; |
| 11701 | goto __pyx_L0; |
| 11702 | |
| 11703 | /* "xmmsvalue.pyx":617 |
| 11704 | * return AttributesIterator(self, ITER_ITEMS) |
| 11705 | * |
| 11706 | * cpdef iterxitems(self): # <<<<<<<<<<<<<< |
| 11707 | * return AttributesIterator(self, ITER_XITEMS) |
| 11708 | * |
| 11709 | */ |
| 11710 | |
| 11711 | /* function exit code */ |
| 11712 | __pyx_L1_error:; |
| 11713 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11714 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 11715 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.iterxitems", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11716 | __pyx_r = 0; |
| 11717 | __pyx_L0:; |
| 11718 | __Pyx_XGIVEREF(__pyx_r); |
| 11719 | __Pyx_RefNannyFinishContext(); |
| 11720 | return __pyx_r; |
| 11721 | } |
| 11722 | |
| 11723 | /* Python wrapper */ |
| 11724 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_19iterxitems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11725 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_18iterxitems[] = "CollectionAttributes.iterxitems(self)"; |
| 11726 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_19iterxitems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11727 | PyObject *__pyx_r = 0; |
| 11728 | __Pyx_RefNannyDeclarations |
| 11729 | __Pyx_RefNannySetupContext("iterxitems (wrapper)", 0); |
| 11730 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_18iterxitems(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11731 | |
| 11732 | /* function exit code */ |
| 11733 | __Pyx_RefNannyFinishContext(); |
| 11734 | return __pyx_r; |
| 11735 | } |
| 11736 | |
| 11737 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_18iterxitems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11738 | PyObject *__pyx_r = NULL((void*)0); |
| 11739 | __Pyx_RefNannyDeclarations |
| 11740 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11741 | int __pyx_lineno = 0; |
| 11742 | const char *__pyx_filename = NULL((void*)0); |
| 11743 | int __pyx_clineno = 0; |
| 11744 | __Pyx_RefNannySetupContext("iterxitems", 0); |
| 11745 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11746 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iterxitems(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__11746; goto __pyx_L1_error;} |
| 11747 | __Pyx_GOTREF(__pyx_t_1); |
| 11748 | __pyx_r = __pyx_t_1; |
| 11749 | __pyx_t_1 = 0; |
| 11750 | goto __pyx_L0; |
| 11751 | |
| 11752 | /* function exit code */ |
| 11753 | __pyx_L1_error:; |
| 11754 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11755 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.iterxitems", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11756 | __pyx_r = NULL((void*)0); |
| 11757 | __pyx_L0:; |
| 11758 | __Pyx_XGIVEREF(__pyx_r); |
| 11759 | __Pyx_RefNannyFinishContext(); |
| 11760 | return __pyx_r; |
| 11761 | } |
| 11762 | |
| 11763 | /* "xmmsvalue.pyx":620 |
| 11764 | * return AttributesIterator(self, ITER_XITEMS) |
| 11765 | * |
| 11766 | * cpdef items(self): # <<<<<<<<<<<<<< |
| 11767 | * return list(self.iteritems()) |
| 11768 | * |
| 11769 | */ |
| 11770 | |
| 11771 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_21items(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11772 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_items(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 11773 | PyObject *__pyx_r = NULL((void*)0); |
| 11774 | __Pyx_RefNannyDeclarations |
| 11775 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11776 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 11777 | int __pyx_lineno = 0; |
| 11778 | const char *__pyx_filename = NULL((void*)0); |
| 11779 | int __pyx_clineno = 0; |
| 11780 | __Pyx_RefNannySetupContext("items", 0); |
| 11781 | /* Check if called by wrapper */ |
| 11782 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 11783 | /* Check if overridden in Python */ |
| 11784 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 11785 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_items); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__11785; goto __pyx_L1_error;} |
| 11786 | __Pyx_GOTREF(__pyx_t_1); |
| 11787 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_21items)) { |
| 11788 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11789 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__11789; goto __pyx_L1_error;} |
| 11790 | __Pyx_GOTREF(__pyx_t_2); |
| 11791 | __pyx_r = __pyx_t_2; |
| 11792 | __pyx_t_2 = 0; |
| 11793 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11794 | goto __pyx_L0; |
| 11795 | } |
| 11796 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11797 | } |
| 11798 | |
| 11799 | /* "xmmsvalue.pyx":621 |
| 11800 | * |
| 11801 | * cpdef items(self): |
| 11802 | * return list(self.iteritems()) # <<<<<<<<<<<<<< |
| 11803 | * |
| 11804 | * cpdef xitems(self): |
| 11805 | */ |
| 11806 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11807 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iteritems(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__11807; goto __pyx_L1_error;} |
| 11808 | __Pyx_GOTREF(__pyx_t_1); |
| 11809 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__11809; goto __pyx_L1_error;} |
| 11810 | __Pyx_GOTREF(__pyx_t_2); |
| 11811 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 11812 | __Pyx_GIVEREF(__pyx_t_1); |
| 11813 | __pyx_t_1 = 0; |
| 11814 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__11814; goto __pyx_L1_error;} |
| 11815 | __Pyx_GOTREF(__pyx_t_1); |
| 11816 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 11817 | __pyx_r = __pyx_t_1; |
| 11818 | __pyx_t_1 = 0; |
| 11819 | goto __pyx_L0; |
| 11820 | |
| 11821 | /* "xmmsvalue.pyx":620 |
| 11822 | * return AttributesIterator(self, ITER_XITEMS) |
| 11823 | * |
| 11824 | * cpdef items(self): # <<<<<<<<<<<<<< |
| 11825 | * return list(self.iteritems()) |
| 11826 | * |
| 11827 | */ |
| 11828 | |
| 11829 | /* function exit code */ |
| 11830 | __pyx_L1_error:; |
| 11831 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11832 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 11833 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.items", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11834 | __pyx_r = 0; |
| 11835 | __pyx_L0:; |
| 11836 | __Pyx_XGIVEREF(__pyx_r); |
| 11837 | __Pyx_RefNannyFinishContext(); |
| 11838 | return __pyx_r; |
| 11839 | } |
| 11840 | |
| 11841 | /* Python wrapper */ |
| 11842 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_21items(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11843 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_20items[] = "CollectionAttributes.items(self)"; |
| 11844 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_21items(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11845 | PyObject *__pyx_r = 0; |
| 11846 | __Pyx_RefNannyDeclarations |
| 11847 | __Pyx_RefNannySetupContext("items (wrapper)", 0); |
| 11848 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_20items(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11849 | |
| 11850 | /* function exit code */ |
| 11851 | __Pyx_RefNannyFinishContext(); |
| 11852 | return __pyx_r; |
| 11853 | } |
| 11854 | |
| 11855 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_20items(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11856 | PyObject *__pyx_r = NULL((void*)0); |
| 11857 | __Pyx_RefNannyDeclarations |
| 11858 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11859 | int __pyx_lineno = 0; |
| 11860 | const char *__pyx_filename = NULL((void*)0); |
| 11861 | int __pyx_clineno = 0; |
| 11862 | __Pyx_RefNannySetupContext("items", 0); |
| 11863 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11864 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->items(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__11864; goto __pyx_L1_error;} |
| 11865 | __Pyx_GOTREF(__pyx_t_1); |
| 11866 | __pyx_r = __pyx_t_1; |
| 11867 | __pyx_t_1 = 0; |
| 11868 | goto __pyx_L0; |
| 11869 | |
| 11870 | /* function exit code */ |
| 11871 | __pyx_L1_error:; |
| 11872 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11873 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.items", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11874 | __pyx_r = NULL((void*)0); |
| 11875 | __pyx_L0:; |
| 11876 | __Pyx_XGIVEREF(__pyx_r); |
| 11877 | __Pyx_RefNannyFinishContext(); |
| 11878 | return __pyx_r; |
| 11879 | } |
| 11880 | |
| 11881 | /* "xmmsvalue.pyx":623 |
| 11882 | * return list(self.iteritems()) |
| 11883 | * |
| 11884 | * cpdef xitems(self): # <<<<<<<<<<<<<< |
| 11885 | * return list(self.iterxitems()) |
| 11886 | * |
| 11887 | */ |
| 11888 | |
| 11889 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_23xitems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11890 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_xitems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 11891 | PyObject *__pyx_r = NULL((void*)0); |
| 11892 | __Pyx_RefNannyDeclarations |
| 11893 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11894 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 11895 | int __pyx_lineno = 0; |
| 11896 | const char *__pyx_filename = NULL((void*)0); |
| 11897 | int __pyx_clineno = 0; |
| 11898 | __Pyx_RefNannySetupContext("xitems", 0); |
| 11899 | /* Check if called by wrapper */ |
| 11900 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 11901 | /* Check if overridden in Python */ |
| 11902 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 11903 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_xitems); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__11903; goto __pyx_L1_error;} |
| 11904 | __Pyx_GOTREF(__pyx_t_1); |
| 11905 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_23xitems)) { |
| 11906 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11907 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__11907; goto __pyx_L1_error;} |
| 11908 | __Pyx_GOTREF(__pyx_t_2); |
| 11909 | __pyx_r = __pyx_t_2; |
| 11910 | __pyx_t_2 = 0; |
| 11911 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11912 | goto __pyx_L0; |
| 11913 | } |
| 11914 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 11915 | } |
| 11916 | |
| 11917 | /* "xmmsvalue.pyx":624 |
| 11918 | * |
| 11919 | * cpdef xitems(self): |
| 11920 | * return list(self.iterxitems()) # <<<<<<<<<<<<<< |
| 11921 | * |
| 11922 | * def __contains__(self, name): |
| 11923 | */ |
| 11924 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11925 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iterxitems(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__11925; goto __pyx_L1_error;} |
| 11926 | __Pyx_GOTREF(__pyx_t_1); |
| 11927 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__11927; goto __pyx_L1_error;} |
| 11928 | __Pyx_GOTREF(__pyx_t_2); |
| 11929 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 11930 | __Pyx_GIVEREF(__pyx_t_1); |
| 11931 | __pyx_t_1 = 0; |
| 11932 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__11932; goto __pyx_L1_error;} |
| 11933 | __Pyx_GOTREF(__pyx_t_1); |
| 11934 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 11935 | __pyx_r = __pyx_t_1; |
| 11936 | __pyx_t_1 = 0; |
| 11937 | goto __pyx_L0; |
| 11938 | |
| 11939 | /* "xmmsvalue.pyx":623 |
| 11940 | * return list(self.iteritems()) |
| 11941 | * |
| 11942 | * cpdef xitems(self): # <<<<<<<<<<<<<< |
| 11943 | * return list(self.iterxitems()) |
| 11944 | * |
| 11945 | */ |
| 11946 | |
| 11947 | /* function exit code */ |
| 11948 | __pyx_L1_error:; |
| 11949 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11950 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 11951 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.xitems", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11952 | __pyx_r = 0; |
| 11953 | __pyx_L0:; |
| 11954 | __Pyx_XGIVEREF(__pyx_r); |
| 11955 | __Pyx_RefNannyFinishContext(); |
| 11956 | return __pyx_r; |
| 11957 | } |
| 11958 | |
| 11959 | /* Python wrapper */ |
| 11960 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_23xitems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 11961 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_22xitems[] = "CollectionAttributes.xitems(self)"; |
| 11962 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_23xitems(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 11963 | PyObject *__pyx_r = 0; |
| 11964 | __Pyx_RefNannyDeclarations |
| 11965 | __Pyx_RefNannySetupContext("xitems (wrapper)", 0); |
| 11966 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_22xitems(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 11967 | |
| 11968 | /* function exit code */ |
| 11969 | __Pyx_RefNannyFinishContext(); |
| 11970 | return __pyx_r; |
| 11971 | } |
| 11972 | |
| 11973 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_22xitems(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 11974 | PyObject *__pyx_r = NULL((void*)0); |
| 11975 | __Pyx_RefNannyDeclarations |
| 11976 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 11977 | int __pyx_lineno = 0; |
| 11978 | const char *__pyx_filename = NULL((void*)0); |
| 11979 | int __pyx_clineno = 0; |
| 11980 | __Pyx_RefNannySetupContext("xitems", 0); |
| 11981 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 11982 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->xitems(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__11982; goto __pyx_L1_error;} |
| 11983 | __Pyx_GOTREF(__pyx_t_1); |
| 11984 | __pyx_r = __pyx_t_1; |
| 11985 | __pyx_t_1 = 0; |
| 11986 | goto __pyx_L0; |
| 11987 | |
| 11988 | /* function exit code */ |
| 11989 | __pyx_L1_error:; |
| 11990 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 11991 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.xitems", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 11992 | __pyx_r = NULL((void*)0); |
| 11993 | __pyx_L0:; |
| 11994 | __Pyx_XGIVEREF(__pyx_r); |
| 11995 | __Pyx_RefNannyFinishContext(); |
| 11996 | return __pyx_r; |
| 11997 | } |
| 11998 | |
| 11999 | /* "xmmsvalue.pyx":626 |
| 12000 | * return list(self.iterxitems()) |
| 12001 | * |
| 12002 | * def __contains__(self, name): # <<<<<<<<<<<<<< |
| 12003 | * cdef xmmsv_t *value = NULL |
| 12004 | * return xmmsv_coll_attribute_get_value(self.coll, name, &value) |
| 12005 | */ |
| 12006 | |
| 12007 | /* Python wrapper */ |
| 12008 | static int __pyx_pw_9xmmsvalue_20CollectionAttributes_25__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ |
| 12009 | static int __pyx_pw_9xmmsvalue_20CollectionAttributes_25__contains__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { |
| 12010 | int __pyx_r; |
| 12011 | __Pyx_RefNannyDeclarations |
| 12012 | __Pyx_RefNannySetupContext("__contains__ (wrapper)", 0); |
| 12013 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_24__contains__(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_name)); |
| 12014 | |
| 12015 | /* function exit code */ |
| 12016 | __Pyx_RefNannyFinishContext(); |
| 12017 | return __pyx_r; |
| 12018 | } |
| 12019 | |
| 12020 | static int __pyx_pf_9xmmsvalue_20CollectionAttributes_24__contains__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name) { |
| 12021 | xmmsv_t *__pyx_v_value; |
| 12022 | int __pyx_r; |
| 12023 | __Pyx_RefNannyDeclarations |
| 12024 | char *__pyx_t_1; |
| 12025 | int __pyx_lineno = 0; |
| 12026 | const char *__pyx_filename = NULL((void*)0); |
| 12027 | int __pyx_clineno = 0; |
| 12028 | __Pyx_RefNannySetupContext("__contains__", 0); |
| 12029 | |
| 12030 | /* "xmmsvalue.pyx":627 |
| 12031 | * |
| 12032 | * def __contains__(self, name): |
| 12033 | * cdef xmmsv_t *value = NULL # <<<<<<<<<<<<<< |
| 12034 | * return xmmsv_coll_attribute_get_value(self.coll, name, &value) |
| 12035 | * |
| 12036 | */ |
| 12037 | __pyx_v_value = NULL((void*)0); |
| 12038 | |
| 12039 | /* "xmmsvalue.pyx":628 |
| 12040 | * def __contains__(self, name): |
| 12041 | * cdef xmmsv_t *value = NULL |
| 12042 | * return xmmsv_coll_attribute_get_value(self.coll, name, &value) # <<<<<<<<<<<<<< |
| 12043 | * |
| 12044 | * def __iter__(self): |
| 12045 | */ |
| 12046 | __pyx_t_1 = __Pyx_PyObject_AsString(__pyx_v_name); if (unlikely((!__pyx_t_1) && PyErr_Occurred())__builtin_expect(!!((!__pyx_t_1) && PyErr_Occurred()) , 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__12046; goto __pyx_L1_error;} |
| 12047 | __pyx_r = xmmsv_coll_attribute_get_value(__pyx_v_self->__pyx_base.coll, __pyx_t_1, (&__pyx_v_value)); |
| 12048 | goto __pyx_L0; |
| 12049 | |
| 12050 | /* "xmmsvalue.pyx":626 |
| 12051 | * return list(self.iterxitems()) |
| 12052 | * |
| 12053 | * def __contains__(self, name): # <<<<<<<<<<<<<< |
| 12054 | * cdef xmmsv_t *value = NULL |
| 12055 | * return xmmsv_coll_attribute_get_value(self.coll, name, &value) |
| 12056 | */ |
| 12057 | |
| 12058 | /* function exit code */ |
| 12059 | __pyx_L1_error:; |
| 12060 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12061 | __pyx_r = -1; |
| 12062 | __pyx_L0:; |
| 12063 | __Pyx_RefNannyFinishContext(); |
| 12064 | return __pyx_r; |
| 12065 | } |
| 12066 | |
| 12067 | /* "xmmsvalue.pyx":630 |
| 12068 | * return xmmsv_coll_attribute_get_value(self.coll, name, &value) |
| 12069 | * |
| 12070 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 12071 | * return self.iterkeys() |
| 12072 | * |
| 12073 | */ |
| 12074 | |
| 12075 | /* Python wrapper */ |
| 12076 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_27__iter__(PyObject *__pyx_v_self); /*proto*/ |
| 12077 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_27__iter__(PyObject *__pyx_v_self) { |
| 12078 | PyObject *__pyx_r = 0; |
| 12079 | __Pyx_RefNannyDeclarations |
| 12080 | __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); |
| 12081 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_26__iter__(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 12082 | |
| 12083 | /* function exit code */ |
| 12084 | __Pyx_RefNannyFinishContext(); |
| 12085 | return __pyx_r; |
| 12086 | } |
| 12087 | |
| 12088 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_26__iter__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 12089 | PyObject *__pyx_r = NULL((void*)0); |
| 12090 | __Pyx_RefNannyDeclarations |
| 12091 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12092 | int __pyx_lineno = 0; |
| 12093 | const char *__pyx_filename = NULL((void*)0); |
| 12094 | int __pyx_clineno = 0; |
| 12095 | __Pyx_RefNannySetupContext("__iter__", 0); |
| 12096 | |
| 12097 | /* "xmmsvalue.pyx":631 |
| 12098 | * |
| 12099 | * def __iter__(self): |
| 12100 | * return self.iterkeys() # <<<<<<<<<<<<<< |
| 12101 | * |
| 12102 | * def __repr__(self): |
| 12103 | */ |
| 12104 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 12105 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->iterkeys(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__12105; goto __pyx_L1_error;} |
| 12106 | __Pyx_GOTREF(__pyx_t_1); |
| 12107 | __pyx_r = __pyx_t_1; |
| 12108 | __pyx_t_1 = 0; |
| 12109 | goto __pyx_L0; |
| 12110 | |
| 12111 | /* "xmmsvalue.pyx":630 |
| 12112 | * return xmmsv_coll_attribute_get_value(self.coll, name, &value) |
| 12113 | * |
| 12114 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 12115 | * return self.iterkeys() |
| 12116 | * |
| 12117 | */ |
| 12118 | |
| 12119 | /* function exit code */ |
| 12120 | __pyx_L1_error:; |
| 12121 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 12122 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12123 | __pyx_r = NULL((void*)0); |
| 12124 | __pyx_L0:; |
| 12125 | __Pyx_XGIVEREF(__pyx_r); |
| 12126 | __Pyx_RefNannyFinishContext(); |
| 12127 | return __pyx_r; |
| 12128 | } |
| 12129 | |
| 12130 | /* "xmmsvalue.pyx":633 |
| 12131 | * return self.iterkeys() |
| 12132 | * |
| 12133 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 12134 | * return repr(self.get_dict()) |
| 12135 | * |
| 12136 | */ |
| 12137 | |
| 12138 | /* Python wrapper */ |
| 12139 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_29__repr__(PyObject *__pyx_v_self); /*proto*/ |
| 12140 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_29__repr__(PyObject *__pyx_v_self) { |
| 12141 | PyObject *__pyx_r = 0; |
| 12142 | __Pyx_RefNannyDeclarations |
| 12143 | __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); |
| 12144 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_28__repr__(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 12145 | |
| 12146 | /* function exit code */ |
| 12147 | __Pyx_RefNannyFinishContext(); |
| 12148 | return __pyx_r; |
| 12149 | } |
| 12150 | |
| 12151 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_28__repr__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 12152 | PyObject *__pyx_r = NULL((void*)0); |
| 12153 | __Pyx_RefNannyDeclarations |
| 12154 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12155 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 12156 | int __pyx_lineno = 0; |
| 12157 | const char *__pyx_filename = NULL((void*)0); |
| 12158 | int __pyx_clineno = 0; |
| 12159 | __Pyx_RefNannySetupContext("__repr__", 0); |
| 12160 | |
| 12161 | /* "xmmsvalue.pyx":634 |
| 12162 | * |
| 12163 | * def __repr__(self): |
| 12164 | * return repr(self.get_dict()) # <<<<<<<<<<<<<< |
| 12165 | * |
| 12166 | * def __str__(self): |
| 12167 | */ |
| 12168 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 12169 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->get_dict(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__12169; goto __pyx_L1_error;} |
| 12170 | __Pyx_GOTREF(__pyx_t_1); |
| 12171 | __pyx_t_2 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__12171; goto __pyx_L1_error;} |
| 12172 | __Pyx_GOTREF(__pyx_t_2); |
| 12173 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 12174 | __pyx_r = __pyx_t_2; |
| 12175 | __pyx_t_2 = 0; |
| 12176 | goto __pyx_L0; |
| 12177 | |
| 12178 | /* "xmmsvalue.pyx":633 |
| 12179 | * return self.iterkeys() |
| 12180 | * |
| 12181 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 12182 | * return repr(self.get_dict()) |
| 12183 | * |
| 12184 | */ |
| 12185 | |
| 12186 | /* function exit code */ |
| 12187 | __pyx_L1_error:; |
| 12188 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 12189 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 12190 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12191 | __pyx_r = NULL((void*)0); |
| 12192 | __pyx_L0:; |
| 12193 | __Pyx_XGIVEREF(__pyx_r); |
| 12194 | __Pyx_RefNannyFinishContext(); |
| 12195 | return __pyx_r; |
| 12196 | } |
| 12197 | |
| 12198 | /* "xmmsvalue.pyx":636 |
| 12199 | * return repr(self.get_dict()) |
| 12200 | * |
| 12201 | * def __str__(self): # <<<<<<<<<<<<<< |
| 12202 | * return str(self.get_dict()) |
| 12203 | * |
| 12204 | */ |
| 12205 | |
| 12206 | /* Python wrapper */ |
| 12207 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_31__str__(PyObject *__pyx_v_self); /*proto*/ |
| 12208 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_31__str__(PyObject *__pyx_v_self) { |
| 12209 | PyObject *__pyx_r = 0; |
| 12210 | __Pyx_RefNannyDeclarations |
| 12211 | __Pyx_RefNannySetupContext("__str__ (wrapper)", 0); |
| 12212 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_30__str__(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 12213 | |
| 12214 | /* function exit code */ |
| 12215 | __Pyx_RefNannyFinishContext(); |
| 12216 | return __pyx_r; |
| 12217 | } |
| 12218 | |
| 12219 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_30__str__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 12220 | PyObject *__pyx_r = NULL((void*)0); |
| 12221 | __Pyx_RefNannyDeclarations |
| 12222 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12223 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 12224 | int __pyx_lineno = 0; |
| 12225 | const char *__pyx_filename = NULL((void*)0); |
| 12226 | int __pyx_clineno = 0; |
| 12227 | __Pyx_RefNannySetupContext("__str__", 0); |
| 12228 | |
| 12229 | /* "xmmsvalue.pyx":637 |
| 12230 | * |
| 12231 | * def __str__(self): |
| 12232 | * return str(self.get_dict()) # <<<<<<<<<<<<<< |
| 12233 | * |
| 12234 | * def __getitem__(self, name): |
| 12235 | */ |
| 12236 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 12237 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->get_dict(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__12237; goto __pyx_L1_error;} |
| 12238 | __Pyx_GOTREF(__pyx_t_1); |
| 12239 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__12239; goto __pyx_L1_error;} |
| 12240 | __Pyx_GOTREF(__pyx_t_2); |
| 12241 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 12242 | __Pyx_GIVEREF(__pyx_t_1); |
| 12243 | __pyx_t_1 = 0; |
| 12244 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyString_Type))), __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__12244; goto __pyx_L1_error;} |
| 12245 | __Pyx_GOTREF(__pyx_t_1); |
| 12246 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 12247 | __pyx_r = __pyx_t_1; |
| 12248 | __pyx_t_1 = 0; |
| 12249 | goto __pyx_L0; |
| 12250 | |
| 12251 | /* "xmmsvalue.pyx":636 |
| 12252 | * return repr(self.get_dict()) |
| 12253 | * |
| 12254 | * def __str__(self): # <<<<<<<<<<<<<< |
| 12255 | * return str(self.get_dict()) |
| 12256 | * |
| 12257 | */ |
| 12258 | |
| 12259 | /* function exit code */ |
| 12260 | __pyx_L1_error:; |
| 12261 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 12262 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 12263 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12264 | __pyx_r = NULL((void*)0); |
| 12265 | __pyx_L0:; |
| 12266 | __Pyx_XGIVEREF(__pyx_r); |
| 12267 | __Pyx_RefNannyFinishContext(); |
| 12268 | return __pyx_r; |
| 12269 | } |
| 12270 | |
| 12271 | /* "xmmsvalue.pyx":639 |
| 12272 | * return str(self.get_dict()) |
| 12273 | * |
| 12274 | * def __getitem__(self, name): # <<<<<<<<<<<<<< |
| 12275 | * return self.xget(name).value() |
| 12276 | * |
| 12277 | */ |
| 12278 | |
| 12279 | /* Python wrapper */ |
| 12280 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_33__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ |
| 12281 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_33__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { |
| 12282 | PyObject *__pyx_r = 0; |
| 12283 | __Pyx_RefNannyDeclarations |
| 12284 | __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); |
| 12285 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_32__getitem__(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_name)); |
| 12286 | |
| 12287 | /* function exit code */ |
| 12288 | __Pyx_RefNannyFinishContext(); |
| 12289 | return __pyx_r; |
| 12290 | } |
| 12291 | |
| 12292 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_32__getitem__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name) { |
| 12293 | PyObject *__pyx_r = NULL((void*)0); |
| 12294 | __Pyx_RefNannyDeclarations |
| 12295 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12296 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 12297 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 12298 | int __pyx_lineno = 0; |
| 12299 | const char *__pyx_filename = NULL((void*)0); |
| 12300 | int __pyx_clineno = 0; |
| 12301 | __Pyx_RefNannySetupContext("__getitem__", 0); |
| 12302 | |
| 12303 | /* "xmmsvalue.pyx":640 |
| 12304 | * |
| 12305 | * def __getitem__(self, name): |
| 12306 | * return self.xget(name).value() # <<<<<<<<<<<<<< |
| 12307 | * |
| 12308 | * def __setitem__(self, name, value): |
| 12309 | */ |
| 12310 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 12311 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_xget); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__12311; goto __pyx_L1_error;} |
| 12312 | __Pyx_GOTREF(__pyx_t_1); |
| 12313 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__12313; goto __pyx_L1_error;} |
| 12314 | __Pyx_GOTREF(__pyx_t_2); |
| 12315 | __Pyx_INCREF(__pyx_v_name)( ((PyObject*)(__pyx_v_name))->ob_refcnt++); |
| 12316 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_name)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_name ); |
| 12317 | __Pyx_GIVEREF(__pyx_v_name); |
| 12318 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__12318; goto __pyx_L1_error;} |
| 12319 | __Pyx_GOTREF(__pyx_t_3); |
| 12320 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 12321 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 12322 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_value); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__12322; goto __pyx_L1_error;} |
| 12323 | __Pyx_GOTREF(__pyx_t_2); |
| 12324 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 12325 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__12325; goto __pyx_L1_error;} |
| 12326 | __Pyx_GOTREF(__pyx_t_3); |
| 12327 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 12328 | __pyx_r = __pyx_t_3; |
| 12329 | __pyx_t_3 = 0; |
| 12330 | goto __pyx_L0; |
| 12331 | |
| 12332 | /* "xmmsvalue.pyx":639 |
| 12333 | * return str(self.get_dict()) |
| 12334 | * |
| 12335 | * def __getitem__(self, name): # <<<<<<<<<<<<<< |
| 12336 | * return self.xget(name).value() |
| 12337 | * |
| 12338 | */ |
| 12339 | |
| 12340 | /* function exit code */ |
| 12341 | __pyx_L1_error:; |
| 12342 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 12343 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 12344 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 12345 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12346 | __pyx_r = NULL((void*)0); |
| 12347 | __pyx_L0:; |
| 12348 | __Pyx_XGIVEREF(__pyx_r); |
| 12349 | __Pyx_RefNannyFinishContext(); |
| 12350 | return __pyx_r; |
| 12351 | } |
| 12352 | |
| 12353 | /* "xmmsvalue.pyx":642 |
| 12354 | * return self.xget(name).value() |
| 12355 | * |
| 12356 | * def __setitem__(self, name, value): # <<<<<<<<<<<<<< |
| 12357 | * cdef xmmsv_t *v |
| 12358 | * n = from_unicode(name) |
| 12359 | */ |
| 12360 | |
| 12361 | /* Python wrapper */ |
| 12362 | static int __pyx_pw_9xmmsvalue_20CollectionAttributes_35__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/ |
| 12363 | static int __pyx_pw_9xmmsvalue_20CollectionAttributes_35__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { |
| 12364 | int __pyx_r; |
| 12365 | __Pyx_RefNannyDeclarations |
| 12366 | __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0); |
| 12367 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_34__setitem__(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_name), ((PyObject *)__pyx_v_value)); |
| 12368 | |
| 12369 | /* function exit code */ |
| 12370 | __Pyx_RefNannyFinishContext(); |
| 12371 | return __pyx_r; |
| 12372 | } |
| 12373 | |
| 12374 | static int __pyx_pf_9xmmsvalue_20CollectionAttributes_34__setitem__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { |
| 12375 | xmmsv_t *__pyx_v_v; |
| 12376 | PyObject *__pyx_v_n = NULL((void*)0); |
| 12377 | int __pyx_r; |
| 12378 | __Pyx_RefNannyDeclarations |
| 12379 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12380 | xmmsv_t *__pyx_t_2; |
| 12381 | char *__pyx_t_3; |
| 12382 | int __pyx_lineno = 0; |
| 12383 | const char *__pyx_filename = NULL((void*)0); |
| 12384 | int __pyx_clineno = 0; |
| 12385 | __Pyx_RefNannySetupContext("__setitem__", 0); |
| 12386 | |
| 12387 | /* "xmmsvalue.pyx":644 |
| 12388 | * def __setitem__(self, name, value): |
| 12389 | * cdef xmmsv_t *v |
| 12390 | * n = from_unicode(name) # <<<<<<<<<<<<<< |
| 12391 | * v = create_native_value(value) |
| 12392 | * xmmsv_coll_attribute_set_value(self.coll, <char *>n, v) |
| 12393 | */ |
| 12394 | __pyx_t_1 = __pyx_f_9xmmsutils_from_unicode(__pyx_v_name); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; __pyx_clineno = __LINE__12394; goto __pyx_L1_error;} |
| 12395 | __Pyx_GOTREF(__pyx_t_1); |
| 12396 | __pyx_v_n = __pyx_t_1; |
| 12397 | __pyx_t_1 = 0; |
| 12398 | |
| 12399 | /* "xmmsvalue.pyx":645 |
| 12400 | * cdef xmmsv_t *v |
| 12401 | * n = from_unicode(name) |
| 12402 | * v = create_native_value(value) # <<<<<<<<<<<<<< |
| 12403 | * xmmsv_coll_attribute_set_value(self.coll, <char *>n, v) |
| 12404 | * xmmsv_unref(v) |
| 12405 | */ |
| 12406 | __pyx_t_2 = __pyx_f_9xmmsvalue_create_native_value(__pyx_v_value); if (unlikely(__pyx_t_2 == NULL)__builtin_expect(!!(__pyx_t_2 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__12406; goto __pyx_L1_error;} |
| 12407 | __pyx_v_v = __pyx_t_2; |
| 12408 | |
| 12409 | /* "xmmsvalue.pyx":646 |
| 12410 | * n = from_unicode(name) |
| 12411 | * v = create_native_value(value) |
| 12412 | * xmmsv_coll_attribute_set_value(self.coll, <char *>n, v) # <<<<<<<<<<<<<< |
| 12413 | * xmmsv_unref(v) |
| 12414 | * |
| 12415 | */ |
| 12416 | __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_v_n); if (unlikely((!__pyx_t_3) && PyErr_Occurred())__builtin_expect(!!((!__pyx_t_3) && PyErr_Occurred()) , 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 646; __pyx_clineno = __LINE__12416; goto __pyx_L1_error;} |
| 12417 | xmmsv_coll_attribute_set_value(__pyx_v_self->__pyx_base.coll, ((char *)__pyx_t_3), __pyx_v_v); |
| 12418 | |
| 12419 | /* "xmmsvalue.pyx":647 |
| 12420 | * v = create_native_value(value) |
| 12421 | * xmmsv_coll_attribute_set_value(self.coll, <char *>n, v) |
| 12422 | * xmmsv_unref(v) # <<<<<<<<<<<<<< |
| 12423 | * |
| 12424 | * def __delitem__(self, name): |
| 12425 | */ |
| 12426 | xmmsv_unref(__pyx_v_v); |
| 12427 | |
| 12428 | /* "xmmsvalue.pyx":642 |
| 12429 | * return self.xget(name).value() |
| 12430 | * |
| 12431 | * def __setitem__(self, name, value): # <<<<<<<<<<<<<< |
| 12432 | * cdef xmmsv_t *v |
| 12433 | * n = from_unicode(name) |
| 12434 | */ |
| 12435 | |
| 12436 | /* function exit code */ |
| 12437 | __pyx_r = 0; |
| 12438 | goto __pyx_L0; |
| 12439 | __pyx_L1_error:; |
| 12440 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 12441 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12442 | __pyx_r = -1; |
| 12443 | __pyx_L0:; |
| 12444 | __Pyx_XDECREF(__pyx_v_n)do { if ((__pyx_v_n) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_n))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_n)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_n)))); } while (0); } while (0); |
| 12445 | __Pyx_RefNannyFinishContext(); |
| 12446 | return __pyx_r; |
| 12447 | } |
| 12448 | |
| 12449 | /* "xmmsvalue.pyx":649 |
| 12450 | * xmmsv_unref(v) |
| 12451 | * |
| 12452 | * def __delitem__(self, name): # <<<<<<<<<<<<<< |
| 12453 | * n = from_unicode(name) |
| 12454 | * if not xmmsv_coll_attribute_remove(self.coll, <char *>n): |
| 12455 | */ |
| 12456 | |
| 12457 | /* Python wrapper */ |
| 12458 | static int __pyx_pw_9xmmsvalue_20CollectionAttributes_37__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ |
| 12459 | static int __pyx_pw_9xmmsvalue_20CollectionAttributes_37__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { |
| 12460 | int __pyx_r; |
| 12461 | __Pyx_RefNannyDeclarations |
| 12462 | __Pyx_RefNannySetupContext("__delitem__ (wrapper)", 0); |
| 12463 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_36__delitem__(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_name)); |
| 12464 | |
| 12465 | /* function exit code */ |
| 12466 | __Pyx_RefNannyFinishContext(); |
| 12467 | return __pyx_r; |
| 12468 | } |
| 12469 | |
| 12470 | static int __pyx_pf_9xmmsvalue_20CollectionAttributes_36__delitem__(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name) { |
| 12471 | PyObject *__pyx_v_n = NULL((void*)0); |
| 12472 | int __pyx_r; |
| 12473 | __Pyx_RefNannyDeclarations |
| 12474 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12475 | char *__pyx_t_2; |
| 12476 | int __pyx_t_3; |
| 12477 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 12478 | int __pyx_lineno = 0; |
| 12479 | const char *__pyx_filename = NULL((void*)0); |
| 12480 | int __pyx_clineno = 0; |
| 12481 | __Pyx_RefNannySetupContext("__delitem__", 0); |
| 12482 | |
| 12483 | /* "xmmsvalue.pyx":650 |
| 12484 | * |
| 12485 | * def __delitem__(self, name): |
| 12486 | * n = from_unicode(name) # <<<<<<<<<<<<<< |
| 12487 | * if not xmmsv_coll_attribute_remove(self.coll, <char *>n): |
| 12488 | * raise KeyError("The attribute '%s' doesn't exist" % name) |
| 12489 | */ |
| 12490 | __pyx_t_1 = __pyx_f_9xmmsutils_from_unicode(__pyx_v_name); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__12490; goto __pyx_L1_error;} |
| 12491 | __Pyx_GOTREF(__pyx_t_1); |
| 12492 | __pyx_v_n = __pyx_t_1; |
| 12493 | __pyx_t_1 = 0; |
| 12494 | |
| 12495 | /* "xmmsvalue.pyx":651 |
| 12496 | * def __delitem__(self, name): |
| 12497 | * n = from_unicode(name) |
| 12498 | * if not xmmsv_coll_attribute_remove(self.coll, <char *>n): # <<<<<<<<<<<<<< |
| 12499 | * raise KeyError("The attribute '%s' doesn't exist" % name) |
| 12500 | * |
| 12501 | */ |
| 12502 | __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_n); if (unlikely((!__pyx_t_2) && PyErr_Occurred())__builtin_expect(!!((!__pyx_t_2) && PyErr_Occurred()) , 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 651; __pyx_clineno = __LINE__12502; goto __pyx_L1_error;} |
| 12503 | __pyx_t_3 = ((!(xmmsv_coll_attribute_remove(__pyx_v_self->__pyx_base.coll, ((char *)__pyx_t_2)) != 0)) != 0); |
| 12504 | if (__pyx_t_3) { |
| 12505 | |
| 12506 | /* "xmmsvalue.pyx":652 |
| 12507 | * n = from_unicode(name) |
| 12508 | * if not xmmsv_coll_attribute_remove(self.coll, <char *>n): |
| 12509 | * raise KeyError("The attribute '%s' doesn't exist" % name) # <<<<<<<<<<<<<< |
| 12510 | * |
| 12511 | * def get(self, name, default = None): |
| 12512 | */ |
| 12513 | __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_The_attribute_s_doesn_t_exist, __pyx_v_name)PyString_Format(__pyx_kp_s_The_attribute_s_doesn_t_exist, __pyx_v_name ); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__12513; goto __pyx_L1_error;} |
| 12514 | __Pyx_GOTREF(__pyx_t_1); |
| 12515 | __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__12515; goto __pyx_L1_error;} |
| 12516 | __Pyx_GOTREF(__pyx_t_4); |
| 12517 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_t_1); |
| 12518 | __Pyx_GIVEREF(__pyx_t_1); |
| 12519 | __pyx_t_1 = 0; |
| 12520 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_KeyError, __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__12520; goto __pyx_L1_error;} |
| 12521 | __Pyx_GOTREF(__pyx_t_1); |
| 12522 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 12523 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 12524 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 12525 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__12525; goto __pyx_L1_error;} |
| 12526 | } |
| 12527 | |
| 12528 | /* "xmmsvalue.pyx":649 |
| 12529 | * xmmsv_unref(v) |
| 12530 | * |
| 12531 | * def __delitem__(self, name): # <<<<<<<<<<<<<< |
| 12532 | * n = from_unicode(name) |
| 12533 | * if not xmmsv_coll_attribute_remove(self.coll, <char *>n): |
| 12534 | */ |
| 12535 | |
| 12536 | /* function exit code */ |
| 12537 | __pyx_r = 0; |
| 12538 | goto __pyx_L0; |
| 12539 | __pyx_L1_error:; |
| 12540 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 12541 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 12542 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12543 | __pyx_r = -1; |
| 12544 | __pyx_L0:; |
| 12545 | __Pyx_XDECREF(__pyx_v_n)do { if ((__pyx_v_n) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_n))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_n)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_n)))); } while (0); } while (0); |
| 12546 | __Pyx_RefNannyFinishContext(); |
| 12547 | return __pyx_r; |
| 12548 | } |
| 12549 | |
| 12550 | /* "xmmsvalue.pyx":654 |
| 12551 | * raise KeyError("The attribute '%s' doesn't exist" % name) |
| 12552 | * |
| 12553 | * def get(self, name, default = None): # <<<<<<<<<<<<<< |
| 12554 | * try: |
| 12555 | * return self.xget(name).value() |
| 12556 | */ |
| 12557 | |
| 12558 | /* Python wrapper */ |
| 12559 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_39get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 12560 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_38get[] = "CollectionAttributes.get(self, name, default=None)"; |
| 12561 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_39get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 12562 | PyObject *__pyx_v_name = 0; |
| 12563 | PyObject *__pyx_v_default = 0; |
| 12564 | int __pyx_lineno = 0; |
| 12565 | const char *__pyx_filename = NULL((void*)0); |
| 12566 | int __pyx_clineno = 0; |
| 12567 | PyObject *__pyx_r = 0; |
| 12568 | __Pyx_RefNannyDeclarations |
| 12569 | __Pyx_RefNannySetupContext("get (wrapper)", 0); |
| 12570 | { |
| 12571 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name_2,&__pyx_n_s_default,0}; |
| 12572 | PyObject* values[2] = {0,0}; |
| 12573 | values[1] = ((PyObject *)Py_None(&_Py_NoneStruct)); |
| 12574 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 12575 | Py_ssize_t kw_args; |
| 12576 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 12577 | switch (pos_args) { |
| 12578 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 12579 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 12580 | case 0: break; |
| 12581 | default: goto __pyx_L5_argtuple_error; |
| 12582 | } |
| 12583 | kw_args = PyDict_Size(__pyx_kwds); |
| 12584 | switch (pos_args) { |
| 12585 | case 0: |
| 12586 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name_2)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_name_2 )) != 0), 1)) kw_args--; |
| 12587 | else goto __pyx_L5_argtuple_error; |
| 12588 | case 1: |
| 12589 | if (kw_args > 0) { |
| 12590 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_default); |
| 12591 | if (value) { values[1] = value; kw_args--; } |
| 12592 | } |
| 12593 | } |
| 12594 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 12595 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "get") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__12595; goto __pyx_L3_error;} |
| 12596 | } |
| 12597 | } else { |
| 12598 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 12599 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 12600 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 12601 | break; |
| 12602 | default: goto __pyx_L5_argtuple_error; |
| 12603 | } |
| 12604 | } |
| 12605 | __pyx_v_name = values[0]; |
| 12606 | __pyx_v_default = values[1]; |
| 12607 | } |
| 12608 | goto __pyx_L4_argument_unpacking_done; |
| 12609 | __pyx_L5_argtuple_error:; |
| 12610 | __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__12610; goto __pyx_L3_error;} |
| 12611 | __pyx_L3_error:; |
| 12612 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.get", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12613 | __Pyx_RefNannyFinishContext(); |
| 12614 | return NULL((void*)0); |
| 12615 | __pyx_L4_argument_unpacking_done:; |
| 12616 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_38get(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self), __pyx_v_name, __pyx_v_default); |
| 12617 | |
| 12618 | /* function exit code */ |
| 12619 | __Pyx_RefNannyFinishContext(); |
| 12620 | return __pyx_r; |
| 12621 | } |
| 12622 | |
| 12623 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_38get(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_default) { |
| 12624 | PyObject *__pyx_r = NULL((void*)0); |
| 12625 | __Pyx_RefNannyDeclarations |
| 12626 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12627 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 12628 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 12629 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 12630 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 12631 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 12632 | int __pyx_t_7; |
| 12633 | int __pyx_lineno = 0; |
| 12634 | const char *__pyx_filename = NULL((void*)0); |
| 12635 | int __pyx_clineno = 0; |
| 12636 | __Pyx_RefNannySetupContext("get", 0); |
| 12637 | |
| 12638 | /* "xmmsvalue.pyx":655 |
| 12639 | * |
| 12640 | * def get(self, name, default = None): |
| 12641 | * try: # <<<<<<<<<<<<<< |
| 12642 | * return self.xget(name).value() |
| 12643 | * except KeyError: |
| 12644 | */ |
| 12645 | { |
| 12646 | __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); |
| 12647 | __Pyx_XGOTREF(__pyx_t_1); |
| 12648 | __Pyx_XGOTREF(__pyx_t_2); |
| 12649 | __Pyx_XGOTREF(__pyx_t_3); |
| 12650 | /*try:*/ { |
| 12651 | |
| 12652 | /* "xmmsvalue.pyx":656 |
| 12653 | * def get(self, name, default = None): |
| 12654 | * try: |
| 12655 | * return self.xget(name).value() # <<<<<<<<<<<<<< |
| 12656 | * except KeyError: |
| 12657 | * return default |
| 12658 | */ |
| 12659 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 12660 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_xget); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__12660; goto __pyx_L3_error;} |
| 12661 | __Pyx_GOTREF(__pyx_t_4); |
| 12662 | __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__12662; goto __pyx_L3_error;} |
| 12663 | __Pyx_GOTREF(__pyx_t_5); |
| 12664 | __Pyx_INCREF(__pyx_v_name)( ((PyObject*)(__pyx_v_name))->ob_refcnt++); |
| 12665 | PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_name)(((PyTupleObject *)(__pyx_t_5))->ob_item[0] = __pyx_v_name ); |
| 12666 | __Pyx_GIVEREF(__pyx_v_name); |
| 12667 | __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL((void*)0)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__12667; goto __pyx_L3_error;} |
| 12668 | __Pyx_GOTREF(__pyx_t_6); |
| 12669 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 12670 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 12671 | __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_value); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__12671; goto __pyx_L3_error;} |
| 12672 | __Pyx_GOTREF(__pyx_t_5); |
| 12673 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 12674 | __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 656; __pyx_clineno = __LINE__12674; goto __pyx_L3_error;} |
| 12675 | __Pyx_GOTREF(__pyx_t_6); |
| 12676 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 12677 | __pyx_r = __pyx_t_6; |
| 12678 | __pyx_t_6 = 0; |
| 12679 | goto __pyx_L7_try_return; |
| 12680 | } |
| 12681 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); __pyx_t_1 = 0; |
| 12682 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); __pyx_t_2 = 0; |
| 12683 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); __pyx_t_3 = 0; |
| 12684 | goto __pyx_L10_try_end; |
| 12685 | __pyx_L3_error:; |
| 12686 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); __pyx_t_4 = 0; |
| 12687 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); __pyx_t_5 = 0; |
| 12688 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); __pyx_t_6 = 0; |
| 12689 | |
| 12690 | /* "xmmsvalue.pyx":657 |
| 12691 | * try: |
| 12692 | * return self.xget(name).value() |
| 12693 | * except KeyError: # <<<<<<<<<<<<<< |
| 12694 | * return default |
| 12695 | * |
| 12696 | */ |
| 12697 | __pyx_t_7 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); |
| 12698 | if (__pyx_t_7) { |
| 12699 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.get", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12700 | if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__12700; goto __pyx_L5_except_error;} |
| 12701 | __Pyx_GOTREF(__pyx_t_6); |
| 12702 | __Pyx_GOTREF(__pyx_t_5); |
| 12703 | __Pyx_GOTREF(__pyx_t_4); |
| 12704 | |
| 12705 | /* "xmmsvalue.pyx":658 |
| 12706 | * return self.xget(name).value() |
| 12707 | * except KeyError: |
| 12708 | * return default # <<<<<<<<<<<<<< |
| 12709 | * |
| 12710 | * def xget(self, name): |
| 12711 | */ |
| 12712 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 12713 | __Pyx_INCREF(__pyx_v_default)( ((PyObject*)(__pyx_v_default))->ob_refcnt++); |
| 12714 | __pyx_r = __pyx_v_default; |
| 12715 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 12716 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 12717 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 12718 | goto __pyx_L6_except_return; |
| 12719 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 12720 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 12721 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 12722 | goto __pyx_L4_exception_handled; |
| 12723 | } |
| 12724 | goto __pyx_L5_except_error; |
| 12725 | __pyx_L5_except_error:; |
| 12726 | __Pyx_XGIVEREF(__pyx_t_1); |
| 12727 | __Pyx_XGIVEREF(__pyx_t_2); |
| 12728 | __Pyx_XGIVEREF(__pyx_t_3); |
| 12729 | __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); |
| 12730 | goto __pyx_L1_error; |
| 12731 | __pyx_L7_try_return:; |
| 12732 | __Pyx_XGIVEREF(__pyx_t_1); |
| 12733 | __Pyx_XGIVEREF(__pyx_t_2); |
| 12734 | __Pyx_XGIVEREF(__pyx_t_3); |
| 12735 | __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); |
| 12736 | goto __pyx_L0; |
| 12737 | __pyx_L6_except_return:; |
| 12738 | __Pyx_XGIVEREF(__pyx_t_1); |
| 12739 | __Pyx_XGIVEREF(__pyx_t_2); |
| 12740 | __Pyx_XGIVEREF(__pyx_t_3); |
| 12741 | __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); |
| 12742 | goto __pyx_L0; |
| 12743 | __pyx_L4_exception_handled:; |
| 12744 | __Pyx_XGIVEREF(__pyx_t_1); |
| 12745 | __Pyx_XGIVEREF(__pyx_t_2); |
| 12746 | __Pyx_XGIVEREF(__pyx_t_3); |
| 12747 | __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); |
| 12748 | __pyx_L10_try_end:; |
| 12749 | } |
| 12750 | |
| 12751 | /* "xmmsvalue.pyx":654 |
| 12752 | * raise KeyError("The attribute '%s' doesn't exist" % name) |
| 12753 | * |
| 12754 | * def get(self, name, default = None): # <<<<<<<<<<<<<< |
| 12755 | * try: |
| 12756 | * return self.xget(name).value() |
| 12757 | */ |
| 12758 | |
| 12759 | /* function exit code */ |
| 12760 | __pyx_L1_error:; |
| 12761 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 12762 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 12763 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 12764 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.get", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12765 | __pyx_r = NULL((void*)0); |
| 12766 | __pyx_L0:; |
| 12767 | __Pyx_XGIVEREF(__pyx_r); |
| 12768 | __Pyx_RefNannyFinishContext(); |
| 12769 | return __pyx_r; |
| 12770 | } |
| 12771 | |
| 12772 | /* "xmmsvalue.pyx":660 |
| 12773 | * return default |
| 12774 | * |
| 12775 | * def xget(self, name): # <<<<<<<<<<<<<< |
| 12776 | * cdef xmmsv_t *value = NULL |
| 12777 | * cdef XmmsValue xv |
| 12778 | */ |
| 12779 | |
| 12780 | /* Python wrapper */ |
| 12781 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_41xget(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ |
| 12782 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_40xget[] = "CollectionAttributes.xget(self, name)"; |
| 12783 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_41xget(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { |
| 12784 | PyObject *__pyx_r = 0; |
| 12785 | __Pyx_RefNannyDeclarations |
| 12786 | __Pyx_RefNannySetupContext("xget (wrapper)", 0); |
| 12787 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_40xget(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self), ((PyObject *)__pyx_v_name)); |
| 12788 | |
| 12789 | /* function exit code */ |
| 12790 | __Pyx_RefNannyFinishContext(); |
| 12791 | return __pyx_r; |
| 12792 | } |
| 12793 | |
| 12794 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_40xget(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_name) { |
| 12795 | xmmsv_t *__pyx_v_value; |
| 12796 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_xv = 0; |
| 12797 | PyObject *__pyx_v_nam = NULL((void*)0); |
| 12798 | PyObject *__pyx_r = NULL((void*)0); |
| 12799 | __Pyx_RefNannyDeclarations |
| 12800 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12801 | char *__pyx_t_2; |
| 12802 | int __pyx_t_3; |
| 12803 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 12804 | int __pyx_lineno = 0; |
| 12805 | const char *__pyx_filename = NULL((void*)0); |
| 12806 | int __pyx_clineno = 0; |
| 12807 | __Pyx_RefNannySetupContext("xget", 0); |
| 12808 | |
| 12809 | /* "xmmsvalue.pyx":661 |
| 12810 | * |
| 12811 | * def xget(self, name): |
| 12812 | * cdef xmmsv_t *value = NULL # <<<<<<<<<<<<<< |
| 12813 | * cdef XmmsValue xv |
| 12814 | * nam = from_unicode(name) |
| 12815 | */ |
| 12816 | __pyx_v_value = NULL((void*)0); |
| 12817 | |
| 12818 | /* "xmmsvalue.pyx":663 |
| 12819 | * cdef xmmsv_t *value = NULL |
| 12820 | * cdef XmmsValue xv |
| 12821 | * nam = from_unicode(name) # <<<<<<<<<<<<<< |
| 12822 | * if not xmmsv_coll_attribute_get_value(self.coll, <char *>nam, &value): |
| 12823 | * raise KeyError("The attribute '%s' doesn't exist" % name) |
| 12824 | */ |
| 12825 | __pyx_t_1 = __pyx_f_9xmmsutils_from_unicode(__pyx_v_name); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 663; __pyx_clineno = __LINE__12825; goto __pyx_L1_error;} |
| 12826 | __Pyx_GOTREF(__pyx_t_1); |
| 12827 | __pyx_v_nam = __pyx_t_1; |
| 12828 | __pyx_t_1 = 0; |
| 12829 | |
| 12830 | /* "xmmsvalue.pyx":664 |
| 12831 | * cdef XmmsValue xv |
| 12832 | * nam = from_unicode(name) |
| 12833 | * if not xmmsv_coll_attribute_get_value(self.coll, <char *>nam, &value): # <<<<<<<<<<<<<< |
| 12834 | * raise KeyError("The attribute '%s' doesn't exist" % name) |
| 12835 | * xv = XmmsValue() |
| 12836 | */ |
| 12837 | __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_nam); if (unlikely((!__pyx_t_2) && PyErr_Occurred())__builtin_expect(!!((!__pyx_t_2) && PyErr_Occurred()) , 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; __pyx_clineno = __LINE__12837; goto __pyx_L1_error;} |
| 12838 | __pyx_t_3 = ((!(xmmsv_coll_attribute_get_value(__pyx_v_self->__pyx_base.coll, ((char *)__pyx_t_2), (&__pyx_v_value)) != 0)) != 0); |
| 12839 | if (__pyx_t_3) { |
| 12840 | |
| 12841 | /* "xmmsvalue.pyx":665 |
| 12842 | * nam = from_unicode(name) |
| 12843 | * if not xmmsv_coll_attribute_get_value(self.coll, <char *>nam, &value): |
| 12844 | * raise KeyError("The attribute '%s' doesn't exist" % name) # <<<<<<<<<<<<<< |
| 12845 | * xv = XmmsValue() |
| 12846 | * xv.set_value(value) |
| 12847 | */ |
| 12848 | __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_The_attribute_s_doesn_t_exist, __pyx_v_name)PyString_Format(__pyx_kp_s_The_attribute_s_doesn_t_exist, __pyx_v_name ); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__12848; goto __pyx_L1_error;} |
| 12849 | __Pyx_GOTREF(__pyx_t_1); |
| 12850 | __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__12850; goto __pyx_L1_error;} |
| 12851 | __Pyx_GOTREF(__pyx_t_4); |
| 12852 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_t_1); |
| 12853 | __Pyx_GIVEREF(__pyx_t_1); |
| 12854 | __pyx_t_1 = 0; |
| 12855 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_KeyError, __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__12855; goto __pyx_L1_error;} |
| 12856 | __Pyx_GOTREF(__pyx_t_1); |
| 12857 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 12858 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 12859 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 12860 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__12860; goto __pyx_L1_error;} |
| 12861 | } |
| 12862 | |
| 12863 | /* "xmmsvalue.pyx":666 |
| 12864 | * if not xmmsv_coll_attribute_get_value(self.coll, <char *>nam, &value): |
| 12865 | * raise KeyError("The attribute '%s' doesn't exist" % name) |
| 12866 | * xv = XmmsValue() # <<<<<<<<<<<<<< |
| 12867 | * xv.set_value(value) |
| 12868 | * return xv |
| 12869 | */ |
| 12870 | __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)), __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 666; __pyx_clineno = __LINE__12870; goto __pyx_L1_error;} |
| 12871 | __Pyx_GOTREF(__pyx_t_1); |
| 12872 | __pyx_v_xv = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_t_1); |
| 12873 | __pyx_t_1 = 0; |
| 12874 | |
| 12875 | /* "xmmsvalue.pyx":667 |
| 12876 | * raise KeyError("The attribute '%s' doesn't exist" % name) |
| 12877 | * xv = XmmsValue() |
| 12878 | * xv.set_value(value) # <<<<<<<<<<<<<< |
| 12879 | * return xv |
| 12880 | * |
| 12881 | */ |
| 12882 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_xv->__pyx_vtab)->set_value(__pyx_v_xv, __pyx_v_value, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__12882; goto __pyx_L1_error;} |
| 12883 | __Pyx_GOTREF(__pyx_t_1); |
| 12884 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 12885 | |
| 12886 | /* "xmmsvalue.pyx":668 |
| 12887 | * xv = XmmsValue() |
| 12888 | * xv.set_value(value) |
| 12889 | * return xv # <<<<<<<<<<<<<< |
| 12890 | * |
| 12891 | * cpdef clear(self): |
| 12892 | */ |
| 12893 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 12894 | __Pyx_INCREF(((PyObject *)__pyx_v_xv))( ((PyObject*)(((PyObject *)__pyx_v_xv)))->ob_refcnt++); |
| 12895 | __pyx_r = ((PyObject *)__pyx_v_xv); |
| 12896 | goto __pyx_L0; |
| 12897 | |
| 12898 | /* "xmmsvalue.pyx":660 |
| 12899 | * return default |
| 12900 | * |
| 12901 | * def xget(self, name): # <<<<<<<<<<<<<< |
| 12902 | * cdef xmmsv_t *value = NULL |
| 12903 | * cdef XmmsValue xv |
| 12904 | */ |
| 12905 | |
| 12906 | /* function exit code */ |
| 12907 | __pyx_L1_error:; |
| 12908 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 12909 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 12910 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.xget", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 12911 | __pyx_r = NULL((void*)0); |
| 12912 | __pyx_L0:; |
| 12913 | __Pyx_XDECREF((PyObject *)__pyx_v_xv)do { if (((PyObject *)__pyx_v_xv) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_xv))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_xv )))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_xv)))); } while (0); } while (0); |
| 12914 | __Pyx_XDECREF(__pyx_v_nam)do { if ((__pyx_v_nam) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_nam))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(__pyx_v_nam)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_nam)))); } while (0); } while (0); |
| 12915 | __Pyx_XGIVEREF(__pyx_r); |
| 12916 | __Pyx_RefNannyFinishContext(); |
| 12917 | return __pyx_r; |
| 12918 | } |
| 12919 | |
| 12920 | /* "xmmsvalue.pyx":670 |
| 12921 | * return xv |
| 12922 | * |
| 12923 | * cpdef clear(self): # <<<<<<<<<<<<<< |
| 12924 | * for k in self.keys(): |
| 12925 | * xmmsv_coll_attribute_remove(self.coll, k) |
| 12926 | */ |
| 12927 | |
| 12928 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_43clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 12929 | static PyObject *__pyx_f_9xmmsvalue_20CollectionAttributes_clear(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, int __pyx_skip_dispatch) { |
| 12930 | PyObject *__pyx_v_k = NULL((void*)0); |
| 12931 | PyObject *__pyx_r = NULL((void*)0); |
| 12932 | __Pyx_RefNannyDeclarations |
| 12933 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 12934 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 12935 | Py_ssize_t __pyx_t_3; |
| 12936 | PyObject *(*__pyx_t_4)(PyObject *); |
| 12937 | char *__pyx_t_5; |
| 12938 | int __pyx_lineno = 0; |
| 12939 | const char *__pyx_filename = NULL((void*)0); |
| 12940 | int __pyx_clineno = 0; |
| 12941 | __Pyx_RefNannySetupContext("clear", 0); |
| 12942 | /* Check if called by wrapper */ |
| 12943 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 12944 | /* Check if overridden in Python */ |
| 12945 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 12946 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__12946; goto __pyx_L1_error;} |
| 12947 | __Pyx_GOTREF(__pyx_t_1); |
| 12948 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_43clear)) { |
| 12949 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 12950 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__12950; goto __pyx_L1_error;} |
| 12951 | __Pyx_GOTREF(__pyx_t_2); |
| 12952 | __pyx_r = __pyx_t_2; |
| 12953 | __pyx_t_2 = 0; |
| 12954 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 12955 | goto __pyx_L0; |
| 12956 | } |
| 12957 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 12958 | } |
| 12959 | |
| 12960 | /* "xmmsvalue.pyx":671 |
| 12961 | * |
| 12962 | * cpdef clear(self): |
| 12963 | * for k in self.keys(): # <<<<<<<<<<<<<< |
| 12964 | * xmmsv_coll_attribute_remove(self.coll, k) |
| 12965 | * |
| 12966 | */ |
| 12967 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->keys(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__12967; goto __pyx_L1_error;} |
| 12968 | __Pyx_GOTREF(__pyx_t_1); |
| 12969 | if (PyList_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyTuple_Type)) { |
| 12970 | __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); __pyx_t_3 = 0; |
| 12971 | __pyx_t_4 = NULL((void*)0); |
| 12972 | } else { |
| 12973 | __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__12973; goto __pyx_L1_error;} |
| 12974 | __Pyx_GOTREF(__pyx_t_2); |
| 12975 | __pyx_t_4 = Py_TYPE(__pyx_t_2)(((PyObject*)(__pyx_t_2))->ob_type)->tp_iternext; |
| 12976 | } |
| 12977 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 12978 | for (;;) { |
| 12979 | if (!__pyx_t_4 && PyList_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyList_Type)) { |
| 12980 | if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)(((PyVarObject*)(__pyx_t_2))->ob_size)) break; |
| 12981 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 12982 | __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3)(((PyListObject *)(__pyx_t_2))->ob_item[__pyx_t_3]); __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); __pyx_t_3++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__12982; goto __pyx_L1_error;} |
| 12983 | #else |
| 12984 | __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3)( (((PyObject*)(__pyx_t_2))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_3) ); __pyx_t_3++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__12984; goto __pyx_L1_error;} |
| 12985 | #endif |
| 12986 | } else if (!__pyx_t_4 && PyTuple_CheckExact(__pyx_t_2)((((PyObject*)(__pyx_t_2))->ob_type) == &PyTuple_Type)) { |
| 12987 | if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)(((PyVarObject*)(__pyx_t_2))->ob_size)) break; |
| 12988 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 12989 | __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3)(((PyTupleObject *)(__pyx_t_2))->ob_item[__pyx_t_3]); __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); __pyx_t_3++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__12989; goto __pyx_L1_error;} |
| 12990 | #else |
| 12991 | __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3)( (((PyObject*)(__pyx_t_2))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_2, __pyx_t_3) ); __pyx_t_3++; if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__12991; goto __pyx_L1_error;} |
| 12992 | #endif |
| 12993 | } else { |
| 12994 | __pyx_t_1 = __pyx_t_4(__pyx_t_2); |
| 12995 | if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) { |
| 12996 | PyObject* exc_type = PyErr_Occurred(); |
| 12997 | if (exc_type) { |
| 12998 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 12999 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 671; __pyx_clineno = __LINE__12999; goto __pyx_L1_error;} |
| 13000 | } |
| 13001 | break; |
| 13002 | } |
| 13003 | __Pyx_GOTREF(__pyx_t_1); |
| 13004 | } |
| 13005 | __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_t_1 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 13006 | __pyx_t_1 = 0; |
| 13007 | |
| 13008 | /* "xmmsvalue.pyx":672 |
| 13009 | * cpdef clear(self): |
| 13010 | * for k in self.keys(): |
| 13011 | * xmmsv_coll_attribute_remove(self.coll, k) # <<<<<<<<<<<<<< |
| 13012 | * |
| 13013 | * def update(self, *a, **kargs): |
| 13014 | */ |
| 13015 | __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_k); if (unlikely((!__pyx_t_5) && PyErr_Occurred())__builtin_expect(!!((!__pyx_t_5) && PyErr_Occurred()) , 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__13015; goto __pyx_L1_error;} |
| 13016 | xmmsv_coll_attribute_remove(__pyx_v_self->__pyx_base.coll, __pyx_t_5); |
| 13017 | } |
| 13018 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 13019 | |
| 13020 | /* "xmmsvalue.pyx":670 |
| 13021 | * return xv |
| 13022 | * |
| 13023 | * cpdef clear(self): # <<<<<<<<<<<<<< |
| 13024 | * for k in self.keys(): |
| 13025 | * xmmsv_coll_attribute_remove(self.coll, k) |
| 13026 | */ |
| 13027 | |
| 13028 | /* function exit code */ |
| 13029 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 13030 | goto __pyx_L0; |
| 13031 | __pyx_L1_error:; |
| 13032 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13033 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 13034 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.clear", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13035 | __pyx_r = 0; |
| 13036 | __pyx_L0:; |
| 13037 | __Pyx_XDECREF(__pyx_v_k)do { if ((__pyx_v_k) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_k))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_k)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_k)))); } while (0); } while (0); |
| 13038 | __Pyx_XGIVEREF(__pyx_r); |
| 13039 | __Pyx_RefNannyFinishContext(); |
| 13040 | return __pyx_r; |
| 13041 | } |
| 13042 | |
| 13043 | /* Python wrapper */ |
| 13044 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_43clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 13045 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_42clear[] = "CollectionAttributes.clear(self)"; |
| 13046 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_43clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 13047 | PyObject *__pyx_r = 0; |
| 13048 | __Pyx_RefNannyDeclarations |
| 13049 | __Pyx_RefNannySetupContext("clear (wrapper)", 0); |
| 13050 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_42clear(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 13051 | |
| 13052 | /* function exit code */ |
| 13053 | __Pyx_RefNannyFinishContext(); |
| 13054 | return __pyx_r; |
| 13055 | } |
| 13056 | |
| 13057 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_42clear(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 13058 | PyObject *__pyx_r = NULL((void*)0); |
| 13059 | __Pyx_RefNannyDeclarations |
| 13060 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 13061 | int __pyx_lineno = 0; |
| 13062 | const char *__pyx_filename = NULL((void*)0); |
| 13063 | int __pyx_clineno = 0; |
| 13064 | __Pyx_RefNannySetupContext("clear", 0); |
| 13065 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 13066 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->clear(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__13066; goto __pyx_L1_error;} |
| 13067 | __Pyx_GOTREF(__pyx_t_1); |
| 13068 | __pyx_r = __pyx_t_1; |
| 13069 | __pyx_t_1 = 0; |
| 13070 | goto __pyx_L0; |
| 13071 | |
| 13072 | /* function exit code */ |
| 13073 | __pyx_L1_error:; |
| 13074 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13075 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.clear", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13076 | __pyx_r = NULL((void*)0); |
| 13077 | __pyx_L0:; |
| 13078 | __Pyx_XGIVEREF(__pyx_r); |
| 13079 | __Pyx_RefNannyFinishContext(); |
| 13080 | return __pyx_r; |
| 13081 | } |
| 13082 | |
| 13083 | /* "xmmsvalue.pyx":674 |
| 13084 | * xmmsv_coll_attribute_remove(self.coll, k) |
| 13085 | * |
| 13086 | * def update(self, *a, **kargs): # <<<<<<<<<<<<<< |
| 13087 | * for d in a: |
| 13088 | * if hasattr(d, 'keys') and hasattr(d.keys, '__call__'): |
| 13089 | */ |
| 13090 | |
| 13091 | /* Python wrapper */ |
| 13092 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_45update(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 13093 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_44update[] = "CollectionAttributes.update(self, *a, **kargs)"; |
| 13094 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_45update(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 13095 | PyObject *__pyx_v_a = 0; |
| 13096 | PyObject *__pyx_v_kargs = 0; |
| 13097 | PyObject *__pyx_r = 0; |
| 13098 | __Pyx_RefNannyDeclarations |
| 13099 | __Pyx_RefNannySetupContext("update (wrapper)", 0); |
| 13100 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "update", 1))__builtin_expect(!!(!__Pyx_CheckKeywordStrings(__pyx_kwds, "update" , 1)), 0)) return NULL((void*)0); |
| 13101 | __pyx_v_kargs = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New(); |
| 13102 | if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 13103 | __Pyx_GOTREF(__pyx_v_kargs); |
| 13104 | __Pyx_INCREF(__pyx_args)( ((PyObject*)(__pyx_args))->ob_refcnt++); |
| 13105 | __pyx_v_a = __pyx_args; |
| 13106 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_44update(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self), __pyx_v_a, __pyx_v_kargs); |
| 13107 | |
| 13108 | /* function exit code */ |
| 13109 | __Pyx_XDECREF(__pyx_v_a)do { if ((__pyx_v_a) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_a))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_a)))); } while (0); } while (0); |
| 13110 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 13111 | __Pyx_RefNannyFinishContext(); |
| 13112 | return __pyx_r; |
| 13113 | } |
| 13114 | |
| 13115 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_44update(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_kargs) { |
| 13116 | PyObject *__pyx_v_d = NULL((void*)0); |
| 13117 | PyObject *__pyx_v_k = NULL((void*)0); |
| 13118 | PyObject *__pyx_v_v = NULL((void*)0); |
| 13119 | PyObject *__pyx_r = NULL((void*)0); |
| 13120 | __Pyx_RefNannyDeclarations |
| 13121 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 13122 | Py_ssize_t __pyx_t_2; |
| 13123 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 13124 | int __pyx_t_4; |
| 13125 | int __pyx_t_5; |
| 13126 | int __pyx_t_6; |
| 13127 | PyObject *__pyx_t_7 = NULL((void*)0); |
| 13128 | Py_ssize_t __pyx_t_8; |
| 13129 | PyObject *(*__pyx_t_9)(PyObject *); |
| 13130 | PyObject *__pyx_t_10 = NULL((void*)0); |
| 13131 | PyObject *__pyx_t_11 = NULL((void*)0); |
| 13132 | PyObject *__pyx_t_12 = NULL((void*)0); |
| 13133 | PyObject *(*__pyx_t_13)(PyObject *); |
| 13134 | int __pyx_t_14; |
| 13135 | int __pyx_t_15; |
| 13136 | int __pyx_lineno = 0; |
| 13137 | const char *__pyx_filename = NULL((void*)0); |
| 13138 | int __pyx_clineno = 0; |
| 13139 | __Pyx_RefNannySetupContext("update", 0); |
| 13140 | |
| 13141 | /* "xmmsvalue.pyx":675 |
| 13142 | * |
| 13143 | * def update(self, *a, **kargs): |
| 13144 | * for d in a: # <<<<<<<<<<<<<< |
| 13145 | * if hasattr(d, 'keys') and hasattr(d.keys, '__call__'): |
| 13146 | * for k in d.keys(): |
| 13147 | */ |
| 13148 | __pyx_t_1 = __pyx_v_a; __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); __pyx_t_2 = 0; |
| 13149 | for (;;) { |
| 13150 | if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 13151 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 13152 | __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[__pyx_t_2]); __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_2++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__13152; goto __pyx_L1_error;} |
| 13153 | #else |
| 13154 | __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_2) ); __pyx_t_2++; if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__13154; goto __pyx_L1_error;} |
| 13155 | #endif |
| 13156 | __Pyx_XDECREF_SET(__pyx_v_d, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v_d; __pyx_v_d = __pyx_t_3 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 13157 | __pyx_t_3 = 0; |
| 13158 | |
| 13159 | /* "xmmsvalue.pyx":676 |
| 13160 | * def update(self, *a, **kargs): |
| 13161 | * for d in a: |
| 13162 | * if hasattr(d, 'keys') and hasattr(d.keys, '__call__'): # <<<<<<<<<<<<<< |
| 13163 | * for k in d.keys(): |
| 13164 | * self[k] = d[k] |
| 13165 | */ |
| 13166 | __pyx_t_4 = PyObject_HasAttr(__pyx_v_d, __pyx_n_s_keys); if (unlikely(__pyx_t_4 == -1)__builtin_expect(!!(__pyx_t_4 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__13166; goto __pyx_L1_error;} |
| 13167 | if ((__pyx_t_4 != 0)) { |
| 13168 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_d, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__13168; goto __pyx_L1_error;} |
| 13169 | __Pyx_GOTREF(__pyx_t_3); |
| 13170 | __pyx_t_5 = PyObject_HasAttr(__pyx_t_3, __pyx_n_s_call); if (unlikely(__pyx_t_5 == -1)__builtin_expect(!!(__pyx_t_5 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 676; __pyx_clineno = __LINE__13170; goto __pyx_L1_error;} |
| 13171 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 13172 | __pyx_t_6 = (__pyx_t_5 != 0); |
| 13173 | } else { |
| 13174 | __pyx_t_6 = (__pyx_t_4 != 0); |
| 13175 | } |
| 13176 | if (__pyx_t_6) { |
| 13177 | |
| 13178 | /* "xmmsvalue.pyx":677 |
| 13179 | * for d in a: |
| 13180 | * if hasattr(d, 'keys') and hasattr(d.keys, '__call__'): |
| 13181 | * for k in d.keys(): # <<<<<<<<<<<<<< |
| 13182 | * self[k] = d[k] |
| 13183 | * else: |
| 13184 | */ |
| 13185 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_d, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__13185; goto __pyx_L1_error;} |
| 13186 | __Pyx_GOTREF(__pyx_t_3); |
| 13187 | __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__13187; goto __pyx_L1_error;} |
| 13188 | __Pyx_GOTREF(__pyx_t_7); |
| 13189 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 13190 | if (PyList_CheckExact(__pyx_t_7)((((PyObject*)(__pyx_t_7))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_t_7)((((PyObject*)(__pyx_t_7))->ob_type) == &PyTuple_Type)) { |
| 13191 | __pyx_t_3 = __pyx_t_7; __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_8 = 0; |
| 13192 | __pyx_t_9 = NULL((void*)0); |
| 13193 | } else { |
| 13194 | __pyx_t_8 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__13194; goto __pyx_L1_error;} |
| 13195 | __Pyx_GOTREF(__pyx_t_3); |
| 13196 | __pyx_t_9 = Py_TYPE(__pyx_t_3)(((PyObject*)(__pyx_t_3))->ob_type)->tp_iternext; |
| 13197 | } |
| 13198 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 13199 | for (;;) { |
| 13200 | if (!__pyx_t_9 && PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type)) { |
| 13201 | if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 13202 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 13203 | __pyx_t_7 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_8)(((PyListObject *)(__pyx_t_3))->ob_item[__pyx_t_8]); __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); __pyx_t_8++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__13203; goto __pyx_L1_error;} |
| 13204 | #else |
| 13205 | __pyx_t_7 = PySequence_ITEM(__pyx_t_3, __pyx_t_8)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_8) ); __pyx_t_8++; if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__13205; goto __pyx_L1_error;} |
| 13206 | #endif |
| 13207 | } else if (!__pyx_t_9 && PyTuple_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)) { |
| 13208 | if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 13209 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 13210 | __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_8)(((PyTupleObject *)(__pyx_t_3))->ob_item[__pyx_t_8]); __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); __pyx_t_8++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__13210; goto __pyx_L1_error;} |
| 13211 | #else |
| 13212 | __pyx_t_7 = PySequence_ITEM(__pyx_t_3, __pyx_t_8)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_8) ); __pyx_t_8++; if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__13212; goto __pyx_L1_error;} |
| 13213 | #endif |
| 13214 | } else { |
| 13215 | __pyx_t_7 = __pyx_t_9(__pyx_t_3); |
| 13216 | if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) { |
| 13217 | PyObject* exc_type = PyErr_Occurred(); |
| 13218 | if (exc_type) { |
| 13219 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 13220 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__13220; goto __pyx_L1_error;} |
| 13221 | } |
| 13222 | break; |
| 13223 | } |
| 13224 | __Pyx_GOTREF(__pyx_t_7); |
| 13225 | } |
| 13226 | __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_7)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_t_7 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 13227 | __pyx_t_7 = 0; |
| 13228 | |
| 13229 | /* "xmmsvalue.pyx":678 |
| 13230 | * if hasattr(d, 'keys') and hasattr(d.keys, '__call__'): |
| 13231 | * for k in d.keys(): |
| 13232 | * self[k] = d[k] # <<<<<<<<<<<<<< |
| 13233 | * else: |
| 13234 | * for k, v in d: |
| 13235 | */ |
| 13236 | __pyx_t_7 = PyObject_GetItem(__pyx_v_d, __pyx_v_k); if (unlikely(__pyx_t_7 == NULL)__builtin_expect(!!(__pyx_t_7 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__13236; goto __pyx_L1_error;}; |
| 13237 | __Pyx_GOTREF(__pyx_t_7); |
| 13238 | if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self), __pyx_v_k, __pyx_t_7) < 0)__builtin_expect(!!(PyObject_SetItem(((PyObject *)__pyx_v_self ), __pyx_v_k, __pyx_t_7) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__13238; goto __pyx_L1_error;} |
| 13239 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 13240 | } |
| 13241 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 13242 | goto __pyx_L5; |
| 13243 | } |
| 13244 | /*else*/ { |
| 13245 | |
| 13246 | /* "xmmsvalue.pyx":680 |
| 13247 | * self[k] = d[k] |
| 13248 | * else: |
| 13249 | * for k, v in d: # <<<<<<<<<<<<<< |
| 13250 | * self[k] = v |
| 13251 | * for k in kargs: |
| 13252 | */ |
| 13253 | if (PyList_CheckExact(__pyx_v_d)((((PyObject*)(__pyx_v_d))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_v_d)((((PyObject*)(__pyx_v_d))->ob_type) == &PyTuple_Type)) { |
| 13254 | __pyx_t_3 = __pyx_v_d; __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_8 = 0; |
| 13255 | __pyx_t_9 = NULL((void*)0); |
| 13256 | } else { |
| 13257 | __pyx_t_8 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_d); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13257; goto __pyx_L1_error;} |
| 13258 | __Pyx_GOTREF(__pyx_t_3); |
| 13259 | __pyx_t_9 = Py_TYPE(__pyx_t_3)(((PyObject*)(__pyx_t_3))->ob_type)->tp_iternext; |
| 13260 | } |
| 13261 | for (;;) { |
| 13262 | if (!__pyx_t_9 && PyList_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyList_Type)) { |
| 13263 | if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 13264 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 13265 | __pyx_t_7 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_8)(((PyListObject *)(__pyx_t_3))->ob_item[__pyx_t_8]); __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); __pyx_t_8++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13265; goto __pyx_L1_error;} |
| 13266 | #else |
| 13267 | __pyx_t_7 = PySequence_ITEM(__pyx_t_3, __pyx_t_8)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_8) ); __pyx_t_8++; if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13267; goto __pyx_L1_error;} |
| 13268 | #endif |
| 13269 | } else if (!__pyx_t_9 && PyTuple_CheckExact(__pyx_t_3)((((PyObject*)(__pyx_t_3))->ob_type) == &PyTuple_Type)) { |
| 13270 | if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_3)(((PyVarObject*)(__pyx_t_3))->ob_size)) break; |
| 13271 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 13272 | __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_8)(((PyTupleObject *)(__pyx_t_3))->ob_item[__pyx_t_8]); __Pyx_INCREF(__pyx_t_7)( ((PyObject*)(__pyx_t_7))->ob_refcnt++); __pyx_t_8++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13272; goto __pyx_L1_error;} |
| 13273 | #else |
| 13274 | __pyx_t_7 = PySequence_ITEM(__pyx_t_3, __pyx_t_8)( (((PyObject*)(__pyx_t_3))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_3, __pyx_t_8) ); __pyx_t_8++; if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13274; goto __pyx_L1_error;} |
| 13275 | #endif |
| 13276 | } else { |
| 13277 | __pyx_t_7 = __pyx_t_9(__pyx_t_3); |
| 13278 | if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) { |
| 13279 | PyObject* exc_type = PyErr_Occurred(); |
| 13280 | if (exc_type) { |
| 13281 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 13282 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13282; goto __pyx_L1_error;} |
| 13283 | } |
| 13284 | break; |
| 13285 | } |
| 13286 | __Pyx_GOTREF(__pyx_t_7); |
| 13287 | } |
| 13288 | if ((likely(PyTuple_CheckExact(__pyx_t_7))__builtin_expect(!!(((((PyObject*)(__pyx_t_7))->ob_type) == &PyTuple_Type)), 1)) || (PyList_CheckExact(__pyx_t_7)((((PyObject*)(__pyx_t_7))->ob_type) == &PyList_Type))) { |
| 13289 | PyObject* sequence = __pyx_t_7; |
| 13290 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 13291 | Py_ssize_t size = Py_SIZE(sequence)(((PyVarObject*)(sequence))->ob_size); |
| 13292 | #else |
| 13293 | Py_ssize_t size = PySequence_Size(sequence); |
| 13294 | #endif |
| 13295 | if (unlikely(size != 2)__builtin_expect(!!(size != 2), 0)) { |
| 13296 | if (size > 2) __Pyx_RaiseTooManyValuesError(2); |
| 13297 | else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); |
| 13298 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13298; goto __pyx_L1_error;} |
| 13299 | } |
| 13300 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 13301 | if (likely(PyTuple_CheckExact(sequence))__builtin_expect(!!(((((PyObject*)(sequence))->ob_type) == &PyTuple_Type)), 1)) { |
| 13302 | __pyx_t_10 = PyTuple_GET_ITEM(sequence, 0)(((PyTupleObject *)(sequence))->ob_item[0]); |
| 13303 | __pyx_t_11 = PyTuple_GET_ITEM(sequence, 1)(((PyTupleObject *)(sequence))->ob_item[1]); |
| 13304 | } else { |
| 13305 | __pyx_t_10 = PyList_GET_ITEM(sequence, 0)(((PyListObject *)(sequence))->ob_item[0]); |
| 13306 | __pyx_t_11 = PyList_GET_ITEM(sequence, 1)(((PyListObject *)(sequence))->ob_item[1]); |
| 13307 | } |
| 13308 | __Pyx_INCREF(__pyx_t_10)( ((PyObject*)(__pyx_t_10))->ob_refcnt++); |
| 13309 | __Pyx_INCREF(__pyx_t_11)( ((PyObject*)(__pyx_t_11))->ob_refcnt++); |
| 13310 | #else |
| 13311 | __pyx_t_10 = PySequence_ITEM(sequence, 0)( (((PyObject*)(sequence))->ob_type)->tp_as_sequence-> sq_item(sequence, 0) ); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13311; goto __pyx_L1_error;} |
| 13312 | __Pyx_GOTREF(__pyx_t_10); |
| 13313 | __pyx_t_11 = PySequence_ITEM(sequence, 1)( (((PyObject*)(sequence))->ob_type)->tp_as_sequence-> sq_item(sequence, 1) ); if (unlikely(!__pyx_t_11)__builtin_expect(!!(!__pyx_t_11), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13313; goto __pyx_L1_error;} |
| 13314 | __Pyx_GOTREF(__pyx_t_11); |
| 13315 | #endif |
| 13316 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 13317 | } else { |
| 13318 | Py_ssize_t index = -1; |
| 13319 | __pyx_t_12 = PyObject_GetIter(__pyx_t_7); if (unlikely(!__pyx_t_12)__builtin_expect(!!(!__pyx_t_12), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13319; goto __pyx_L1_error;} |
| 13320 | __Pyx_GOTREF(__pyx_t_12); |
| 13321 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 13322 | __pyx_t_13 = Py_TYPE(__pyx_t_12)(((PyObject*)(__pyx_t_12))->ob_type)->tp_iternext; |
| 13323 | index = 0; __pyx_t_10 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_10)__builtin_expect(!!(!__pyx_t_10), 0)) goto __pyx_L10_unpacking_failed; |
| 13324 | __Pyx_GOTREF(__pyx_t_10); |
| 13325 | index = 1; __pyx_t_11 = __pyx_t_13(__pyx_t_12); if (unlikely(!__pyx_t_11)__builtin_expect(!!(!__pyx_t_11), 0)) goto __pyx_L10_unpacking_failed; |
| 13326 | __Pyx_GOTREF(__pyx_t_11); |
| 13327 | if (__Pyx_IternextUnpackEndCheck(__pyx_t_13(__pyx_t_12), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13327; goto __pyx_L1_error;} |
| 13328 | __pyx_t_13 = NULL((void*)0); |
| 13329 | __Pyx_DECREF(__pyx_t_12)do { if ( --((PyObject*)(__pyx_t_12))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_12)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_12)))); } while (0); __pyx_t_12 = 0; |
| 13330 | goto __pyx_L11_unpacking_done; |
| 13331 | __pyx_L10_unpacking_failed:; |
| 13332 | __Pyx_DECREF(__pyx_t_12)do { if ( --((PyObject*)(__pyx_t_12))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_12)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_12)))); } while (0); __pyx_t_12 = 0; |
| 13333 | __pyx_t_13 = NULL((void*)0); |
| 13334 | if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); |
| 13335 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__13335; goto __pyx_L1_error;} |
| 13336 | __pyx_L11_unpacking_done:; |
| 13337 | } |
| 13338 | __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_10)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_t_10 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 13339 | __pyx_t_10 = 0; |
| 13340 | __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_11)do { PyObject *tmp = (PyObject *) __pyx_v_v; __pyx_v_v = __pyx_t_11 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 13341 | __pyx_t_11 = 0; |
| 13342 | |
| 13343 | /* "xmmsvalue.pyx":681 |
| 13344 | * else: |
| 13345 | * for k, v in d: |
| 13346 | * self[k] = v # <<<<<<<<<<<<<< |
| 13347 | * for k in kargs: |
| 13348 | * self[k] = kargs[k] |
| 13349 | */ |
| 13350 | if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self), __pyx_v_k, __pyx_v_v) < 0)__builtin_expect(!!(PyObject_SetItem(((PyObject *)__pyx_v_self ), __pyx_v_k, __pyx_v_v) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 681; __pyx_clineno = __LINE__13350; goto __pyx_L1_error;} |
| 13351 | } |
| 13352 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 13353 | } |
| 13354 | __pyx_L5:; |
| 13355 | } |
| 13356 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 13357 | |
| 13358 | /* "xmmsvalue.pyx":682 |
| 13359 | * for k, v in d: |
| 13360 | * self[k] = v |
| 13361 | * for k in kargs: # <<<<<<<<<<<<<< |
| 13362 | * self[k] = kargs[k] |
| 13363 | * |
| 13364 | */ |
| 13365 | __pyx_t_2 = 0; |
| 13366 | __pyx_t_3 = __Pyx_dict_iterator(__pyx_v_kargs, 1, ((PyObject *)NULL((void*)0)), (&__pyx_t_8), (&__pyx_t_14)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__13366; goto __pyx_L1_error;} |
| 13367 | __Pyx_GOTREF(__pyx_t_3); |
| 13368 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13369 | __pyx_t_1 = __pyx_t_3; |
| 13370 | __pyx_t_3 = 0; |
| 13371 | while (1) { |
| 13372 | __pyx_t_15 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_8, &__pyx_t_2, &__pyx_t_3, NULL((void*)0), NULL((void*)0), __pyx_t_14); |
| 13373 | if (unlikely(__pyx_t_15 == 0)__builtin_expect(!!(__pyx_t_15 == 0), 0)) break; |
| 13374 | if (unlikely(__pyx_t_15 == -1)__builtin_expect(!!(__pyx_t_15 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__13374; goto __pyx_L1_error;} |
| 13375 | __Pyx_GOTREF(__pyx_t_3); |
| 13376 | __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v_k; __pyx_v_k = __pyx_t_3 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 13377 | __pyx_t_3 = 0; |
| 13378 | |
| 13379 | /* "xmmsvalue.pyx":683 |
| 13380 | * self[k] = v |
| 13381 | * for k in kargs: |
| 13382 | * self[k] = kargs[k] # <<<<<<<<<<<<<< |
| 13383 | * |
| 13384 | * def copy(self): |
| 13385 | */ |
| 13386 | __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_kargs, __pyx_v_k)PyObject_GetItem(__pyx_v_kargs, __pyx_v_k); if (unlikely(__pyx_t_3 == NULL)__builtin_expect(!!(__pyx_t_3 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__13386; goto __pyx_L1_error;}; |
| 13387 | __Pyx_GOTREF(__pyx_t_3); |
| 13388 | if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_self), __pyx_v_k, __pyx_t_3) < 0)__builtin_expect(!!(PyObject_SetItem(((PyObject *)__pyx_v_self ), __pyx_v_k, __pyx_t_3) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__13388; goto __pyx_L1_error;} |
| 13389 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 13390 | } |
| 13391 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 13392 | |
| 13393 | /* "xmmsvalue.pyx":674 |
| 13394 | * xmmsv_coll_attribute_remove(self.coll, k) |
| 13395 | * |
| 13396 | * def update(self, *a, **kargs): # <<<<<<<<<<<<<< |
| 13397 | * for d in a: |
| 13398 | * if hasattr(d, 'keys') and hasattr(d.keys, '__call__'): |
| 13399 | */ |
| 13400 | |
| 13401 | /* function exit code */ |
| 13402 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 13403 | goto __pyx_L0; |
| 13404 | __pyx_L1_error:; |
| 13405 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13406 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 13407 | __Pyx_XDECREF(__pyx_t_7)do { if ((__pyx_t_7) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_7)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while (0); } while (0); |
| 13408 | __Pyx_XDECREF(__pyx_t_10)do { if ((__pyx_t_10) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_10))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_10)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_10)))); } while (0); } while (0); |
| 13409 | __Pyx_XDECREF(__pyx_t_11)do { if ((__pyx_t_11) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_11))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_11)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_11)))); } while (0); } while (0); |
| 13410 | __Pyx_XDECREF(__pyx_t_12)do { if ((__pyx_t_12) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_12))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(__pyx_t_12)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_12)))); } while (0); } while (0); |
| 13411 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.update", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13412 | __pyx_r = NULL((void*)0); |
| 13413 | __pyx_L0:; |
| 13414 | __Pyx_XDECREF(__pyx_v_d)do { if ((__pyx_v_d) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_d))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_d)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_d)))); } while (0); } while (0); |
| 13415 | __Pyx_XDECREF(__pyx_v_k)do { if ((__pyx_v_k) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_k))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_k)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_k)))); } while (0); } while (0); |
| 13416 | __Pyx_XDECREF(__pyx_v_v)do { if ((__pyx_v_v) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_v))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_v)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_v)))); } while (0); } while (0); |
| 13417 | __Pyx_XGIVEREF(__pyx_r); |
| 13418 | __Pyx_RefNannyFinishContext(); |
| 13419 | return __pyx_r; |
| 13420 | } |
| 13421 | |
| 13422 | /* "xmmsvalue.pyx":685 |
| 13423 | * self[k] = kargs[k] |
| 13424 | * |
| 13425 | * def copy(self): # <<<<<<<<<<<<<< |
| 13426 | * return self.get_dict() |
| 13427 | * |
| 13428 | */ |
| 13429 | |
| 13430 | /* Python wrapper */ |
| 13431 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_47copy(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 13432 | static char __pyx_doc_9xmmsvalue_20CollectionAttributes_46copy[] = "CollectionAttributes.copy(self)"; |
| 13433 | static PyObject *__pyx_pw_9xmmsvalue_20CollectionAttributes_47copy(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 13434 | PyObject *__pyx_r = 0; |
| 13435 | __Pyx_RefNannyDeclarations |
| 13436 | __Pyx_RefNannySetupContext("copy (wrapper)", 0); |
| 13437 | __pyx_r = __pyx_pf_9xmmsvalue_20CollectionAttributes_46copy(((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)__pyx_v_self)); |
| 13438 | |
| 13439 | /* function exit code */ |
| 13440 | __Pyx_RefNannyFinishContext(); |
| 13441 | return __pyx_r; |
| 13442 | } |
| 13443 | |
| 13444 | static PyObject *__pyx_pf_9xmmsvalue_20CollectionAttributes_46copy(struct __pyx_obj_9xmmsvalue_CollectionAttributes *__pyx_v_self) { |
| 13445 | PyObject *__pyx_r = NULL((void*)0); |
| 13446 | __Pyx_RefNannyDeclarations |
| 13447 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 13448 | int __pyx_lineno = 0; |
| 13449 | const char *__pyx_filename = NULL((void*)0); |
| 13450 | int __pyx_clineno = 0; |
| 13451 | __Pyx_RefNannySetupContext("copy", 0); |
| 13452 | |
| 13453 | /* "xmmsvalue.pyx":686 |
| 13454 | * |
| 13455 | * def copy(self): |
| 13456 | * return self.get_dict() # <<<<<<<<<<<<<< |
| 13457 | * |
| 13458 | * |
| 13459 | */ |
| 13460 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 13461 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes *)__pyx_v_self->__pyx_base.__pyx_vtab)->get_dict(__pyx_v_self, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 686; __pyx_clineno = __LINE__13461; goto __pyx_L1_error;} |
| 13462 | __Pyx_GOTREF(__pyx_t_1); |
| 13463 | __pyx_r = __pyx_t_1; |
| 13464 | __pyx_t_1 = 0; |
| 13465 | goto __pyx_L0; |
| 13466 | |
| 13467 | /* "xmmsvalue.pyx":685 |
| 13468 | * self[k] = kargs[k] |
| 13469 | * |
| 13470 | * def copy(self): # <<<<<<<<<<<<<< |
| 13471 | * return self.get_dict() |
| 13472 | * |
| 13473 | */ |
| 13474 | |
| 13475 | /* function exit code */ |
| 13476 | __pyx_L1_error:; |
| 13477 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13478 | __Pyx_AddTraceback("xmmsvalue.CollectionAttributes.copy", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13479 | __pyx_r = NULL((void*)0); |
| 13480 | __pyx_L0:; |
| 13481 | __Pyx_XGIVEREF(__pyx_r); |
| 13482 | __Pyx_RefNannyFinishContext(); |
| 13483 | return __pyx_r; |
| 13484 | } |
| 13485 | |
| 13486 | /* "xmmsvalue.pyx":692 |
| 13487 | * #cdef object pylist |
| 13488 | * |
| 13489 | * def __init__(self, Collection c): # <<<<<<<<<<<<<< |
| 13490 | * if c.coll == NULL: |
| 13491 | * raise RuntimeError("Uninitialized collection") |
| 13492 | */ |
| 13493 | |
| 13494 | /* Python wrapper */ |
| 13495 | static int __pyx_pw_9xmmsvalue_18CollectionOperands_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 13496 | static int __pyx_pw_9xmmsvalue_18CollectionOperands_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 13497 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c = 0; |
| 13498 | int __pyx_lineno = 0; |
| 13499 | const char *__pyx_filename = NULL((void*)0); |
| 13500 | int __pyx_clineno = 0; |
| 13501 | int __pyx_r; |
| 13502 | __Pyx_RefNannyDeclarations |
| 13503 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 13504 | { |
| 13505 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_c,0}; |
| 13506 | PyObject* values[1] = {0}; |
| 13507 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 13508 | Py_ssize_t kw_args; |
| 13509 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 13510 | switch (pos_args) { |
| 13511 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 13512 | case 0: break; |
| 13513 | default: goto __pyx_L5_argtuple_error; |
| 13514 | } |
| 13515 | kw_args = PyDict_Size(__pyx_kwds); |
| 13516 | switch (pos_args) { |
| 13517 | case 0: |
| 13518 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_c)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_c )) != 0), 1)) kw_args--; |
| 13519 | else goto __pyx_L5_argtuple_error; |
| 13520 | } |
| 13521 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 13522 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__13522; goto __pyx_L3_error;} |
| 13523 | } |
| 13524 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) != 1) { |
| 13525 | goto __pyx_L5_argtuple_error; |
| 13526 | } else { |
| 13527 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 13528 | } |
| 13529 | __pyx_v_c = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 13530 | } |
| 13531 | goto __pyx_L4_argument_unpacking_done; |
| 13532 | __pyx_L5_argtuple_error:; |
| 13533 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__13533; goto __pyx_L3_error;} |
| 13534 | __pyx_L3_error:; |
| 13535 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13536 | __Pyx_RefNannyFinishContext(); |
| 13537 | return -1; |
| 13538 | __pyx_L4_argument_unpacking_done:; |
| 13539 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), __pyx_ptype_9xmmsvalue_Collection, 1, "c", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c ), __pyx_ptype_9xmmsvalue_Collection, 1, "c", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__13539; goto __pyx_L1_error;} |
| 13540 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands___init__(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self), __pyx_v_c); |
| 13541 | |
| 13542 | /* function exit code */ |
| 13543 | goto __pyx_L0; |
| 13544 | __pyx_L1_error:; |
| 13545 | __pyx_r = -1; |
| 13546 | __pyx_L0:; |
| 13547 | __Pyx_RefNannyFinishContext(); |
| 13548 | return __pyx_r; |
| 13549 | } |
| 13550 | |
| 13551 | static int __pyx_pf_9xmmsvalue_18CollectionOperands___init__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c) { |
| 13552 | int __pyx_r; |
| 13553 | __Pyx_RefNannyDeclarations |
| 13554 | int __pyx_t_1; |
| 13555 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 13556 | int __pyx_lineno = 0; |
| 13557 | const char *__pyx_filename = NULL((void*)0); |
| 13558 | int __pyx_clineno = 0; |
| 13559 | __Pyx_RefNannySetupContext("__init__", 0); |
| 13560 | |
| 13561 | /* "xmmsvalue.pyx":693 |
| 13562 | * |
| 13563 | * def __init__(self, Collection c): |
| 13564 | * if c.coll == NULL: # <<<<<<<<<<<<<< |
| 13565 | * raise RuntimeError("Uninitialized collection") |
| 13566 | * self.set_collection(c.coll) |
| 13567 | */ |
| 13568 | __pyx_t_1 = ((__pyx_v_c->__pyx_base.coll == NULL((void*)0)) != 0); |
| 13569 | if (__pyx_t_1) { |
| 13570 | |
| 13571 | /* "xmmsvalue.pyx":694 |
| 13572 | * def __init__(self, Collection c): |
| 13573 | * if c.coll == NULL: |
| 13574 | * raise RuntimeError("Uninitialized collection") # <<<<<<<<<<<<<< |
| 13575 | * self.set_collection(c.coll) |
| 13576 | * self.init_pylist() |
| 13577 | */ |
| 13578 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__21, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__13578; goto __pyx_L1_error;} |
| 13579 | __Pyx_GOTREF(__pyx_t_2); |
| 13580 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 13581 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 13582 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__13582; goto __pyx_L1_error;} |
| 13583 | } |
| 13584 | |
| 13585 | /* "xmmsvalue.pyx":695 |
| 13586 | * if c.coll == NULL: |
| 13587 | * raise RuntimeError("Uninitialized collection") |
| 13588 | * self.set_collection(c.coll) # <<<<<<<<<<<<<< |
| 13589 | * self.init_pylist() |
| 13590 | * |
| 13591 | */ |
| 13592 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.set_collection(((struct __pyx_obj_9xmmsvalue_CollectionRef *)__pyx_v_self), __pyx_v_c->__pyx_base.coll); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__13592; goto __pyx_L1_error;} |
| 13593 | __Pyx_GOTREF(__pyx_t_2); |
| 13594 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 13595 | |
| 13596 | /* "xmmsvalue.pyx":696 |
| 13597 | * raise RuntimeError("Uninitialized collection") |
| 13598 | * self.set_collection(c.coll) |
| 13599 | * self.init_pylist() # <<<<<<<<<<<<<< |
| 13600 | * |
| 13601 | * cdef init_pylist(self): |
| 13602 | */ |
| 13603 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *)__pyx_v_self->__pyx_base.__pyx_vtab)->init_pylist(__pyx_v_self); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 696; __pyx_clineno = __LINE__13603; goto __pyx_L1_error;} |
| 13604 | __Pyx_GOTREF(__pyx_t_2); |
| 13605 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 13606 | |
| 13607 | /* "xmmsvalue.pyx":692 |
| 13608 | * #cdef object pylist |
| 13609 | * |
| 13610 | * def __init__(self, Collection c): # <<<<<<<<<<<<<< |
| 13611 | * if c.coll == NULL: |
| 13612 | * raise RuntimeError("Uninitialized collection") |
| 13613 | */ |
| 13614 | |
| 13615 | /* function exit code */ |
| 13616 | __pyx_r = 0; |
| 13617 | goto __pyx_L0; |
| 13618 | __pyx_L1_error:; |
| 13619 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 13620 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13621 | __pyx_r = -1; |
| 13622 | __pyx_L0:; |
| 13623 | __Pyx_RefNannyFinishContext(); |
| 13624 | return __pyx_r; |
| 13625 | } |
| 13626 | |
| 13627 | /* "xmmsvalue.pyx":698 |
| 13628 | * self.init_pylist() |
| 13629 | * |
| 13630 | * cdef init_pylist(self): # <<<<<<<<<<<<<< |
| 13631 | * cdef XmmsValue v |
| 13632 | * if self.pylist is None: |
| 13633 | */ |
| 13634 | |
| 13635 | static PyObject *__pyx_f_9xmmsvalue_18CollectionOperands_init_pylist(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self) { |
| 13636 | struct __pyx_obj_9xmmsvalue_XmmsValue *__pyx_v_v = 0; |
| 13637 | PyObject *__pyx_r = NULL((void*)0); |
| 13638 | __Pyx_RefNannyDeclarations |
| 13639 | int __pyx_t_1; |
| 13640 | int __pyx_t_2; |
| 13641 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 13642 | int __pyx_lineno = 0; |
| 13643 | const char *__pyx_filename = NULL((void*)0); |
| 13644 | int __pyx_clineno = 0; |
| 13645 | __Pyx_RefNannySetupContext("init_pylist", 0); |
| 13646 | |
| 13647 | /* "xmmsvalue.pyx":700 |
| 13648 | * cdef init_pylist(self): |
| 13649 | * cdef XmmsValue v |
| 13650 | * if self.pylist is None: # <<<<<<<<<<<<<< |
| 13651 | * v = XmmsValue() |
| 13652 | * v.set_value(xmmsv_coll_operands_get(self.coll)) |
| 13653 | */ |
| 13654 | __pyx_t_1 = (__pyx_v_self->pylist == Py_None(&_Py_NoneStruct)); |
| 13655 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 13656 | if (__pyx_t_2) { |
| 13657 | |
| 13658 | /* "xmmsvalue.pyx":701 |
| 13659 | * cdef XmmsValue v |
| 13660 | * if self.pylist is None: |
| 13661 | * v = XmmsValue() # <<<<<<<<<<<<<< |
| 13662 | * v.set_value(xmmsv_coll_operands_get(self.coll)) |
| 13663 | * self.pylist = v.value() |
| 13664 | */ |
| 13665 | __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_XmmsValue)), __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 701; __pyx_clineno = __LINE__13665; goto __pyx_L1_error;} |
| 13666 | __Pyx_GOTREF(__pyx_t_3); |
| 13667 | __pyx_v_v = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)__pyx_t_3); |
| 13668 | __pyx_t_3 = 0; |
| 13669 | |
| 13670 | /* "xmmsvalue.pyx":702 |
| 13671 | * if self.pylist is None: |
| 13672 | * v = XmmsValue() |
| 13673 | * v.set_value(xmmsv_coll_operands_get(self.coll)) # <<<<<<<<<<<<<< |
| 13674 | * self.pylist = v.value() |
| 13675 | * |
| 13676 | */ |
| 13677 | __pyx_t_3 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_v->__pyx_vtab)->set_value(__pyx_v_v, xmmsv_coll_operands_get(__pyx_v_self->__pyx_base.coll), NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__13677; goto __pyx_L1_error;} |
| 13678 | __Pyx_GOTREF(__pyx_t_3); |
| 13679 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 13680 | |
| 13681 | /* "xmmsvalue.pyx":703 |
| 13682 | * v = XmmsValue() |
| 13683 | * v.set_value(xmmsv_coll_operands_get(self.coll)) |
| 13684 | * self.pylist = v.value() # <<<<<<<<<<<<<< |
| 13685 | * |
| 13686 | * def __repr__(self): |
| 13687 | */ |
| 13688 | __pyx_t_3 = ((struct __pyx_vtabstruct_9xmmsvalue_XmmsValue *)__pyx_v_v->__pyx_vtab)->value(__pyx_v_v, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 703; __pyx_clineno = __LINE__13688; goto __pyx_L1_error;} |
| 13689 | __Pyx_GOTREF(__pyx_t_3); |
| 13690 | __Pyx_GIVEREF(__pyx_t_3); |
| 13691 | __Pyx_GOTREF(__pyx_v_self->pylist); |
| 13692 | __Pyx_DECREF(__pyx_v_self->pylist)do { if ( --((PyObject*)(__pyx_v_self->pylist))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_self-> pylist)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_self->pylist)))); } while (0); |
| 13693 | __pyx_v_self->pylist = __pyx_t_3; |
| 13694 | __pyx_t_3 = 0; |
| 13695 | goto __pyx_L3; |
| 13696 | } |
| 13697 | __pyx_L3:; |
| 13698 | |
| 13699 | /* "xmmsvalue.pyx":698 |
| 13700 | * self.init_pylist() |
| 13701 | * |
| 13702 | * cdef init_pylist(self): # <<<<<<<<<<<<<< |
| 13703 | * cdef XmmsValue v |
| 13704 | * if self.pylist is None: |
| 13705 | */ |
| 13706 | |
| 13707 | /* function exit code */ |
| 13708 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 13709 | goto __pyx_L0; |
| 13710 | __pyx_L1_error:; |
| 13711 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 13712 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.init_pylist", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13713 | __pyx_r = 0; |
| 13714 | __pyx_L0:; |
| 13715 | __Pyx_XDECREF((PyObject *)__pyx_v_v)do { if (((PyObject *)__pyx_v_v) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_v))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_v) ))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_v)))); } while (0); } while (0); |
| 13716 | __Pyx_XGIVEREF(__pyx_r); |
| 13717 | __Pyx_RefNannyFinishContext(); |
| 13718 | return __pyx_r; |
| 13719 | } |
| 13720 | |
| 13721 | /* "xmmsvalue.pyx":705 |
| 13722 | * self.pylist = v.value() |
| 13723 | * |
| 13724 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 13725 | * return repr(self.pylist) |
| 13726 | * def __str__(self): |
| 13727 | */ |
| 13728 | |
| 13729 | /* Python wrapper */ |
| 13730 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_3__repr__(PyObject *__pyx_v_self); /*proto*/ |
| 13731 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_3__repr__(PyObject *__pyx_v_self) { |
| 13732 | PyObject *__pyx_r = 0; |
| 13733 | __Pyx_RefNannyDeclarations |
| 13734 | __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); |
| 13735 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_2__repr__(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self)); |
| 13736 | |
| 13737 | /* function exit code */ |
| 13738 | __Pyx_RefNannyFinishContext(); |
| 13739 | return __pyx_r; |
| 13740 | } |
| 13741 | |
| 13742 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_2__repr__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self) { |
| 13743 | PyObject *__pyx_r = NULL((void*)0); |
| 13744 | __Pyx_RefNannyDeclarations |
| 13745 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 13746 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 13747 | int __pyx_lineno = 0; |
| 13748 | const char *__pyx_filename = NULL((void*)0); |
| 13749 | int __pyx_clineno = 0; |
| 13750 | __Pyx_RefNannySetupContext("__repr__", 0); |
| 13751 | |
| 13752 | /* "xmmsvalue.pyx":706 |
| 13753 | * |
| 13754 | * def __repr__(self): |
| 13755 | * return repr(self.pylist) # <<<<<<<<<<<<<< |
| 13756 | * def __str__(self): |
| 13757 | * return str(self.pylist) |
| 13758 | */ |
| 13759 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 13760 | __pyx_t_1 = __pyx_v_self->pylist; |
| 13761 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 13762 | __pyx_t_2 = PyObject_Repr(__pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 706; __pyx_clineno = __LINE__13762; goto __pyx_L1_error;} |
| 13763 | __Pyx_GOTREF(__pyx_t_2); |
| 13764 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 13765 | __pyx_r = __pyx_t_2; |
| 13766 | __pyx_t_2 = 0; |
| 13767 | goto __pyx_L0; |
| 13768 | |
| 13769 | /* "xmmsvalue.pyx":705 |
| 13770 | * self.pylist = v.value() |
| 13771 | * |
| 13772 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 13773 | * return repr(self.pylist) |
| 13774 | * def __str__(self): |
| 13775 | */ |
| 13776 | |
| 13777 | /* function exit code */ |
| 13778 | __pyx_L1_error:; |
| 13779 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13780 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 13781 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13782 | __pyx_r = NULL((void*)0); |
| 13783 | __pyx_L0:; |
| 13784 | __Pyx_XGIVEREF(__pyx_r); |
| 13785 | __Pyx_RefNannyFinishContext(); |
| 13786 | return __pyx_r; |
| 13787 | } |
| 13788 | |
| 13789 | /* "xmmsvalue.pyx":707 |
| 13790 | * def __repr__(self): |
| 13791 | * return repr(self.pylist) |
| 13792 | * def __str__(self): # <<<<<<<<<<<<<< |
| 13793 | * return str(self.pylist) |
| 13794 | * def __len__(self): |
| 13795 | */ |
| 13796 | |
| 13797 | /* Python wrapper */ |
| 13798 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_5__str__(PyObject *__pyx_v_self); /*proto*/ |
| 13799 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_5__str__(PyObject *__pyx_v_self) { |
| 13800 | PyObject *__pyx_r = 0; |
| 13801 | __Pyx_RefNannyDeclarations |
| 13802 | __Pyx_RefNannySetupContext("__str__ (wrapper)", 0); |
| 13803 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_4__str__(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self)); |
| 13804 | |
| 13805 | /* function exit code */ |
| 13806 | __Pyx_RefNannyFinishContext(); |
| 13807 | return __pyx_r; |
| 13808 | } |
| 13809 | |
| 13810 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_4__str__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self) { |
| 13811 | PyObject *__pyx_r = NULL((void*)0); |
| 13812 | __Pyx_RefNannyDeclarations |
| 13813 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 13814 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 13815 | int __pyx_lineno = 0; |
| 13816 | const char *__pyx_filename = NULL((void*)0); |
| 13817 | int __pyx_clineno = 0; |
| 13818 | __Pyx_RefNannySetupContext("__str__", 0); |
| 13819 | |
| 13820 | /* "xmmsvalue.pyx":708 |
| 13821 | * return repr(self.pylist) |
| 13822 | * def __str__(self): |
| 13823 | * return str(self.pylist) # <<<<<<<<<<<<<< |
| 13824 | * def __len__(self): |
| 13825 | * return len(self.pylist) |
| 13826 | */ |
| 13827 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 13828 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__13828; goto __pyx_L1_error;} |
| 13829 | __Pyx_GOTREF(__pyx_t_1); |
| 13830 | __Pyx_INCREF(__pyx_v_self->pylist)( ((PyObject*)(__pyx_v_self->pylist))->ob_refcnt++); |
| 13831 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self->pylist)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_v_self ->pylist); |
| 13832 | __Pyx_GIVEREF(__pyx_v_self->pylist); |
| 13833 | __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyString_Type))), __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 708; __pyx_clineno = __LINE__13833; goto __pyx_L1_error;} |
| 13834 | __Pyx_GOTREF(__pyx_t_2); |
| 13835 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 13836 | __pyx_r = __pyx_t_2; |
| 13837 | __pyx_t_2 = 0; |
| 13838 | goto __pyx_L0; |
| 13839 | |
| 13840 | /* "xmmsvalue.pyx":707 |
| 13841 | * def __repr__(self): |
| 13842 | * return repr(self.pylist) |
| 13843 | * def __str__(self): # <<<<<<<<<<<<<< |
| 13844 | * return str(self.pylist) |
| 13845 | * def __len__(self): |
| 13846 | */ |
| 13847 | |
| 13848 | /* function exit code */ |
| 13849 | __pyx_L1_error:; |
| 13850 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13851 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 13852 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13853 | __pyx_r = NULL((void*)0); |
| 13854 | __pyx_L0:; |
| 13855 | __Pyx_XGIVEREF(__pyx_r); |
| 13856 | __Pyx_RefNannyFinishContext(); |
| 13857 | return __pyx_r; |
| 13858 | } |
| 13859 | |
| 13860 | /* "xmmsvalue.pyx":709 |
| 13861 | * def __str__(self): |
| 13862 | * return str(self.pylist) |
| 13863 | * def __len__(self): # <<<<<<<<<<<<<< |
| 13864 | * return len(self.pylist) |
| 13865 | * def __getitem__(self, i): |
| 13866 | */ |
| 13867 | |
| 13868 | /* Python wrapper */ |
| 13869 | static Py_ssize_t __pyx_pw_9xmmsvalue_18CollectionOperands_7__len__(PyObject *__pyx_v_self); /*proto*/ |
| 13870 | static Py_ssize_t __pyx_pw_9xmmsvalue_18CollectionOperands_7__len__(PyObject *__pyx_v_self) { |
| 13871 | Py_ssize_t __pyx_r; |
| 13872 | __Pyx_RefNannyDeclarations |
| 13873 | __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); |
| 13874 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_6__len__(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self)); |
| 13875 | |
| 13876 | /* function exit code */ |
| 13877 | __Pyx_RefNannyFinishContext(); |
| 13878 | return __pyx_r; |
| 13879 | } |
| 13880 | |
| 13881 | static Py_ssize_t __pyx_pf_9xmmsvalue_18CollectionOperands_6__len__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self) { |
| 13882 | Py_ssize_t __pyx_r; |
| 13883 | __Pyx_RefNannyDeclarations |
| 13884 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 13885 | Py_ssize_t __pyx_t_2; |
| 13886 | int __pyx_lineno = 0; |
| 13887 | const char *__pyx_filename = NULL((void*)0); |
| 13888 | int __pyx_clineno = 0; |
| 13889 | __Pyx_RefNannySetupContext("__len__", 0); |
| 13890 | |
| 13891 | /* "xmmsvalue.pyx":710 |
| 13892 | * return str(self.pylist) |
| 13893 | * def __len__(self): |
| 13894 | * return len(self.pylist) # <<<<<<<<<<<<<< |
| 13895 | * def __getitem__(self, i): |
| 13896 | * return self.pylist[i] |
| 13897 | */ |
| 13898 | __pyx_t_1 = __pyx_v_self->pylist; |
| 13899 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 13900 | __pyx_t_2 = PyObject_LengthPyObject_Size(__pyx_t_1); if (unlikely(__pyx_t_2 == -1)__builtin_expect(!!(__pyx_t_2 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__13900; goto __pyx_L1_error;} |
| 13901 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 13902 | __pyx_r = __pyx_t_2; |
| 13903 | goto __pyx_L0; |
| 13904 | |
| 13905 | /* "xmmsvalue.pyx":709 |
| 13906 | * def __str__(self): |
| 13907 | * return str(self.pylist) |
| 13908 | * def __len__(self): # <<<<<<<<<<<<<< |
| 13909 | * return len(self.pylist) |
| 13910 | * def __getitem__(self, i): |
| 13911 | */ |
| 13912 | |
| 13913 | /* function exit code */ |
| 13914 | __pyx_L1_error:; |
| 13915 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13916 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13917 | __pyx_r = -1; |
| 13918 | __pyx_L0:; |
| 13919 | __Pyx_RefNannyFinishContext(); |
| 13920 | return __pyx_r; |
| 13921 | } |
| 13922 | |
| 13923 | /* "xmmsvalue.pyx":711 |
| 13924 | * def __len__(self): |
| 13925 | * return len(self.pylist) |
| 13926 | * def __getitem__(self, i): # <<<<<<<<<<<<<< |
| 13927 | * return self.pylist[i] |
| 13928 | * def __delitem__(self, i): |
| 13929 | */ |
| 13930 | |
| 13931 | /* Python wrapper */ |
| 13932 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_9__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_i); /*proto*/ |
| 13933 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_9__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_i) { |
| 13934 | PyObject *__pyx_r = 0; |
| 13935 | __Pyx_RefNannyDeclarations |
| 13936 | __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); |
| 13937 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_8__getitem__(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self), ((PyObject *)__pyx_v_i)); |
| 13938 | |
| 13939 | /* function exit code */ |
| 13940 | __Pyx_RefNannyFinishContext(); |
| 13941 | return __pyx_r; |
| 13942 | } |
| 13943 | |
| 13944 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_8__getitem__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, PyObject *__pyx_v_i) { |
| 13945 | PyObject *__pyx_r = NULL((void*)0); |
| 13946 | __Pyx_RefNannyDeclarations |
| 13947 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 13948 | int __pyx_lineno = 0; |
| 13949 | const char *__pyx_filename = NULL((void*)0); |
| 13950 | int __pyx_clineno = 0; |
| 13951 | __Pyx_RefNannySetupContext("__getitem__", 0); |
| 13952 | |
| 13953 | /* "xmmsvalue.pyx":712 |
| 13954 | * return len(self.pylist) |
| 13955 | * def __getitem__(self, i): |
| 13956 | * return self.pylist[i] # <<<<<<<<<<<<<< |
| 13957 | * def __delitem__(self, i): |
| 13958 | * cdef Collection op |
| 13959 | */ |
| 13960 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 13961 | __pyx_t_1 = PyObject_GetItem(__pyx_v_self->pylist, __pyx_v_i); if (unlikely(__pyx_t_1 == NULL)__builtin_expect(!!(__pyx_t_1 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 712; __pyx_clineno = __LINE__13961; goto __pyx_L1_error;}; |
| 13962 | __Pyx_GOTREF(__pyx_t_1); |
| 13963 | __pyx_r = __pyx_t_1; |
| 13964 | __pyx_t_1 = 0; |
| 13965 | goto __pyx_L0; |
| 13966 | |
| 13967 | /* "xmmsvalue.pyx":711 |
| 13968 | * def __len__(self): |
| 13969 | * return len(self.pylist) |
| 13970 | * def __getitem__(self, i): # <<<<<<<<<<<<<< |
| 13971 | * return self.pylist[i] |
| 13972 | * def __delitem__(self, i): |
| 13973 | */ |
| 13974 | |
| 13975 | /* function exit code */ |
| 13976 | __pyx_L1_error:; |
| 13977 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 13978 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 13979 | __pyx_r = NULL((void*)0); |
| 13980 | __pyx_L0:; |
| 13981 | __Pyx_XGIVEREF(__pyx_r); |
| 13982 | __Pyx_RefNannyFinishContext(); |
| 13983 | return __pyx_r; |
| 13984 | } |
| 13985 | |
| 13986 | /* "xmmsvalue.pyx":713 |
| 13987 | * def __getitem__(self, i): |
| 13988 | * return self.pylist[i] |
| 13989 | * def __delitem__(self, i): # <<<<<<<<<<<<<< |
| 13990 | * cdef Collection op |
| 13991 | * try: |
| 13992 | */ |
| 13993 | |
| 13994 | /* Python wrapper */ |
| 13995 | static int __pyx_pw_9xmmsvalue_18CollectionOperands_11__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_i); /*proto*/ |
| 13996 | static int __pyx_pw_9xmmsvalue_18CollectionOperands_11__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_i) { |
| 13997 | int __pyx_r; |
| 13998 | __Pyx_RefNannyDeclarations |
| 13999 | __Pyx_RefNannySetupContext("__delitem__ (wrapper)", 0); |
| 14000 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_10__delitem__(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self), ((PyObject *)__pyx_v_i)); |
| 14001 | |
| 14002 | /* function exit code */ |
| 14003 | __Pyx_RefNannyFinishContext(); |
| 14004 | return __pyx_r; |
| 14005 | } |
| 14006 | |
| 14007 | static int __pyx_pf_9xmmsvalue_18CollectionOperands_10__delitem__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, PyObject *__pyx_v_i) { |
| 14008 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_op = 0; |
| 14009 | int __pyx_r; |
| 14010 | __Pyx_RefNannyDeclarations |
| 14011 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14012 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 14013 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 14014 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 14015 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 14016 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 14017 | int __pyx_t_7; |
| 14018 | PyObject *__pyx_t_8 = NULL((void*)0); |
| 14019 | int __pyx_lineno = 0; |
| 14020 | const char *__pyx_filename = NULL((void*)0); |
| 14021 | int __pyx_clineno = 0; |
| 14022 | __Pyx_RefNannySetupContext("__delitem__", 0); |
| 14023 | |
| 14024 | /* "xmmsvalue.pyx":715 |
| 14025 | * def __delitem__(self, i): |
| 14026 | * cdef Collection op |
| 14027 | * try: # <<<<<<<<<<<<<< |
| 14028 | * op = self.pylist.pop(i) |
| 14029 | * xmmsv_coll_remove_operand(self.coll, op.coll) |
| 14030 | */ |
| 14031 | { |
| 14032 | __Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3); |
| 14033 | __Pyx_XGOTREF(__pyx_t_1); |
| 14034 | __Pyx_XGOTREF(__pyx_t_2); |
| 14035 | __Pyx_XGOTREF(__pyx_t_3); |
| 14036 | /*try:*/ { |
| 14037 | |
| 14038 | /* "xmmsvalue.pyx":716 |
| 14039 | * cdef Collection op |
| 14040 | * try: |
| 14041 | * op = self.pylist.pop(i) # <<<<<<<<<<<<<< |
| 14042 | * xmmsv_coll_remove_operand(self.coll, op.coll) |
| 14043 | * except IndexError: |
| 14044 | */ |
| 14045 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->pylist, __pyx_n_s_pop); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__14045; goto __pyx_L3_error;} |
| 14046 | __Pyx_GOTREF(__pyx_t_4); |
| 14047 | __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__14047; goto __pyx_L3_error;} |
| 14048 | __Pyx_GOTREF(__pyx_t_5); |
| 14049 | __Pyx_INCREF(__pyx_v_i)( ((PyObject*)(__pyx_v_i))->ob_refcnt++); |
| 14050 | PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_i)(((PyTupleObject *)(__pyx_t_5))->ob_item[0] = __pyx_v_i); |
| 14051 | __Pyx_GIVEREF(__pyx_v_i); |
| 14052 | __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_5, NULL((void*)0)); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__14052; goto __pyx_L3_error;} |
| 14053 | __Pyx_GOTREF(__pyx_t_6); |
| 14054 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 14055 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 14056 | if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_9xmmsvalue_Collection)))__builtin_expect(!!(((__pyx_t_6) == (&_Py_NoneStruct)) || __builtin_expect(!!(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_9xmmsvalue_Collection )), 1)), 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 716; __pyx_clineno = __LINE__14056; goto __pyx_L3_error;} |
| 14057 | __pyx_v_op = ((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_t_6); |
| 14058 | __pyx_t_6 = 0; |
| 14059 | |
| 14060 | /* "xmmsvalue.pyx":717 |
| 14061 | * try: |
| 14062 | * op = self.pylist.pop(i) |
| 14063 | * xmmsv_coll_remove_operand(self.coll, op.coll) # <<<<<<<<<<<<<< |
| 14064 | * except IndexError: |
| 14065 | * raise IndexError("Index out of range") |
| 14066 | */ |
| 14067 | xmmsv_coll_remove_operand(__pyx_v_self->__pyx_base.coll, __pyx_v_op->__pyx_base.coll); |
| 14068 | } |
| 14069 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); __pyx_t_1 = 0; |
| 14070 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); __pyx_t_2 = 0; |
| 14071 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); __pyx_t_3 = 0; |
| 14072 | goto __pyx_L10_try_end; |
| 14073 | __pyx_L3_error:; |
| 14074 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); __pyx_t_4 = 0; |
| 14075 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); __pyx_t_5 = 0; |
| 14076 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); __pyx_t_6 = 0; |
| 14077 | |
| 14078 | /* "xmmsvalue.pyx":718 |
| 14079 | * op = self.pylist.pop(i) |
| 14080 | * xmmsv_coll_remove_operand(self.coll, op.coll) |
| 14081 | * except IndexError: # <<<<<<<<<<<<<< |
| 14082 | * raise IndexError("Index out of range") |
| 14083 | * def __iter__(self): |
| 14084 | */ |
| 14085 | __pyx_t_7 = PyErr_ExceptionMatches(__pyx_builtin_IndexError); |
| 14086 | if (__pyx_t_7) { |
| 14087 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14088 | if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__14088; goto __pyx_L5_except_error;} |
| 14089 | __Pyx_GOTREF(__pyx_t_6); |
| 14090 | __Pyx_GOTREF(__pyx_t_5); |
| 14091 | __Pyx_GOTREF(__pyx_t_4); |
| 14092 | |
| 14093 | /* "xmmsvalue.pyx":719 |
| 14094 | * xmmsv_coll_remove_operand(self.coll, op.coll) |
| 14095 | * except IndexError: |
| 14096 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 14097 | * def __iter__(self): |
| 14098 | * return iter(self.pylist) |
| 14099 | */ |
| 14100 | __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__22, NULL((void*)0)); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; __pyx_clineno = __LINE__14100; goto __pyx_L5_except_error;} |
| 14101 | __Pyx_GOTREF(__pyx_t_8); |
| 14102 | __Pyx_Raise(__pyx_t_8, 0, 0, 0); |
| 14103 | __Pyx_DECREF(__pyx_t_8)do { if ( --((PyObject*)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_8)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while ( 0); __pyx_t_8 = 0; |
| 14104 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; __pyx_clineno = __LINE__14104; goto __pyx_L5_except_error;} |
| 14105 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 14106 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 14107 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 14108 | goto __pyx_L4_exception_handled; |
| 14109 | } |
| 14110 | goto __pyx_L5_except_error; |
| 14111 | __pyx_L5_except_error:; |
| 14112 | __Pyx_XGIVEREF(__pyx_t_1); |
| 14113 | __Pyx_XGIVEREF(__pyx_t_2); |
| 14114 | __Pyx_XGIVEREF(__pyx_t_3); |
| 14115 | __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); |
| 14116 | goto __pyx_L1_error; |
| 14117 | __pyx_L4_exception_handled:; |
| 14118 | __Pyx_XGIVEREF(__pyx_t_1); |
| 14119 | __Pyx_XGIVEREF(__pyx_t_2); |
| 14120 | __Pyx_XGIVEREF(__pyx_t_3); |
| 14121 | __Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3); |
| 14122 | __pyx_L10_try_end:; |
| 14123 | } |
| 14124 | |
| 14125 | /* "xmmsvalue.pyx":713 |
| 14126 | * def __getitem__(self, i): |
| 14127 | * return self.pylist[i] |
| 14128 | * def __delitem__(self, i): # <<<<<<<<<<<<<< |
| 14129 | * cdef Collection op |
| 14130 | * try: |
| 14131 | */ |
| 14132 | |
| 14133 | /* function exit code */ |
| 14134 | __pyx_r = 0; |
| 14135 | goto __pyx_L0; |
| 14136 | __pyx_L1_error:; |
| 14137 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 14138 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 14139 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 14140 | __Pyx_XDECREF(__pyx_t_8)do { if ((__pyx_t_8) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_8)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while (0); } while (0); |
| 14141 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14142 | __pyx_r = -1; |
| 14143 | __pyx_L0:; |
| 14144 | __Pyx_XDECREF((PyObject *)__pyx_v_op)do { if (((PyObject *)__pyx_v_op) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_op))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_op )))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_op)))); } while (0); } while (0); |
| 14145 | __Pyx_RefNannyFinishContext(); |
| 14146 | return __pyx_r; |
| 14147 | } |
| 14148 | |
| 14149 | /* "xmmsvalue.pyx":720 |
| 14150 | * except IndexError: |
| 14151 | * raise IndexError("Index out of range") |
| 14152 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 14153 | * return iter(self.pylist) |
| 14154 | * |
| 14155 | */ |
| 14156 | |
| 14157 | /* Python wrapper */ |
| 14158 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_13__iter__(PyObject *__pyx_v_self); /*proto*/ |
| 14159 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_13__iter__(PyObject *__pyx_v_self) { |
| 14160 | PyObject *__pyx_r = 0; |
| 14161 | __Pyx_RefNannyDeclarations |
| 14162 | __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); |
| 14163 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_12__iter__(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self)); |
| 14164 | |
| 14165 | /* function exit code */ |
| 14166 | __Pyx_RefNannyFinishContext(); |
| 14167 | return __pyx_r; |
| 14168 | } |
| 14169 | |
| 14170 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_12__iter__(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self) { |
| 14171 | PyObject *__pyx_r = NULL((void*)0); |
| 14172 | __Pyx_RefNannyDeclarations |
| 14173 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14174 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 14175 | int __pyx_lineno = 0; |
| 14176 | const char *__pyx_filename = NULL((void*)0); |
| 14177 | int __pyx_clineno = 0; |
| 14178 | __Pyx_RefNannySetupContext("__iter__", 0); |
| 14179 | |
| 14180 | /* "xmmsvalue.pyx":721 |
| 14181 | * raise IndexError("Index out of range") |
| 14182 | * def __iter__(self): |
| 14183 | * return iter(self.pylist) # <<<<<<<<<<<<<< |
| 14184 | * |
| 14185 | * cpdef append(self, Collection op): |
| 14186 | */ |
| 14187 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14188 | __pyx_t_1 = __pyx_v_self->pylist; |
| 14189 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 14190 | __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 721; __pyx_clineno = __LINE__14190; goto __pyx_L1_error;} |
| 14191 | __Pyx_GOTREF(__pyx_t_2); |
| 14192 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14193 | __pyx_r = __pyx_t_2; |
| 14194 | __pyx_t_2 = 0; |
| 14195 | goto __pyx_L0; |
| 14196 | |
| 14197 | /* "xmmsvalue.pyx":720 |
| 14198 | * except IndexError: |
| 14199 | * raise IndexError("Index out of range") |
| 14200 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 14201 | * return iter(self.pylist) |
| 14202 | * |
| 14203 | */ |
| 14204 | |
| 14205 | /* function exit code */ |
| 14206 | __pyx_L1_error:; |
| 14207 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14208 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 14209 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14210 | __pyx_r = NULL((void*)0); |
| 14211 | __pyx_L0:; |
| 14212 | __Pyx_XGIVEREF(__pyx_r); |
| 14213 | __Pyx_RefNannyFinishContext(); |
| 14214 | return __pyx_r; |
| 14215 | } |
| 14216 | |
| 14217 | /* "xmmsvalue.pyx":723 |
| 14218 | * return iter(self.pylist) |
| 14219 | * |
| 14220 | * cpdef append(self, Collection op): # <<<<<<<<<<<<<< |
| 14221 | * """Append an operand""" |
| 14222 | * with cython.nonecheck(True): |
| 14223 | */ |
| 14224 | |
| 14225 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_15append(PyObject *__pyx_v_self, PyObject *__pyx_v_op); /*proto*/ |
| 14226 | static PyObject *__pyx_f_9xmmsvalue_18CollectionOperands_append(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_op, int __pyx_skip_dispatch) { |
| 14227 | PyObject *__pyx_r = NULL((void*)0); |
| 14228 | __Pyx_RefNannyDeclarations |
| 14229 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14230 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 14231 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 14232 | int __pyx_t_4; |
| 14233 | int __pyx_lineno = 0; |
| 14234 | const char *__pyx_filename = NULL((void*)0); |
| 14235 | int __pyx_clineno = 0; |
| 14236 | __Pyx_RefNannySetupContext("append", 0); |
| 14237 | /* Check if called by wrapper */ |
| 14238 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 14239 | /* Check if overridden in Python */ |
| 14240 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 14241 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_append); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__14241; goto __pyx_L1_error;} |
| 14242 | __Pyx_GOTREF(__pyx_t_1); |
| 14243 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_15append)) { |
| 14244 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14245 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__14245; goto __pyx_L1_error;} |
| 14246 | __Pyx_GOTREF(__pyx_t_2); |
| 14247 | __Pyx_INCREF(((PyObject *)__pyx_v_op))( ((PyObject*)(((PyObject *)__pyx_v_op)))->ob_refcnt++); |
| 14248 | PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_op))(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = ((PyObject * )__pyx_v_op)); |
| 14249 | __Pyx_GIVEREF(((PyObject *)__pyx_v_op)); |
| 14250 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__14250; goto __pyx_L1_error;} |
| 14251 | __Pyx_GOTREF(__pyx_t_3); |
| 14252 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 14253 | __pyx_r = __pyx_t_3; |
| 14254 | __pyx_t_3 = 0; |
| 14255 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14256 | goto __pyx_L0; |
| 14257 | } |
| 14258 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14259 | } |
| 14260 | |
| 14261 | /* "xmmsvalue.pyx":726 |
| 14262 | * """Append an operand""" |
| 14263 | * with cython.nonecheck(True): |
| 14264 | * xmmsv_coll_add_operand(self.coll, op.coll) # <<<<<<<<<<<<<< |
| 14265 | * self.pylist.append(op) |
| 14266 | * |
| 14267 | */ |
| 14268 | if (unlikely(((PyObject *)__pyx_v_self) == Py_None)__builtin_expect(!!(((PyObject *)__pyx_v_self) == (&_Py_NoneStruct )), 0)) { |
| 14269 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "coll"); |
| 14270 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; __pyx_clineno = __LINE__14270; goto __pyx_L1_error;} |
| 14271 | } |
| 14272 | if (unlikely(((PyObject *)__pyx_v_op) == Py_None)__builtin_expect(!!(((PyObject *)__pyx_v_op) == (&_Py_NoneStruct )), 0)) { |
| 14273 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "coll"); |
| 14274 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 726; __pyx_clineno = __LINE__14274; goto __pyx_L1_error;} |
| 14275 | } |
| 14276 | xmmsv_coll_add_operand(__pyx_v_self->__pyx_base.coll, __pyx_v_op->__pyx_base.coll); |
| 14277 | |
| 14278 | /* "xmmsvalue.pyx":727 |
| 14279 | * with cython.nonecheck(True): |
| 14280 | * xmmsv_coll_add_operand(self.coll, op.coll) |
| 14281 | * self.pylist.append(op) # <<<<<<<<<<<<<< |
| 14282 | * |
| 14283 | * cpdef extend(self, ops): |
| 14284 | */ |
| 14285 | if (unlikely(((PyObject *)__pyx_v_self) == Py_None)__builtin_expect(!!(((PyObject *)__pyx_v_self) == (&_Py_NoneStruct )), 0)) { |
| 14286 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "pylist"); |
| 14287 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__14287; goto __pyx_L1_error;} |
| 14288 | } |
| 14289 | __pyx_t_4 = __Pyx_PyObject_Append(__pyx_v_self->pylist, ((PyObject *)__pyx_v_op)); if (unlikely(__pyx_t_4 == -1)__builtin_expect(!!(__pyx_t_4 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 727; __pyx_clineno = __LINE__14289; goto __pyx_L1_error;} |
| 14290 | |
| 14291 | /* "xmmsvalue.pyx":723 |
| 14292 | * return iter(self.pylist) |
| 14293 | * |
| 14294 | * cpdef append(self, Collection op): # <<<<<<<<<<<<<< |
| 14295 | * """Append an operand""" |
| 14296 | * with cython.nonecheck(True): |
| 14297 | */ |
| 14298 | |
| 14299 | /* function exit code */ |
| 14300 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 14301 | goto __pyx_L0; |
| 14302 | __pyx_L1_error:; |
| 14303 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14304 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 14305 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 14306 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.append", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14307 | __pyx_r = 0; |
| 14308 | __pyx_L0:; |
| 14309 | __Pyx_XGIVEREF(__pyx_r); |
| 14310 | __Pyx_RefNannyFinishContext(); |
| 14311 | return __pyx_r; |
| 14312 | } |
| 14313 | |
| 14314 | /* Python wrapper */ |
| 14315 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_15append(PyObject *__pyx_v_self, PyObject *__pyx_v_op); /*proto*/ |
| 14316 | static char __pyx_doc_9xmmsvalue_18CollectionOperands_14append[] = "CollectionOperands.append(self, Collection op)\nAppend an operand"; |
| 14317 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_15append(PyObject *__pyx_v_self, PyObject *__pyx_v_op) { |
| 14318 | CYTHON_UNUSED__attribute__ ((__unused__)) int __pyx_lineno = 0; |
| 14319 | CYTHON_UNUSED__attribute__ ((__unused__)) const char *__pyx_filename = NULL((void*)0); |
| 14320 | CYTHON_UNUSED__attribute__ ((__unused__)) int __pyx_clineno = 0; |
| 14321 | PyObject *__pyx_r = 0; |
| 14322 | __Pyx_RefNannyDeclarations |
| 14323 | __Pyx_RefNannySetupContext("append (wrapper)", 0); |
| 14324 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_op), __pyx_ptype_9xmmsvalue_Collection, 1, "op", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_op ), __pyx_ptype_9xmmsvalue_Collection, 1, "op", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__14324; goto __pyx_L1_error;} |
| 14325 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_14append(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self), ((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_op)); |
| 14326 | |
| 14327 | /* function exit code */ |
| 14328 | goto __pyx_L0; |
| 14329 | __pyx_L1_error:; |
| 14330 | __pyx_r = NULL((void*)0); |
| 14331 | __pyx_L0:; |
| 14332 | __Pyx_RefNannyFinishContext(); |
| 14333 | return __pyx_r; |
| 14334 | } |
| 14335 | |
| 14336 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_14append(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_op) { |
| 14337 | PyObject *__pyx_r = NULL((void*)0); |
| 14338 | __Pyx_RefNannyDeclarations |
| 14339 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14340 | int __pyx_lineno = 0; |
| 14341 | const char *__pyx_filename = NULL((void*)0); |
| 14342 | int __pyx_clineno = 0; |
| 14343 | __Pyx_RefNannySetupContext("append", 0); |
| 14344 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14345 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *)__pyx_v_self->__pyx_base.__pyx_vtab)->append(__pyx_v_self, __pyx_v_op, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__14345; goto __pyx_L1_error;} |
| 14346 | __Pyx_GOTREF(__pyx_t_1); |
| 14347 | __pyx_r = __pyx_t_1; |
| 14348 | __pyx_t_1 = 0; |
| 14349 | goto __pyx_L0; |
| 14350 | |
| 14351 | /* function exit code */ |
| 14352 | __pyx_L1_error:; |
| 14353 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14354 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.append", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14355 | __pyx_r = NULL((void*)0); |
| 14356 | __pyx_L0:; |
| 14357 | __Pyx_XGIVEREF(__pyx_r); |
| 14358 | __Pyx_RefNannyFinishContext(); |
| 14359 | return __pyx_r; |
| 14360 | } |
| 14361 | |
| 14362 | /* "xmmsvalue.pyx":729 |
| 14363 | * self.pylist.append(op) |
| 14364 | * |
| 14365 | * cpdef extend(self, ops): # <<<<<<<<<<<<<< |
| 14366 | * for o in ops: |
| 14367 | * self.append(o) |
| 14368 | */ |
| 14369 | |
| 14370 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_17extend(PyObject *__pyx_v_self, PyObject *__pyx_v_ops); /*proto*/ |
| 14371 | static PyObject *__pyx_f_9xmmsvalue_18CollectionOperands_extend(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, PyObject *__pyx_v_ops, int __pyx_skip_dispatch) { |
| 14372 | PyObject *__pyx_v_o = NULL((void*)0); |
| 14373 | PyObject *__pyx_r = NULL((void*)0); |
| 14374 | __Pyx_RefNannyDeclarations |
| 14375 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14376 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 14377 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 14378 | Py_ssize_t __pyx_t_4; |
| 14379 | PyObject *(*__pyx_t_5)(PyObject *); |
| 14380 | int __pyx_lineno = 0; |
| 14381 | const char *__pyx_filename = NULL((void*)0); |
| 14382 | int __pyx_clineno = 0; |
| 14383 | __Pyx_RefNannySetupContext("extend", 0); |
| 14384 | /* Check if called by wrapper */ |
| 14385 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 14386 | /* Check if overridden in Python */ |
| 14387 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 14388 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extend); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__14388; goto __pyx_L1_error;} |
| 14389 | __Pyx_GOTREF(__pyx_t_1); |
| 14390 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_17extend)) { |
| 14391 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14392 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__14392; goto __pyx_L1_error;} |
| 14393 | __Pyx_GOTREF(__pyx_t_2); |
| 14394 | __Pyx_INCREF(__pyx_v_ops)( ((PyObject*)(__pyx_v_ops))->ob_refcnt++); |
| 14395 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_ops)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_ops); |
| 14396 | __Pyx_GIVEREF(__pyx_v_ops); |
| 14397 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__14397; goto __pyx_L1_error;} |
| 14398 | __Pyx_GOTREF(__pyx_t_3); |
| 14399 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 14400 | __pyx_r = __pyx_t_3; |
| 14401 | __pyx_t_3 = 0; |
| 14402 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14403 | goto __pyx_L0; |
| 14404 | } |
| 14405 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14406 | } |
| 14407 | |
| 14408 | /* "xmmsvalue.pyx":730 |
| 14409 | * |
| 14410 | * cpdef extend(self, ops): |
| 14411 | * for o in ops: # <<<<<<<<<<<<<< |
| 14412 | * self.append(o) |
| 14413 | * |
| 14414 | */ |
| 14415 | if (PyList_CheckExact(__pyx_v_ops)((((PyObject*)(__pyx_v_ops))->ob_type) == &PyList_Type ) || PyTuple_CheckExact(__pyx_v_ops)((((PyObject*)(__pyx_v_ops))->ob_type) == &PyTuple_Type )) { |
| 14416 | __pyx_t_1 = __pyx_v_ops; __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); __pyx_t_4 = 0; |
| 14417 | __pyx_t_5 = NULL((void*)0); |
| 14418 | } else { |
| 14419 | __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_ops); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__14419; goto __pyx_L1_error;} |
| 14420 | __Pyx_GOTREF(__pyx_t_1); |
| 14421 | __pyx_t_5 = Py_TYPE(__pyx_t_1)(((PyObject*)(__pyx_t_1))->ob_type)->tp_iternext; |
| 14422 | } |
| 14423 | for (;;) { |
| 14424 | if (!__pyx_t_5 && PyList_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyList_Type)) { |
| 14425 | if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 14426 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 14427 | __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4)(((PyListObject *)(__pyx_t_1))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__14427; goto __pyx_L1_error;} |
| 14428 | #else |
| 14429 | __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_4)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__14429; goto __pyx_L1_error;} |
| 14430 | #endif |
| 14431 | } else if (!__pyx_t_5 && PyTuple_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyTuple_Type)) { |
| 14432 | if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 14433 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 14434 | __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4)(((PyTupleObject *)(__pyx_t_1))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__14434; goto __pyx_L1_error;} |
| 14435 | #else |
| 14436 | __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_4)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__14436; goto __pyx_L1_error;} |
| 14437 | #endif |
| 14438 | } else { |
| 14439 | __pyx_t_3 = __pyx_t_5(__pyx_t_1); |
| 14440 | if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) { |
| 14441 | PyObject* exc_type = PyErr_Occurred(); |
| 14442 | if (exc_type) { |
| 14443 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 14444 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 730; __pyx_clineno = __LINE__14444; goto __pyx_L1_error;} |
| 14445 | } |
| 14446 | break; |
| 14447 | } |
| 14448 | __Pyx_GOTREF(__pyx_t_3); |
| 14449 | } |
| 14450 | __Pyx_XDECREF_SET(__pyx_v_o, __pyx_t_3)do { PyObject *tmp = (PyObject *) __pyx_v_o; __pyx_v_o = __pyx_t_3 ; do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 14451 | __pyx_t_3 = 0; |
| 14452 | |
| 14453 | /* "xmmsvalue.pyx":731 |
| 14454 | * cpdef extend(self, ops): |
| 14455 | * for o in ops: |
| 14456 | * self.append(o) # <<<<<<<<<<<<<< |
| 14457 | * |
| 14458 | * cpdef remove(self, Collection op): |
| 14459 | */ |
| 14460 | if (!(likely(((__pyx_v_o) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_o, __pyx_ptype_9xmmsvalue_Collection)))__builtin_expect(!!(((__pyx_v_o) == (&_Py_NoneStruct)) || __builtin_expect(!!(__Pyx_TypeTest(__pyx_v_o, __pyx_ptype_9xmmsvalue_Collection )), 1)), 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; __pyx_clineno = __LINE__14460; goto __pyx_L1_error;} |
| 14461 | __pyx_t_3 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *)__pyx_v_self->__pyx_base.__pyx_vtab)->append(__pyx_v_self, ((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_o), 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 731; __pyx_clineno = __LINE__14461; goto __pyx_L1_error;} |
| 14462 | __Pyx_GOTREF(__pyx_t_3); |
| 14463 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 14464 | } |
| 14465 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14466 | |
| 14467 | /* "xmmsvalue.pyx":729 |
| 14468 | * self.pylist.append(op) |
| 14469 | * |
| 14470 | * cpdef extend(self, ops): # <<<<<<<<<<<<<< |
| 14471 | * for o in ops: |
| 14472 | * self.append(o) |
| 14473 | */ |
| 14474 | |
| 14475 | /* function exit code */ |
| 14476 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 14477 | goto __pyx_L0; |
| 14478 | __pyx_L1_error:; |
| 14479 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14480 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 14481 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 14482 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14483 | __pyx_r = 0; |
| 14484 | __pyx_L0:; |
| 14485 | __Pyx_XDECREF(__pyx_v_o)do { if ((__pyx_v_o) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_o))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_o)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_o)))); } while (0); } while (0); |
| 14486 | __Pyx_XGIVEREF(__pyx_r); |
| 14487 | __Pyx_RefNannyFinishContext(); |
| 14488 | return __pyx_r; |
| 14489 | } |
| 14490 | |
| 14491 | /* Python wrapper */ |
| 14492 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_17extend(PyObject *__pyx_v_self, PyObject *__pyx_v_ops); /*proto*/ |
| 14493 | static char __pyx_doc_9xmmsvalue_18CollectionOperands_16extend[] = "CollectionOperands.extend(self, ops)"; |
| 14494 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_17extend(PyObject *__pyx_v_self, PyObject *__pyx_v_ops) { |
| 14495 | PyObject *__pyx_r = 0; |
| 14496 | __Pyx_RefNannyDeclarations |
| 14497 | __Pyx_RefNannySetupContext("extend (wrapper)", 0); |
| 14498 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_16extend(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self), ((PyObject *)__pyx_v_ops)); |
| 14499 | |
| 14500 | /* function exit code */ |
| 14501 | __Pyx_RefNannyFinishContext(); |
| 14502 | return __pyx_r; |
| 14503 | } |
| 14504 | |
| 14505 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_16extend(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, PyObject *__pyx_v_ops) { |
| 14506 | PyObject *__pyx_r = NULL((void*)0); |
| 14507 | __Pyx_RefNannyDeclarations |
| 14508 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14509 | int __pyx_lineno = 0; |
| 14510 | const char *__pyx_filename = NULL((void*)0); |
| 14511 | int __pyx_clineno = 0; |
| 14512 | __Pyx_RefNannySetupContext("extend", 0); |
| 14513 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14514 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *)__pyx_v_self->__pyx_base.__pyx_vtab)->extend(__pyx_v_self, __pyx_v_ops, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 729; __pyx_clineno = __LINE__14514; goto __pyx_L1_error;} |
| 14515 | __Pyx_GOTREF(__pyx_t_1); |
| 14516 | __pyx_r = __pyx_t_1; |
| 14517 | __pyx_t_1 = 0; |
| 14518 | goto __pyx_L0; |
| 14519 | |
| 14520 | /* function exit code */ |
| 14521 | __pyx_L1_error:; |
| 14522 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14523 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14524 | __pyx_r = NULL((void*)0); |
| 14525 | __pyx_L0:; |
| 14526 | __Pyx_XGIVEREF(__pyx_r); |
| 14527 | __Pyx_RefNannyFinishContext(); |
| 14528 | return __pyx_r; |
| 14529 | } |
| 14530 | |
| 14531 | /* "xmmsvalue.pyx":733 |
| 14532 | * self.append(o) |
| 14533 | * |
| 14534 | * cpdef remove(self, Collection op): # <<<<<<<<<<<<<< |
| 14535 | * """Remove an operand""" |
| 14536 | * with cython.nonecheck(True): |
| 14537 | */ |
| 14538 | |
| 14539 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_19remove(PyObject *__pyx_v_self, PyObject *__pyx_v_op); /*proto*/ |
| 14540 | static PyObject *__pyx_f_9xmmsvalue_18CollectionOperands_remove(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_op, int __pyx_skip_dispatch) { |
| 14541 | PyObject *__pyx_r = NULL((void*)0); |
| 14542 | __Pyx_RefNannyDeclarations |
| 14543 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14544 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 14545 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 14546 | int __pyx_lineno = 0; |
| 14547 | const char *__pyx_filename = NULL((void*)0); |
| 14548 | int __pyx_clineno = 0; |
| 14549 | __Pyx_RefNannySetupContext("remove", 0); |
| 14550 | /* Check if called by wrapper */ |
| 14551 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 14552 | /* Check if overridden in Python */ |
| 14553 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 14554 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_remove); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__14554; goto __pyx_L1_error;} |
| 14555 | __Pyx_GOTREF(__pyx_t_1); |
| 14556 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_19remove)) { |
| 14557 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14558 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__14558; goto __pyx_L1_error;} |
| 14559 | __Pyx_GOTREF(__pyx_t_2); |
| 14560 | __Pyx_INCREF(((PyObject *)__pyx_v_op))( ((PyObject*)(((PyObject *)__pyx_v_op)))->ob_refcnt++); |
| 14561 | PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_op))(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = ((PyObject * )__pyx_v_op)); |
| 14562 | __Pyx_GIVEREF(((PyObject *)__pyx_v_op)); |
| 14563 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__14563; goto __pyx_L1_error;} |
| 14564 | __Pyx_GOTREF(__pyx_t_3); |
| 14565 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 14566 | __pyx_r = __pyx_t_3; |
| 14567 | __pyx_t_3 = 0; |
| 14568 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14569 | goto __pyx_L0; |
| 14570 | } |
| 14571 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14572 | } |
| 14573 | |
| 14574 | /* "xmmsvalue.pyx":736 |
| 14575 | * """Remove an operand""" |
| 14576 | * with cython.nonecheck(True): |
| 14577 | * xmmsv_coll_remove_operand(self.coll, op.coll) # <<<<<<<<<<<<<< |
| 14578 | * self.pylist.remove(op) |
| 14579 | * |
| 14580 | */ |
| 14581 | if (unlikely(((PyObject *)__pyx_v_self) == Py_None)__builtin_expect(!!(((PyObject *)__pyx_v_self) == (&_Py_NoneStruct )), 0)) { |
| 14582 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "coll"); |
| 14583 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__14583; goto __pyx_L1_error;} |
| 14584 | } |
| 14585 | if (unlikely(((PyObject *)__pyx_v_op) == Py_None)__builtin_expect(!!(((PyObject *)__pyx_v_op) == (&_Py_NoneStruct )), 0)) { |
| 14586 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "coll"); |
| 14587 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 736; __pyx_clineno = __LINE__14587; goto __pyx_L1_error;} |
| 14588 | } |
| 14589 | xmmsv_coll_remove_operand(__pyx_v_self->__pyx_base.coll, __pyx_v_op->__pyx_base.coll); |
| 14590 | |
| 14591 | /* "xmmsvalue.pyx":737 |
| 14592 | * with cython.nonecheck(True): |
| 14593 | * xmmsv_coll_remove_operand(self.coll, op.coll) |
| 14594 | * self.pylist.remove(op) # <<<<<<<<<<<<<< |
| 14595 | * |
| 14596 | * cpdef clear(self): |
| 14597 | */ |
| 14598 | if (unlikely(((PyObject *)__pyx_v_self) == Py_None)__builtin_expect(!!(((PyObject *)__pyx_v_self) == (&_Py_NoneStruct )), 0)) { |
| 14599 | PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "pylist"); |
| 14600 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; __pyx_clineno = __LINE__14600; goto __pyx_L1_error;} |
| 14601 | } |
| 14602 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->pylist, __pyx_n_s_remove); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; __pyx_clineno = __LINE__14602; goto __pyx_L1_error;} |
| 14603 | __Pyx_GOTREF(__pyx_t_1); |
| 14604 | __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; __pyx_clineno = __LINE__14604; goto __pyx_L1_error;} |
| 14605 | __Pyx_GOTREF(__pyx_t_3); |
| 14606 | __Pyx_INCREF(((PyObject *)__pyx_v_op))( ((PyObject*)(((PyObject *)__pyx_v_op)))->ob_refcnt++); |
| 14607 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_op))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_op)); |
| 14608 | __Pyx_GIVEREF(((PyObject *)__pyx_v_op)); |
| 14609 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 737; __pyx_clineno = __LINE__14609; goto __pyx_L1_error;} |
| 14610 | __Pyx_GOTREF(__pyx_t_2); |
| 14611 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14612 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 14613 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 14614 | |
| 14615 | /* "xmmsvalue.pyx":733 |
| 14616 | * self.append(o) |
| 14617 | * |
| 14618 | * cpdef remove(self, Collection op): # <<<<<<<<<<<<<< |
| 14619 | * """Remove an operand""" |
| 14620 | * with cython.nonecheck(True): |
| 14621 | */ |
| 14622 | |
| 14623 | /* function exit code */ |
| 14624 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 14625 | goto __pyx_L0; |
| 14626 | __pyx_L1_error:; |
| 14627 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14628 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 14629 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 14630 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.remove", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14631 | __pyx_r = 0; |
| 14632 | __pyx_L0:; |
| 14633 | __Pyx_XGIVEREF(__pyx_r); |
| 14634 | __Pyx_RefNannyFinishContext(); |
| 14635 | return __pyx_r; |
| 14636 | } |
| 14637 | |
| 14638 | /* Python wrapper */ |
| 14639 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_19remove(PyObject *__pyx_v_self, PyObject *__pyx_v_op); /*proto*/ |
| 14640 | static char __pyx_doc_9xmmsvalue_18CollectionOperands_18remove[] = "CollectionOperands.remove(self, Collection op)\nRemove an operand"; |
| 14641 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_19remove(PyObject *__pyx_v_self, PyObject *__pyx_v_op) { |
| 14642 | CYTHON_UNUSED__attribute__ ((__unused__)) int __pyx_lineno = 0; |
| 14643 | CYTHON_UNUSED__attribute__ ((__unused__)) const char *__pyx_filename = NULL((void*)0); |
| 14644 | CYTHON_UNUSED__attribute__ ((__unused__)) int __pyx_clineno = 0; |
| 14645 | PyObject *__pyx_r = 0; |
| 14646 | __Pyx_RefNannyDeclarations |
| 14647 | __Pyx_RefNannySetupContext("remove (wrapper)", 0); |
| 14648 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_op), __pyx_ptype_9xmmsvalue_Collection, 1, "op", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_op ), __pyx_ptype_9xmmsvalue_Collection, 1, "op", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__14648; goto __pyx_L1_error;} |
| 14649 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_18remove(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self), ((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_v_op)); |
| 14650 | |
| 14651 | /* function exit code */ |
| 14652 | goto __pyx_L0; |
| 14653 | __pyx_L1_error:; |
| 14654 | __pyx_r = NULL((void*)0); |
| 14655 | __pyx_L0:; |
| 14656 | __Pyx_RefNannyFinishContext(); |
| 14657 | return __pyx_r; |
| 14658 | } |
| 14659 | |
| 14660 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_18remove(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_op) { |
| 14661 | PyObject *__pyx_r = NULL((void*)0); |
| 14662 | __Pyx_RefNannyDeclarations |
| 14663 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14664 | int __pyx_lineno = 0; |
| 14665 | const char *__pyx_filename = NULL((void*)0); |
| 14666 | int __pyx_clineno = 0; |
| 14667 | __Pyx_RefNannySetupContext("remove", 0); |
| 14668 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14669 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *)__pyx_v_self->__pyx_base.__pyx_vtab)->remove(__pyx_v_self, __pyx_v_op, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 733; __pyx_clineno = __LINE__14669; goto __pyx_L1_error;} |
| 14670 | __Pyx_GOTREF(__pyx_t_1); |
| 14671 | __pyx_r = __pyx_t_1; |
| 14672 | __pyx_t_1 = 0; |
| 14673 | goto __pyx_L0; |
| 14674 | |
| 14675 | /* function exit code */ |
| 14676 | __pyx_L1_error:; |
| 14677 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14678 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.remove", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14679 | __pyx_r = NULL((void*)0); |
| 14680 | __pyx_L0:; |
| 14681 | __Pyx_XGIVEREF(__pyx_r); |
| 14682 | __Pyx_RefNannyFinishContext(); |
| 14683 | return __pyx_r; |
| 14684 | } |
| 14685 | |
| 14686 | /* "xmmsvalue.pyx":739 |
| 14687 | * self.pylist.remove(op) |
| 14688 | * |
| 14689 | * cpdef clear(self): # <<<<<<<<<<<<<< |
| 14690 | * cdef Collection op |
| 14691 | * for op in self.pylist: |
| 14692 | */ |
| 14693 | |
| 14694 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_21clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 14695 | static PyObject *__pyx_f_9xmmsvalue_18CollectionOperands_clear(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, int __pyx_skip_dispatch) { |
| 14696 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_op = 0; |
| 14697 | PyObject *__pyx_r = NULL((void*)0); |
| 14698 | __Pyx_RefNannyDeclarations |
| 14699 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14700 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 14701 | Py_ssize_t __pyx_t_3; |
| 14702 | PyObject *(*__pyx_t_4)(PyObject *); |
| 14703 | int __pyx_lineno = 0; |
| 14704 | const char *__pyx_filename = NULL((void*)0); |
| 14705 | int __pyx_clineno = 0; |
| 14706 | __Pyx_RefNannySetupContext("clear", 0); |
| 14707 | /* Check if called by wrapper */ |
| 14708 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 14709 | /* Check if overridden in Python */ |
| 14710 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 14711 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__14711; goto __pyx_L1_error;} |
| 14712 | __Pyx_GOTREF(__pyx_t_1); |
| 14713 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_21clear)) { |
| 14714 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14715 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__14715; goto __pyx_L1_error;} |
| 14716 | __Pyx_GOTREF(__pyx_t_2); |
| 14717 | __pyx_r = __pyx_t_2; |
| 14718 | __pyx_t_2 = 0; |
| 14719 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14720 | goto __pyx_L0; |
| 14721 | } |
| 14722 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14723 | } |
| 14724 | |
| 14725 | /* "xmmsvalue.pyx":741 |
| 14726 | * cpdef clear(self): |
| 14727 | * cdef Collection op |
| 14728 | * for op in self.pylist: # <<<<<<<<<<<<<< |
| 14729 | * xmmsv_coll_remove_operand(self.coll, op.coll) |
| 14730 | * self.pylist = [] |
| 14731 | */ |
| 14732 | if (PyList_CheckExact(__pyx_v_self->pylist)((((PyObject*)(__pyx_v_self->pylist))->ob_type) == & PyList_Type) || PyTuple_CheckExact(__pyx_v_self->pylist)((((PyObject*)(__pyx_v_self->pylist))->ob_type) == & PyTuple_Type)) { |
| 14733 | __pyx_t_1 = __pyx_v_self->pylist; __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); __pyx_t_3 = 0; |
| 14734 | __pyx_t_4 = NULL((void*)0); |
| 14735 | } else { |
| 14736 | __pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_self->pylist); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__14736; goto __pyx_L1_error;} |
| 14737 | __Pyx_GOTREF(__pyx_t_1); |
| 14738 | __pyx_t_4 = Py_TYPE(__pyx_t_1)(((PyObject*)(__pyx_t_1))->ob_type)->tp_iternext; |
| 14739 | } |
| 14740 | for (;;) { |
| 14741 | if (!__pyx_t_4 && PyList_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyList_Type)) { |
| 14742 | if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 14743 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 14744 | __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3)(((PyListObject *)(__pyx_t_1))->ob_item[__pyx_t_3]); __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); __pyx_t_3++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__14744; goto __pyx_L1_error;} |
| 14745 | #else |
| 14746 | __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_3) ); __pyx_t_3++; if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__14746; goto __pyx_L1_error;} |
| 14747 | #endif |
| 14748 | } else if (!__pyx_t_4 && PyTuple_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyTuple_Type)) { |
| 14749 | if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 14750 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 14751 | __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3)(((PyTupleObject *)(__pyx_t_1))->ob_item[__pyx_t_3]); __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); __pyx_t_3++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__14751; goto __pyx_L1_error;} |
| 14752 | #else |
| 14753 | __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_3)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_3) ); __pyx_t_3++; if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__14753; goto __pyx_L1_error;} |
| 14754 | #endif |
| 14755 | } else { |
| 14756 | __pyx_t_2 = __pyx_t_4(__pyx_t_1); |
| 14757 | if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) { |
| 14758 | PyObject* exc_type = PyErr_Occurred(); |
| 14759 | if (exc_type) { |
| 14760 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 14761 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__14761; goto __pyx_L1_error;} |
| 14762 | } |
| 14763 | break; |
| 14764 | } |
| 14765 | __Pyx_GOTREF(__pyx_t_2); |
| 14766 | } |
| 14767 | if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_9xmmsvalue_Collection)))__builtin_expect(!!(((__pyx_t_2) == (&_Py_NoneStruct)) || __builtin_expect(!!(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_9xmmsvalue_Collection )), 1)), 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 741; __pyx_clineno = __LINE__14767; goto __pyx_L1_error;} |
| 14768 | __Pyx_XDECREF_SET(__pyx_v_op, ((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_t_2))do { PyObject *tmp = (PyObject *) __pyx_v_op; __pyx_v_op = (( struct __pyx_obj_9xmmsvalue_Collection *)__pyx_t_2); do { if ( (tmp) == ((void*)0)) ; else do { if ( --((PyObject*)(tmp))-> ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))-> ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); } while (0); |
| 14769 | __pyx_t_2 = 0; |
| 14770 | |
| 14771 | /* "xmmsvalue.pyx":742 |
| 14772 | * cdef Collection op |
| 14773 | * for op in self.pylist: |
| 14774 | * xmmsv_coll_remove_operand(self.coll, op.coll) # <<<<<<<<<<<<<< |
| 14775 | * self.pylist = [] |
| 14776 | * |
| 14777 | */ |
| 14778 | xmmsv_coll_remove_operand(__pyx_v_self->__pyx_base.coll, __pyx_v_op->__pyx_base.coll); |
| 14779 | } |
| 14780 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14781 | |
| 14782 | /* "xmmsvalue.pyx":743 |
| 14783 | * for op in self.pylist: |
| 14784 | * xmmsv_coll_remove_operand(self.coll, op.coll) |
| 14785 | * self.pylist = [] # <<<<<<<<<<<<<< |
| 14786 | * |
| 14787 | * cpdef list(self): |
| 14788 | */ |
| 14789 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 743; __pyx_clineno = __LINE__14789; goto __pyx_L1_error;} |
| 14790 | __Pyx_GOTREF(__pyx_t_1); |
| 14791 | __Pyx_GIVEREF(__pyx_t_1); |
| 14792 | __Pyx_GOTREF(__pyx_v_self->pylist); |
| 14793 | __Pyx_DECREF(__pyx_v_self->pylist)do { if ( --((PyObject*)(__pyx_v_self->pylist))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_self-> pylist)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_self->pylist)))); } while (0); |
| 14794 | __pyx_v_self->pylist = __pyx_t_1; |
| 14795 | __pyx_t_1 = 0; |
| 14796 | |
| 14797 | /* "xmmsvalue.pyx":739 |
| 14798 | * self.pylist.remove(op) |
| 14799 | * |
| 14800 | * cpdef clear(self): # <<<<<<<<<<<<<< |
| 14801 | * cdef Collection op |
| 14802 | * for op in self.pylist: |
| 14803 | */ |
| 14804 | |
| 14805 | /* function exit code */ |
| 14806 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 14807 | goto __pyx_L0; |
| 14808 | __pyx_L1_error:; |
| 14809 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14810 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 14811 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.clear", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14812 | __pyx_r = 0; |
| 14813 | __pyx_L0:; |
| 14814 | __Pyx_XDECREF((PyObject *)__pyx_v_op)do { if (((PyObject *)__pyx_v_op) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_op))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_op )))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_op)))); } while (0); } while (0); |
| 14815 | __Pyx_XGIVEREF(__pyx_r); |
| 14816 | __Pyx_RefNannyFinishContext(); |
| 14817 | return __pyx_r; |
| 14818 | } |
| 14819 | |
| 14820 | /* Python wrapper */ |
| 14821 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_21clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 14822 | static char __pyx_doc_9xmmsvalue_18CollectionOperands_20clear[] = "CollectionOperands.clear(self)"; |
| 14823 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_21clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 14824 | PyObject *__pyx_r = 0; |
| 14825 | __Pyx_RefNannyDeclarations |
| 14826 | __Pyx_RefNannySetupContext("clear (wrapper)", 0); |
| 14827 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_20clear(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self)); |
| 14828 | |
| 14829 | /* function exit code */ |
| 14830 | __Pyx_RefNannyFinishContext(); |
| 14831 | return __pyx_r; |
| 14832 | } |
| 14833 | |
| 14834 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_20clear(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self) { |
| 14835 | PyObject *__pyx_r = NULL((void*)0); |
| 14836 | __Pyx_RefNannyDeclarations |
| 14837 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14838 | int __pyx_lineno = 0; |
| 14839 | const char *__pyx_filename = NULL((void*)0); |
| 14840 | int __pyx_clineno = 0; |
| 14841 | __Pyx_RefNannySetupContext("clear", 0); |
| 14842 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14843 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *)__pyx_v_self->__pyx_base.__pyx_vtab)->clear(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 739; __pyx_clineno = __LINE__14843; goto __pyx_L1_error;} |
| 14844 | __Pyx_GOTREF(__pyx_t_1); |
| 14845 | __pyx_r = __pyx_t_1; |
| 14846 | __pyx_t_1 = 0; |
| 14847 | goto __pyx_L0; |
| 14848 | |
| 14849 | /* function exit code */ |
| 14850 | __pyx_L1_error:; |
| 14851 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14852 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.clear", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14853 | __pyx_r = NULL((void*)0); |
| 14854 | __pyx_L0:; |
| 14855 | __Pyx_XGIVEREF(__pyx_r); |
| 14856 | __Pyx_RefNannyFinishContext(); |
| 14857 | return __pyx_r; |
| 14858 | } |
| 14859 | |
| 14860 | /* "xmmsvalue.pyx":745 |
| 14861 | * self.pylist = [] |
| 14862 | * |
| 14863 | * cpdef list(self): # <<<<<<<<<<<<<< |
| 14864 | * return self.pylist[:] |
| 14865 | * |
| 14866 | */ |
| 14867 | |
| 14868 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_23list(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 14869 | static PyObject *__pyx_f_9xmmsvalue_18CollectionOperands_list(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self, int __pyx_skip_dispatch) { |
| 14870 | PyObject *__pyx_r = NULL((void*)0); |
| 14871 | __Pyx_RefNannyDeclarations |
| 14872 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14873 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 14874 | int __pyx_lineno = 0; |
| 14875 | const char *__pyx_filename = NULL((void*)0); |
| 14876 | int __pyx_clineno = 0; |
| 14877 | __Pyx_RefNannySetupContext("list", 0); |
| 14878 | /* Check if called by wrapper */ |
| 14879 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 14880 | /* Check if overridden in Python */ |
| 14881 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 14882 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_list); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__14882; goto __pyx_L1_error;} |
| 14883 | __Pyx_GOTREF(__pyx_t_1); |
| 14884 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_23list)) { |
| 14885 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14886 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__14886; goto __pyx_L1_error;} |
| 14887 | __Pyx_GOTREF(__pyx_t_2); |
| 14888 | __pyx_r = __pyx_t_2; |
| 14889 | __pyx_t_2 = 0; |
| 14890 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14891 | goto __pyx_L0; |
| 14892 | } |
| 14893 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 14894 | } |
| 14895 | |
| 14896 | /* "xmmsvalue.pyx":746 |
| 14897 | * |
| 14898 | * cpdef list(self): |
| 14899 | * return self.pylist[:] # <<<<<<<<<<<<<< |
| 14900 | * |
| 14901 | * |
| 14902 | */ |
| 14903 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14904 | __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_self->pylist, 0, 0, NULL((void*)0), NULL((void*)0), &__pyx_slice__23, 0, 0, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 746; __pyx_clineno = __LINE__14904; goto __pyx_L1_error;} |
| 14905 | __Pyx_GOTREF(__pyx_t_1); |
| 14906 | __pyx_r = __pyx_t_1; |
| 14907 | __pyx_t_1 = 0; |
| 14908 | goto __pyx_L0; |
| 14909 | |
| 14910 | /* "xmmsvalue.pyx":745 |
| 14911 | * self.pylist = [] |
| 14912 | * |
| 14913 | * cpdef list(self): # <<<<<<<<<<<<<< |
| 14914 | * return self.pylist[:] |
| 14915 | * |
| 14916 | */ |
| 14917 | |
| 14918 | /* function exit code */ |
| 14919 | __pyx_L1_error:; |
| 14920 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14921 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 14922 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.list", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14923 | __pyx_r = 0; |
| 14924 | __pyx_L0:; |
| 14925 | __Pyx_XGIVEREF(__pyx_r); |
| 14926 | __Pyx_RefNannyFinishContext(); |
| 14927 | return __pyx_r; |
| 14928 | } |
| 14929 | |
| 14930 | /* Python wrapper */ |
| 14931 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_23list(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 14932 | static char __pyx_doc_9xmmsvalue_18CollectionOperands_22list[] = "CollectionOperands.list(self)"; |
| 14933 | static PyObject *__pyx_pw_9xmmsvalue_18CollectionOperands_23list(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 14934 | PyObject *__pyx_r = 0; |
| 14935 | __Pyx_RefNannyDeclarations |
| 14936 | __Pyx_RefNannySetupContext("list (wrapper)", 0); |
| 14937 | __pyx_r = __pyx_pf_9xmmsvalue_18CollectionOperands_22list(((struct __pyx_obj_9xmmsvalue_CollectionOperands *)__pyx_v_self)); |
| 14938 | |
| 14939 | /* function exit code */ |
| 14940 | __Pyx_RefNannyFinishContext(); |
| 14941 | return __pyx_r; |
| 14942 | } |
| 14943 | |
| 14944 | static PyObject *__pyx_pf_9xmmsvalue_18CollectionOperands_22list(struct __pyx_obj_9xmmsvalue_CollectionOperands *__pyx_v_self) { |
| 14945 | PyObject *__pyx_r = NULL((void*)0); |
| 14946 | __Pyx_RefNannyDeclarations |
| 14947 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 14948 | int __pyx_lineno = 0; |
| 14949 | const char *__pyx_filename = NULL((void*)0); |
| 14950 | int __pyx_clineno = 0; |
| 14951 | __Pyx_RefNannySetupContext("list", 0); |
| 14952 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 14953 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands *)__pyx_v_self->__pyx_base.__pyx_vtab)->list(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 745; __pyx_clineno = __LINE__14953; goto __pyx_L1_error;} |
| 14954 | __Pyx_GOTREF(__pyx_t_1); |
| 14955 | __pyx_r = __pyx_t_1; |
| 14956 | __pyx_t_1 = 0; |
| 14957 | goto __pyx_L0; |
| 14958 | |
| 14959 | /* function exit code */ |
| 14960 | __pyx_L1_error:; |
| 14961 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 14962 | __Pyx_AddTraceback("xmmsvalue.CollectionOperands.list", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 14963 | __pyx_r = NULL((void*)0); |
| 14964 | __pyx_L0:; |
| 14965 | __Pyx_XGIVEREF(__pyx_r); |
| 14966 | __Pyx_RefNannyFinishContext(); |
| 14967 | return __pyx_r; |
| 14968 | } |
| 14969 | |
| 14970 | /* "xmmsvalue.pyx":751 |
| 14971 | * |
| 14972 | * cdef class CollectionIDList(CollectionRef): |
| 14973 | * def __init__(self, Collection c): # <<<<<<<<<<<<<< |
| 14974 | * if c.coll == NULL: |
| 14975 | * raise RuntimeError("Uninitialized collection") |
| 14976 | */ |
| 14977 | |
| 14978 | /* Python wrapper */ |
| 14979 | static int __pyx_pw_9xmmsvalue_16CollectionIDList_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 14980 | static int __pyx_pw_9xmmsvalue_16CollectionIDList_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 14981 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c = 0; |
| 14982 | int __pyx_lineno = 0; |
| 14983 | const char *__pyx_filename = NULL((void*)0); |
| 14984 | int __pyx_clineno = 0; |
| 14985 | int __pyx_r; |
| 14986 | __Pyx_RefNannyDeclarations |
| 14987 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 14988 | { |
| 14989 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_c,0}; |
| 14990 | PyObject* values[1] = {0}; |
| 14991 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 14992 | Py_ssize_t kw_args; |
| 14993 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 14994 | switch (pos_args) { |
| 14995 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 14996 | case 0: break; |
| 14997 | default: goto __pyx_L5_argtuple_error; |
| 14998 | } |
| 14999 | kw_args = PyDict_Size(__pyx_kwds); |
| 15000 | switch (pos_args) { |
| 15001 | case 0: |
| 15002 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_c)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_c )) != 0), 1)) kw_args--; |
| 15003 | else goto __pyx_L5_argtuple_error; |
| 15004 | } |
| 15005 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 15006 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__15006; goto __pyx_L3_error;} |
| 15007 | } |
| 15008 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) != 1) { |
| 15009 | goto __pyx_L5_argtuple_error; |
| 15010 | } else { |
| 15011 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 15012 | } |
| 15013 | __pyx_v_c = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 15014 | } |
| 15015 | goto __pyx_L4_argument_unpacking_done; |
| 15016 | __pyx_L5_argtuple_error:; |
| 15017 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__15017; goto __pyx_L3_error;} |
| 15018 | __pyx_L3_error:; |
| 15019 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15020 | __Pyx_RefNannyFinishContext(); |
| 15021 | return -1; |
| 15022 | __pyx_L4_argument_unpacking_done:; |
| 15023 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), __pyx_ptype_9xmmsvalue_Collection, 1, "c", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c ), __pyx_ptype_9xmmsvalue_Collection, 1, "c", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 751; __pyx_clineno = __LINE__15023; goto __pyx_L1_error;} |
| 15024 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList___init__(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), __pyx_v_c); |
| 15025 | |
| 15026 | /* function exit code */ |
| 15027 | goto __pyx_L0; |
| 15028 | __pyx_L1_error:; |
| 15029 | __pyx_r = -1; |
| 15030 | __pyx_L0:; |
| 15031 | __Pyx_RefNannyFinishContext(); |
| 15032 | return __pyx_r; |
| 15033 | } |
| 15034 | |
| 15035 | static int __pyx_pf_9xmmsvalue_16CollectionIDList___init__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c) { |
| 15036 | int __pyx_r; |
| 15037 | __Pyx_RefNannyDeclarations |
| 15038 | int __pyx_t_1; |
| 15039 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 15040 | int __pyx_lineno = 0; |
| 15041 | const char *__pyx_filename = NULL((void*)0); |
| 15042 | int __pyx_clineno = 0; |
| 15043 | __Pyx_RefNannySetupContext("__init__", 0); |
| 15044 | |
| 15045 | /* "xmmsvalue.pyx":752 |
| 15046 | * cdef class CollectionIDList(CollectionRef): |
| 15047 | * def __init__(self, Collection c): |
| 15048 | * if c.coll == NULL: # <<<<<<<<<<<<<< |
| 15049 | * raise RuntimeError("Uninitialized collection") |
| 15050 | * self.set_collection(c.coll) |
| 15051 | */ |
| 15052 | __pyx_t_1 = ((__pyx_v_c->__pyx_base.coll == NULL((void*)0)) != 0); |
| 15053 | if (__pyx_t_1) { |
| 15054 | |
| 15055 | /* "xmmsvalue.pyx":753 |
| 15056 | * def __init__(self, Collection c): |
| 15057 | * if c.coll == NULL: |
| 15058 | * raise RuntimeError("Uninitialized collection") # <<<<<<<<<<<<<< |
| 15059 | * self.set_collection(c.coll) |
| 15060 | * |
| 15061 | */ |
| 15062 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__24, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__15062; goto __pyx_L1_error;} |
| 15063 | __Pyx_GOTREF(__pyx_t_2); |
| 15064 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 15065 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 15066 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__15066; goto __pyx_L1_error;} |
| 15067 | } |
| 15068 | |
| 15069 | /* "xmmsvalue.pyx":754 |
| 15070 | * if c.coll == NULL: |
| 15071 | * raise RuntimeError("Uninitialized collection") |
| 15072 | * self.set_collection(c.coll) # <<<<<<<<<<<<<< |
| 15073 | * |
| 15074 | * def __len__(self): |
| 15075 | */ |
| 15076 | __pyx_t_2 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.set_collection(((struct __pyx_obj_9xmmsvalue_CollectionRef *)__pyx_v_self), __pyx_v_c->__pyx_base.coll); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__15076; goto __pyx_L1_error;} |
| 15077 | __Pyx_GOTREF(__pyx_t_2); |
| 15078 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 15079 | |
| 15080 | /* "xmmsvalue.pyx":751 |
| 15081 | * |
| 15082 | * cdef class CollectionIDList(CollectionRef): |
| 15083 | * def __init__(self, Collection c): # <<<<<<<<<<<<<< |
| 15084 | * if c.coll == NULL: |
| 15085 | * raise RuntimeError("Uninitialized collection") |
| 15086 | */ |
| 15087 | |
| 15088 | /* function exit code */ |
| 15089 | __pyx_r = 0; |
| 15090 | goto __pyx_L0; |
| 15091 | __pyx_L1_error:; |
| 15092 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 15093 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15094 | __pyx_r = -1; |
| 15095 | __pyx_L0:; |
| 15096 | __Pyx_RefNannyFinishContext(); |
| 15097 | return __pyx_r; |
| 15098 | } |
| 15099 | |
| 15100 | /* "xmmsvalue.pyx":756 |
| 15101 | * self.set_collection(c.coll) |
| 15102 | * |
| 15103 | * def __len__(self): # <<<<<<<<<<<<<< |
| 15104 | * return xmmsv_coll_idlist_get_size(self.coll) |
| 15105 | * |
| 15106 | */ |
| 15107 | |
| 15108 | /* Python wrapper */ |
| 15109 | static Py_ssize_t __pyx_pw_9xmmsvalue_16CollectionIDList_3__len__(PyObject *__pyx_v_self); /*proto*/ |
| 15110 | static Py_ssize_t __pyx_pw_9xmmsvalue_16CollectionIDList_3__len__(PyObject *__pyx_v_self) { |
| 15111 | Py_ssize_t __pyx_r; |
| 15112 | __Pyx_RefNannyDeclarations |
| 15113 | __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); |
| 15114 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_2__len__(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self)); |
| 15115 | |
| 15116 | /* function exit code */ |
| 15117 | __Pyx_RefNannyFinishContext(); |
| 15118 | return __pyx_r; |
| 15119 | } |
| 15120 | |
| 15121 | static Py_ssize_t __pyx_pf_9xmmsvalue_16CollectionIDList_2__len__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self) { |
| 15122 | Py_ssize_t __pyx_r; |
| 15123 | __Pyx_RefNannyDeclarations |
| 15124 | __Pyx_RefNannySetupContext("__len__", 0); |
| 15125 | |
| 15126 | /* "xmmsvalue.pyx":757 |
| 15127 | * |
| 15128 | * def __len__(self): |
| 15129 | * return xmmsv_coll_idlist_get_size(self.coll) # <<<<<<<<<<<<<< |
| 15130 | * |
| 15131 | * def __iter__(self): |
| 15132 | */ |
| 15133 | __pyx_r = xmmsv_coll_idlist_get_size(__pyx_v_self->__pyx_base.coll); |
| 15134 | goto __pyx_L0; |
| 15135 | |
| 15136 | /* "xmmsvalue.pyx":756 |
| 15137 | * self.set_collection(c.coll) |
| 15138 | * |
| 15139 | * def __len__(self): # <<<<<<<<<<<<<< |
| 15140 | * return xmmsv_coll_idlist_get_size(self.coll) |
| 15141 | * |
| 15142 | */ |
| 15143 | |
| 15144 | /* function exit code */ |
| 15145 | __pyx_L0:; |
| 15146 | __Pyx_RefNannyFinishContext(); |
| 15147 | return __pyx_r; |
| 15148 | } |
| 15149 | static PyObject *__pyx_gb_9xmmsvalue_16CollectionIDList_6generator(__pyx_GeneratorObject *__pyx_generator, PyObject *__pyx_sent_value); /* proto */ |
| 15150 | |
| 15151 | /* "xmmsvalue.pyx":759 |
| 15152 | * return xmmsv_coll_idlist_get_size(self.coll) |
| 15153 | * |
| 15154 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 15155 | * """Iterate over ids""" |
| 15156 | * cdef int x = -1 |
| 15157 | */ |
| 15158 | |
| 15159 | /* Python wrapper */ |
| 15160 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_5__iter__(PyObject *__pyx_v_self); /*proto*/ |
| 15161 | static char __pyx_doc_9xmmsvalue_16CollectionIDList_4__iter__[] = "Iterate over ids"; |
| 15162 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 15163 | struct wrapperbase __pyx_wrapperbase_9xmmsvalue_16CollectionIDList_4__iter__; |
| 15164 | #endif |
| 15165 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_5__iter__(PyObject *__pyx_v_self) { |
| 15166 | PyObject *__pyx_r = 0; |
| 15167 | __Pyx_RefNannyDeclarations |
| 15168 | __Pyx_RefNannySetupContext("__iter__ (wrapper)", 0); |
| 15169 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_4__iter__(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self)); |
| 15170 | |
| 15171 | /* function exit code */ |
| 15172 | __Pyx_RefNannyFinishContext(); |
| 15173 | return __pyx_r; |
| 15174 | } |
| 15175 | |
| 15176 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_4__iter__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self) { |
| 15177 | struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *__pyx_cur_scope; |
| 15178 | PyObject *__pyx_r = NULL((void*)0); |
| 15179 | __Pyx_RefNannyDeclarations |
| 15180 | int __pyx_lineno = 0; |
| 15181 | const char *__pyx_filename = NULL((void*)0); |
| 15182 | int __pyx_clineno = 0; |
| 15183 | __Pyx_RefNannySetupContext("__iter__", 0); |
| 15184 | __pyx_cur_scope = (struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *)__pyx_tp_new_9xmmsvalue___pyx_scope_struct____iter__(__pyx_ptype_9xmmsvalue___pyx_scope_struct____iter__, __pyx_empty_tuple, NULL((void*)0)); |
| 15185 | if (unlikely(!__pyx_cur_scope)__builtin_expect(!!(!__pyx_cur_scope), 0)) { |
| 15186 | __Pyx_RefNannyFinishContext(); |
| 15187 | return NULL((void*)0); |
| 15188 | } |
| 15189 | __Pyx_GOTREF(__pyx_cur_scope); |
| 15190 | __pyx_cur_scope->__pyx_v_self = __pyx_v_self; |
| 15191 | __Pyx_INCREF((PyObject *)__pyx_cur_scope->__pyx_v_self)( ((PyObject*)((PyObject *)__pyx_cur_scope->__pyx_v_self)) ->ob_refcnt++); |
| 15192 | __Pyx_GIVEREF((PyObject *)__pyx_cur_scope->__pyx_v_self); |
| 15193 | { |
| 15194 | __pyx_GeneratorObject *gen = __Pyx_Generator_New((__pyx_generator_body_t) __pyx_gb_9xmmsvalue_16CollectionIDList_6generator, (PyObject *) __pyx_cur_scope); if (unlikely(!gen)__builtin_expect(!!(!gen), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__15194; goto __pyx_L1_error;} |
| 15195 | __Pyx_DECREF(__pyx_cur_scope)do { if ( --((PyObject*)(__pyx_cur_scope))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)(__pyx_cur_scope)))-> ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_cur_scope )))); } while (0); |
| 15196 | __Pyx_RefNannyFinishContext(); |
| 15197 | return (PyObject *) gen; |
| 15198 | } |
| 15199 | |
| 15200 | /* function exit code */ |
| 15201 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 15202 | goto __pyx_L0; |
| 15203 | __pyx_L1_error:; |
| 15204 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15205 | __pyx_r = NULL((void*)0); |
| 15206 | __pyx_L0:; |
| 15207 | __Pyx_DECREF(((PyObject *)__pyx_cur_scope))do { if ( --((PyObject*)(((PyObject *)__pyx_cur_scope)))-> ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(((PyObject *)__pyx_cur_scope))))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(((PyObject *)__pyx_cur_scope))))); } while ( 0); |
| 15208 | __Pyx_XGIVEREF(__pyx_r); |
| 15209 | __Pyx_RefNannyFinishContext(); |
| 15210 | return __pyx_r; |
| 15211 | } |
| 15212 | |
| 15213 | static PyObject *__pyx_gb_9xmmsvalue_16CollectionIDList_6generator(__pyx_GeneratorObject *__pyx_generator, PyObject *__pyx_sent_value) /* generator body */ |
| 15214 | { |
| 15215 | struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *__pyx_cur_scope = ((struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *)__pyx_generator->closure); |
| 15216 | PyObject *__pyx_r = NULL((void*)0); |
| 15217 | int __pyx_t_1; |
| 15218 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 15219 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 15220 | int __pyx_lineno = 0; |
| 15221 | const char *__pyx_filename = NULL((void*)0); |
| 15222 | int __pyx_clineno = 0; |
| 15223 | __Pyx_RefNannyDeclarations |
| 15224 | __Pyx_RefNannySetupContext("None", 0); |
| 15225 | switch (__pyx_generator->resume_label) { |
| 15226 | case 0: goto __pyx_L3_first_run; |
| 15227 | case 1: goto __pyx_L7_resume_from_yield; |
| 15228 | default: /* CPython raises the right error here */ |
| 15229 | __Pyx_RefNannyFinishContext(); |
| 15230 | return NULL((void*)0); |
| 15231 | } |
| 15232 | __pyx_L3_first_run:; |
| 15233 | if (unlikely(!__pyx_sent_value)__builtin_expect(!!(!__pyx_sent_value), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__15233; goto __pyx_L1_error;} |
| 15234 | |
| 15235 | /* "xmmsvalue.pyx":761 |
| 15236 | * def __iter__(self): |
| 15237 | * """Iterate over ids""" |
| 15238 | * cdef int x = -1 # <<<<<<<<<<<<<< |
| 15239 | * cdef int l |
| 15240 | * cdef int i = 0 |
| 15241 | */ |
| 15242 | __pyx_cur_scope->__pyx_v_x = -1; |
| 15243 | |
| 15244 | /* "xmmsvalue.pyx":763 |
| 15245 | * cdef int x = -1 |
| 15246 | * cdef int l |
| 15247 | * cdef int i = 0 # <<<<<<<<<<<<<< |
| 15248 | * l = xmmsv_coll_idlist_get_size(self.coll) |
| 15249 | * while i < l: |
| 15250 | */ |
| 15251 | __pyx_cur_scope->__pyx_v_i = 0; |
| 15252 | |
| 15253 | /* "xmmsvalue.pyx":764 |
| 15254 | * cdef int l |
| 15255 | * cdef int i = 0 |
| 15256 | * l = xmmsv_coll_idlist_get_size(self.coll) # <<<<<<<<<<<<<< |
| 15257 | * while i < l: |
| 15258 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 15259 | */ |
| 15260 | __pyx_cur_scope->__pyx_v_l = xmmsv_coll_idlist_get_size(__pyx_cur_scope->__pyx_v_self->__pyx_base.coll); |
| 15261 | |
| 15262 | /* "xmmsvalue.pyx":765 |
| 15263 | * cdef int i = 0 |
| 15264 | * l = xmmsv_coll_idlist_get_size(self.coll) |
| 15265 | * while i < l: # <<<<<<<<<<<<<< |
| 15266 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 15267 | * raise RuntimeError("Failed to retrieve id at index %d" % i) |
| 15268 | */ |
| 15269 | while (1) { |
| 15270 | __pyx_t_1 = ((__pyx_cur_scope->__pyx_v_i < __pyx_cur_scope->__pyx_v_l) != 0); |
| 15271 | if (!__pyx_t_1) break; |
| 15272 | |
| 15273 | /* "xmmsvalue.pyx":766 |
| 15274 | * l = xmmsv_coll_idlist_get_size(self.coll) |
| 15275 | * while i < l: |
| 15276 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): # <<<<<<<<<<<<<< |
| 15277 | * raise RuntimeError("Failed to retrieve id at index %d" % i) |
| 15278 | * yield x |
| 15279 | */ |
| 15280 | __pyx_t_1 = ((!(xmmsv_coll_idlist_get_indexxmmsv_coll_idlist_get_index_int32(__pyx_cur_scope->__pyx_v_self->__pyx_base.coll, __pyx_cur_scope->__pyx_v_i, (&__pyx_cur_scope->__pyx_v_x)) != 0)) != 0); |
| 15281 | if (__pyx_t_1) { |
| 15282 | |
| 15283 | /* "xmmsvalue.pyx":767 |
| 15284 | * while i < l: |
| 15285 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 15286 | * raise RuntimeError("Failed to retrieve id at index %d" % i) # <<<<<<<<<<<<<< |
| 15287 | * yield x |
| 15288 | * i += 1 |
| 15289 | */ |
| 15290 | __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_cur_scope->__pyx_v_i); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__15290; goto __pyx_L1_error;} |
| 15291 | __Pyx_GOTREF(__pyx_t_2); |
| 15292 | __pyx_t_3 = __Pyx_PyString_Format(__pyx_kp_s_Failed_to_retrieve_id_at_index_d, __pyx_t_2)PyString_Format(__pyx_kp_s_Failed_to_retrieve_id_at_index_d, __pyx_t_2 ); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__15292; goto __pyx_L1_error;} |
| 15293 | __Pyx_GOTREF(__pyx_t_3); |
| 15294 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 15295 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__15295; goto __pyx_L1_error;} |
| 15296 | __Pyx_GOTREF(__pyx_t_2); |
| 15297 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_3); |
| 15298 | __Pyx_GIVEREF(__pyx_t_3); |
| 15299 | __pyx_t_3 = 0; |
| 15300 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__15300; goto __pyx_L1_error;} |
| 15301 | __Pyx_GOTREF(__pyx_t_3); |
| 15302 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 15303 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 15304 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 15305 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 767; __pyx_clineno = __LINE__15305; goto __pyx_L1_error;} |
| 15306 | } |
| 15307 | |
| 15308 | /* "xmmsvalue.pyx":768 |
| 15309 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 15310 | * raise RuntimeError("Failed to retrieve id at index %d" % i) |
| 15311 | * yield x # <<<<<<<<<<<<<< |
| 15312 | * i += 1 |
| 15313 | * |
| 15314 | */ |
| 15315 | __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_cur_scope->__pyx_v_x); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__15315; goto __pyx_L1_error;} |
| 15316 | __Pyx_GOTREF(__pyx_t_3); |
| 15317 | __pyx_r = __pyx_t_3; |
| 15318 | __pyx_t_3 = 0; |
| 15319 | __Pyx_XGIVEREF(__pyx_r); |
| 15320 | __Pyx_RefNannyFinishContext(); |
| 15321 | /* return from generator, yielding value */ |
| 15322 | __pyx_generator->resume_label = 1; |
| 15323 | return __pyx_r; |
| 15324 | __pyx_L7_resume_from_yield:; |
| 15325 | if (unlikely(!__pyx_sent_value)__builtin_expect(!!(!__pyx_sent_value), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 768; __pyx_clineno = __LINE__15325; goto __pyx_L1_error;} |
| 15326 | |
| 15327 | /* "xmmsvalue.pyx":769 |
| 15328 | * raise RuntimeError("Failed to retrieve id at index %d" % i) |
| 15329 | * yield x |
| 15330 | * i += 1 # <<<<<<<<<<<<<< |
| 15331 | * |
| 15332 | * def list(self): |
| 15333 | */ |
| 15334 | __pyx_cur_scope->__pyx_v_i = (__pyx_cur_scope->__pyx_v_i + 1); |
| 15335 | } |
| 15336 | |
| 15337 | /* "xmmsvalue.pyx":759 |
| 15338 | * return xmmsv_coll_idlist_get_size(self.coll) |
| 15339 | * |
| 15340 | * def __iter__(self): # <<<<<<<<<<<<<< |
| 15341 | * """Iterate over ids""" |
| 15342 | * cdef int x = -1 |
| 15343 | */ |
| 15344 | |
| 15345 | /* function exit code */ |
| 15346 | PyErr_SetNone(PyExc_StopIteration); |
| 15347 | goto __pyx_L0; |
| 15348 | __pyx_L1_error:; |
| 15349 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 15350 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 15351 | __Pyx_AddTraceback("__iter__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15352 | __pyx_L0:; |
| 15353 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15354 | __pyx_generator->resume_label = -1; |
| 15355 | __Pyx_Generator_clear((PyObject*)__pyx_generator); |
| 15356 | __Pyx_RefNannyFinishContext(); |
| 15357 | return NULL((void*)0); |
| 15358 | } |
| 15359 | |
| 15360 | /* "xmmsvalue.pyx":771 |
| 15361 | * i += 1 |
| 15362 | * |
| 15363 | * def list(self): # <<<<<<<<<<<<<< |
| 15364 | * """Returns a _COPY_ of the idlist as an ordinary list""" |
| 15365 | * return list(self) |
| 15366 | */ |
| 15367 | |
| 15368 | /* Python wrapper */ |
| 15369 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_8list(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 15370 | static char __pyx_doc_9xmmsvalue_16CollectionIDList_7list[] = "CollectionIDList.list(self)\nReturns a _COPY_ of the idlist as an ordinary list"; |
| 15371 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_8list(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 15372 | PyObject *__pyx_r = 0; |
| 15373 | __Pyx_RefNannyDeclarations |
| 15374 | __Pyx_RefNannySetupContext("list (wrapper)", 0); |
| 15375 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_7list(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self)); |
| 15376 | |
| 15377 | /* function exit code */ |
| 15378 | __Pyx_RefNannyFinishContext(); |
| 15379 | return __pyx_r; |
| 15380 | } |
| 15381 | |
| 15382 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_7list(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self) { |
| 15383 | PyObject *__pyx_r = NULL((void*)0); |
| 15384 | __Pyx_RefNannyDeclarations |
| 15385 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 15386 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 15387 | int __pyx_lineno = 0; |
| 15388 | const char *__pyx_filename = NULL((void*)0); |
| 15389 | int __pyx_clineno = 0; |
| 15390 | __Pyx_RefNannySetupContext("list", 0); |
| 15391 | |
| 15392 | /* "xmmsvalue.pyx":773 |
| 15393 | * def list(self): |
| 15394 | * """Returns a _COPY_ of the idlist as an ordinary list""" |
| 15395 | * return list(self) # <<<<<<<<<<<<<< |
| 15396 | * |
| 15397 | * def __repr__(self): |
| 15398 | */ |
| 15399 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15400 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__15400; goto __pyx_L1_error;} |
| 15401 | __Pyx_GOTREF(__pyx_t_1); |
| 15402 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 15403 | PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 15404 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 15405 | __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 773; __pyx_clineno = __LINE__15405; goto __pyx_L1_error;} |
| 15406 | __Pyx_GOTREF(__pyx_t_2); |
| 15407 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15408 | __pyx_r = __pyx_t_2; |
| 15409 | __pyx_t_2 = 0; |
| 15410 | goto __pyx_L0; |
| 15411 | |
| 15412 | /* "xmmsvalue.pyx":771 |
| 15413 | * i += 1 |
| 15414 | * |
| 15415 | * def list(self): # <<<<<<<<<<<<<< |
| 15416 | * """Returns a _COPY_ of the idlist as an ordinary list""" |
| 15417 | * return list(self) |
| 15418 | */ |
| 15419 | |
| 15420 | /* function exit code */ |
| 15421 | __pyx_L1_error:; |
| 15422 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 15423 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 15424 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.list", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15425 | __pyx_r = NULL((void*)0); |
| 15426 | __pyx_L0:; |
| 15427 | __Pyx_XGIVEREF(__pyx_r); |
| 15428 | __Pyx_RefNannyFinishContext(); |
| 15429 | return __pyx_r; |
| 15430 | } |
| 15431 | |
| 15432 | /* "xmmsvalue.pyx":775 |
| 15433 | * return list(self) |
| 15434 | * |
| 15435 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 15436 | * return repr(self.list()) |
| 15437 | * |
| 15438 | */ |
| 15439 | |
| 15440 | /* Python wrapper */ |
| 15441 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_10__repr__(PyObject *__pyx_v_self); /*proto*/ |
| 15442 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_10__repr__(PyObject *__pyx_v_self) { |
| 15443 | PyObject *__pyx_r = 0; |
| 15444 | __Pyx_RefNannyDeclarations |
| 15445 | __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); |
| 15446 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_9__repr__(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self)); |
| 15447 | |
| 15448 | /* function exit code */ |
| 15449 | __Pyx_RefNannyFinishContext(); |
| 15450 | return __pyx_r; |
| 15451 | } |
| 15452 | |
| 15453 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_9__repr__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self) { |
| 15454 | PyObject *__pyx_r = NULL((void*)0); |
| 15455 | __Pyx_RefNannyDeclarations |
| 15456 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 15457 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 15458 | int __pyx_lineno = 0; |
| 15459 | const char *__pyx_filename = NULL((void*)0); |
| 15460 | int __pyx_clineno = 0; |
| 15461 | __Pyx_RefNannySetupContext("__repr__", 0); |
| 15462 | |
| 15463 | /* "xmmsvalue.pyx":776 |
| 15464 | * |
| 15465 | * def __repr__(self): |
| 15466 | * return repr(self.list()) # <<<<<<<<<<<<<< |
| 15467 | * |
| 15468 | * cpdef append(self, int v): |
| 15469 | */ |
| 15470 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15471 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_list); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__15471; goto __pyx_L1_error;} |
| 15472 | __Pyx_GOTREF(__pyx_t_1); |
| 15473 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__15473; goto __pyx_L1_error;} |
| 15474 | __Pyx_GOTREF(__pyx_t_2); |
| 15475 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15476 | __pyx_t_1 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__15476; goto __pyx_L1_error;} |
| 15477 | __Pyx_GOTREF(__pyx_t_1); |
| 15478 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 15479 | __pyx_r = __pyx_t_1; |
| 15480 | __pyx_t_1 = 0; |
| 15481 | goto __pyx_L0; |
| 15482 | |
| 15483 | /* "xmmsvalue.pyx":775 |
| 15484 | * return list(self) |
| 15485 | * |
| 15486 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 15487 | * return repr(self.list()) |
| 15488 | * |
| 15489 | */ |
| 15490 | |
| 15491 | /* function exit code */ |
| 15492 | __pyx_L1_error:; |
| 15493 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 15494 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 15495 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15496 | __pyx_r = NULL((void*)0); |
| 15497 | __pyx_L0:; |
| 15498 | __Pyx_XGIVEREF(__pyx_r); |
| 15499 | __Pyx_RefNannyFinishContext(); |
| 15500 | return __pyx_r; |
| 15501 | } |
| 15502 | |
| 15503 | /* "xmmsvalue.pyx":778 |
| 15504 | * return repr(self.list()) |
| 15505 | * |
| 15506 | * cpdef append(self, int v): # <<<<<<<<<<<<<< |
| 15507 | * """Appends an id to the idlist""" |
| 15508 | * if not xmmsv_coll_idlist_append(self.coll, v): |
| 15509 | */ |
| 15510 | |
| 15511 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_12append(PyObject *__pyx_v_self, PyObject *__pyx_arg_v); /*proto*/ |
| 15512 | static PyObject *__pyx_f_9xmmsvalue_16CollectionIDList_append(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_v, int __pyx_skip_dispatch) { |
| 15513 | PyObject *__pyx_r = NULL((void*)0); |
| 15514 | __Pyx_RefNannyDeclarations |
| 15515 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 15516 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 15517 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 15518 | int __pyx_t_4; |
| 15519 | int __pyx_lineno = 0; |
| 15520 | const char *__pyx_filename = NULL((void*)0); |
| 15521 | int __pyx_clineno = 0; |
| 15522 | __Pyx_RefNannySetupContext("append", 0); |
| 15523 | /* Check if called by wrapper */ |
| 15524 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 15525 | /* Check if overridden in Python */ |
| 15526 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 15527 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_append); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__15527; goto __pyx_L1_error;} |
| 15528 | __Pyx_GOTREF(__pyx_t_1); |
| 15529 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_12append)) { |
| 15530 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15531 | __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__15531; goto __pyx_L1_error;} |
| 15532 | __Pyx_GOTREF(__pyx_t_2); |
| 15533 | __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__15533; goto __pyx_L1_error;} |
| 15534 | __Pyx_GOTREF(__pyx_t_3); |
| 15535 | PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = __pyx_t_2); |
| 15536 | __Pyx_GIVEREF(__pyx_t_2); |
| 15537 | __pyx_t_2 = 0; |
| 15538 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__15538; goto __pyx_L1_error;} |
| 15539 | __Pyx_GOTREF(__pyx_t_2); |
| 15540 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 15541 | __pyx_r = __pyx_t_2; |
| 15542 | __pyx_t_2 = 0; |
| 15543 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15544 | goto __pyx_L0; |
| 15545 | } |
| 15546 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15547 | } |
| 15548 | |
| 15549 | /* "xmmsvalue.pyx":780 |
| 15550 | * cpdef append(self, int v): |
| 15551 | * """Appends an id to the idlist""" |
| 15552 | * if not xmmsv_coll_idlist_append(self.coll, v): # <<<<<<<<<<<<<< |
| 15553 | * raise RuntimeError("Failed to append an id") |
| 15554 | * |
| 15555 | */ |
| 15556 | __pyx_t_4 = ((!(xmmsv_coll_idlist_append(__pyx_v_self->__pyx_base.coll, __pyx_v_v) != 0)) != 0); |
| 15557 | if (__pyx_t_4) { |
| 15558 | |
| 15559 | /* "xmmsvalue.pyx":781 |
| 15560 | * """Appends an id to the idlist""" |
| 15561 | * if not xmmsv_coll_idlist_append(self.coll, v): |
| 15562 | * raise RuntimeError("Failed to append an id") # <<<<<<<<<<<<<< |
| 15563 | * |
| 15564 | * cpdef extend(self, v): |
| 15565 | */ |
| 15566 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__25, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__15566; goto __pyx_L1_error;} |
| 15567 | __Pyx_GOTREF(__pyx_t_1); |
| 15568 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 15569 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15570 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__15570; goto __pyx_L1_error;} |
| 15571 | } |
| 15572 | |
| 15573 | /* "xmmsvalue.pyx":778 |
| 15574 | * return repr(self.list()) |
| 15575 | * |
| 15576 | * cpdef append(self, int v): # <<<<<<<<<<<<<< |
| 15577 | * """Appends an id to the idlist""" |
| 15578 | * if not xmmsv_coll_idlist_append(self.coll, v): |
| 15579 | */ |
| 15580 | |
| 15581 | /* function exit code */ |
| 15582 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 15583 | goto __pyx_L0; |
| 15584 | __pyx_L1_error:; |
| 15585 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 15586 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 15587 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 15588 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.append", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15589 | __pyx_r = 0; |
| 15590 | __pyx_L0:; |
| 15591 | __Pyx_XGIVEREF(__pyx_r); |
| 15592 | __Pyx_RefNannyFinishContext(); |
| 15593 | return __pyx_r; |
| 15594 | } |
| 15595 | |
| 15596 | /* Python wrapper */ |
| 15597 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_12append(PyObject *__pyx_v_self, PyObject *__pyx_arg_v); /*proto*/ |
| 15598 | static char __pyx_doc_9xmmsvalue_16CollectionIDList_11append[] = "CollectionIDList.append(self, int v)\nAppends an id to the idlist"; |
| 15599 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_12append(PyObject *__pyx_v_self, PyObject *__pyx_arg_v) { |
| 15600 | int __pyx_v_v; |
| 15601 | int __pyx_lineno = 0; |
| 15602 | const char *__pyx_filename = NULL((void*)0); |
| 15603 | int __pyx_clineno = 0; |
| 15604 | PyObject *__pyx_r = 0; |
| 15605 | __Pyx_RefNannyDeclarations |
| 15606 | __Pyx_RefNannySetupContext("append (wrapper)", 0); |
| 15607 | assert(__pyx_arg_v)((void) (0)); { |
| 15608 | __pyx_v_v = __Pyx_PyInt_As_int(__pyx_arg_v); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_v == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__15608; goto __pyx_L3_error;} |
| 15609 | } |
| 15610 | goto __pyx_L4_argument_unpacking_done; |
| 15611 | __pyx_L3_error:; |
| 15612 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.append", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15613 | __Pyx_RefNannyFinishContext(); |
| 15614 | return NULL((void*)0); |
| 15615 | __pyx_L4_argument_unpacking_done:; |
| 15616 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_11append(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), ((int)__pyx_v_v)); |
| 15617 | |
| 15618 | /* function exit code */ |
| 15619 | __Pyx_RefNannyFinishContext(); |
| 15620 | return __pyx_r; |
| 15621 | } |
| 15622 | |
| 15623 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_11append(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_v) { |
| 15624 | PyObject *__pyx_r = NULL((void*)0); |
| 15625 | __Pyx_RefNannyDeclarations |
| 15626 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 15627 | int __pyx_lineno = 0; |
| 15628 | const char *__pyx_filename = NULL((void*)0); |
| 15629 | int __pyx_clineno = 0; |
| 15630 | __Pyx_RefNannySetupContext("append", 0); |
| 15631 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15632 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->append(__pyx_v_self, __pyx_v_v, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 778; __pyx_clineno = __LINE__15632; goto __pyx_L1_error;} |
| 15633 | __Pyx_GOTREF(__pyx_t_1); |
| 15634 | __pyx_r = __pyx_t_1; |
| 15635 | __pyx_t_1 = 0; |
| 15636 | goto __pyx_L0; |
| 15637 | |
| 15638 | /* function exit code */ |
| 15639 | __pyx_L1_error:; |
| 15640 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 15641 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.append", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15642 | __pyx_r = NULL((void*)0); |
| 15643 | __pyx_L0:; |
| 15644 | __Pyx_XGIVEREF(__pyx_r); |
| 15645 | __Pyx_RefNannyFinishContext(); |
| 15646 | return __pyx_r; |
| 15647 | } |
| 15648 | |
| 15649 | /* "xmmsvalue.pyx":783 |
| 15650 | * raise RuntimeError("Failed to append an id") |
| 15651 | * |
| 15652 | * cpdef extend(self, v): # <<<<<<<<<<<<<< |
| 15653 | * cdef int a |
| 15654 | * for a in v: |
| 15655 | */ |
| 15656 | |
| 15657 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_14extend(PyObject *__pyx_v_self, PyObject *__pyx_v_v); /*proto*/ |
| 15658 | static PyObject *__pyx_f_9xmmsvalue_16CollectionIDList_extend(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, PyObject *__pyx_v_v, int __pyx_skip_dispatch) { |
| 15659 | int __pyx_v_a; |
| 15660 | PyObject *__pyx_r = NULL((void*)0); |
| 15661 | __Pyx_RefNannyDeclarations |
| 15662 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 15663 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 15664 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 15665 | Py_ssize_t __pyx_t_4; |
| 15666 | PyObject *(*__pyx_t_5)(PyObject *); |
| 15667 | int __pyx_t_6; |
| 15668 | int __pyx_lineno = 0; |
| 15669 | const char *__pyx_filename = NULL((void*)0); |
| 15670 | int __pyx_clineno = 0; |
| 15671 | __Pyx_RefNannySetupContext("extend", 0); |
| 15672 | /* Check if called by wrapper */ |
| 15673 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 15674 | /* Check if overridden in Python */ |
| 15675 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 15676 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_extend); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__15676; goto __pyx_L1_error;} |
| 15677 | __Pyx_GOTREF(__pyx_t_1); |
| 15678 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_14extend)) { |
| 15679 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15680 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__15680; goto __pyx_L1_error;} |
| 15681 | __Pyx_GOTREF(__pyx_t_2); |
| 15682 | __Pyx_INCREF(__pyx_v_v)( ((PyObject*)(__pyx_v_v))->ob_refcnt++); |
| 15683 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_v)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_v); |
| 15684 | __Pyx_GIVEREF(__pyx_v_v); |
| 15685 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__15685; goto __pyx_L1_error;} |
| 15686 | __Pyx_GOTREF(__pyx_t_3); |
| 15687 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 15688 | __pyx_r = __pyx_t_3; |
| 15689 | __pyx_t_3 = 0; |
| 15690 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15691 | goto __pyx_L0; |
| 15692 | } |
| 15693 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15694 | } |
| 15695 | |
| 15696 | /* "xmmsvalue.pyx":785 |
| 15697 | * cpdef extend(self, v): |
| 15698 | * cdef int a |
| 15699 | * for a in v: # <<<<<<<<<<<<<< |
| 15700 | * self.append(a) |
| 15701 | * |
| 15702 | */ |
| 15703 | if (PyList_CheckExact(__pyx_v_v)((((PyObject*)(__pyx_v_v))->ob_type) == &PyList_Type) || PyTuple_CheckExact(__pyx_v_v)((((PyObject*)(__pyx_v_v))->ob_type) == &PyTuple_Type)) { |
| 15704 | __pyx_t_1 = __pyx_v_v; __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); __pyx_t_4 = 0; |
| 15705 | __pyx_t_5 = NULL((void*)0); |
| 15706 | } else { |
| 15707 | __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_v); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__15707; goto __pyx_L1_error;} |
| 15708 | __Pyx_GOTREF(__pyx_t_1); |
| 15709 | __pyx_t_5 = Py_TYPE(__pyx_t_1)(((PyObject*)(__pyx_t_1))->ob_type)->tp_iternext; |
| 15710 | } |
| 15711 | for (;;) { |
| 15712 | if (!__pyx_t_5 && PyList_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyList_Type)) { |
| 15713 | if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 15714 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 15715 | __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4)(((PyListObject *)(__pyx_t_1))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__15715; goto __pyx_L1_error;} |
| 15716 | #else |
| 15717 | __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_4)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__15717; goto __pyx_L1_error;} |
| 15718 | #endif |
| 15719 | } else if (!__pyx_t_5 && PyTuple_CheckExact(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyTuple_Type)) { |
| 15720 | if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)(((PyVarObject*)(__pyx_t_1))->ob_size)) break; |
| 15721 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 15722 | __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4)(((PyTupleObject *)(__pyx_t_1))->ob_item[__pyx_t_4]); __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); __pyx_t_4++; if (unlikely(0 < 0)__builtin_expect(!!(0 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__15722; goto __pyx_L1_error;} |
| 15723 | #else |
| 15724 | __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_4)( (((PyObject*)(__pyx_t_1))->ob_type)->tp_as_sequence-> sq_item(__pyx_t_1, __pyx_t_4) ); __pyx_t_4++; if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__15724; goto __pyx_L1_error;} |
| 15725 | #endif |
| 15726 | } else { |
| 15727 | __pyx_t_3 = __pyx_t_5(__pyx_t_1); |
| 15728 | if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) { |
| 15729 | PyObject* exc_type = PyErr_Occurred(); |
| 15730 | if (exc_type) { |
| 15731 | if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))__builtin_expect(!!(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches (exc_type, PyExc_StopIteration)), 1)) PyErr_Clear(); |
| 15732 | else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__15732; goto __pyx_L1_error;} |
| 15733 | } |
| 15734 | break; |
| 15735 | } |
| 15736 | __Pyx_GOTREF(__pyx_t_3); |
| 15737 | } |
| 15738 | __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_t_6 == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 785; __pyx_clineno = __LINE__15738; goto __pyx_L1_error;} |
| 15739 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 15740 | __pyx_v_a = __pyx_t_6; |
| 15741 | |
| 15742 | /* "xmmsvalue.pyx":786 |
| 15743 | * cdef int a |
| 15744 | * for a in v: |
| 15745 | * self.append(a) # <<<<<<<<<<<<<< |
| 15746 | * |
| 15747 | * def __iadd__(self, v): |
| 15748 | */ |
| 15749 | __pyx_t_3 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->append(__pyx_v_self, __pyx_v_a, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 786; __pyx_clineno = __LINE__15749; goto __pyx_L1_error;} |
| 15750 | __Pyx_GOTREF(__pyx_t_3); |
| 15751 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 15752 | } |
| 15753 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15754 | |
| 15755 | /* "xmmsvalue.pyx":783 |
| 15756 | * raise RuntimeError("Failed to append an id") |
| 15757 | * |
| 15758 | * cpdef extend(self, v): # <<<<<<<<<<<<<< |
| 15759 | * cdef int a |
| 15760 | * for a in v: |
| 15761 | */ |
| 15762 | |
| 15763 | /* function exit code */ |
| 15764 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 15765 | goto __pyx_L0; |
| 15766 | __pyx_L1_error:; |
| 15767 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 15768 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 15769 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 15770 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15771 | __pyx_r = 0; |
| 15772 | __pyx_L0:; |
| 15773 | __Pyx_XGIVEREF(__pyx_r); |
| 15774 | __Pyx_RefNannyFinishContext(); |
| 15775 | return __pyx_r; |
| 15776 | } |
| 15777 | |
| 15778 | /* Python wrapper */ |
| 15779 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_14extend(PyObject *__pyx_v_self, PyObject *__pyx_v_v); /*proto*/ |
| 15780 | static char __pyx_doc_9xmmsvalue_16CollectionIDList_13extend[] = "CollectionIDList.extend(self, v)"; |
| 15781 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_14extend(PyObject *__pyx_v_self, PyObject *__pyx_v_v) { |
| 15782 | PyObject *__pyx_r = 0; |
| 15783 | __Pyx_RefNannyDeclarations |
| 15784 | __Pyx_RefNannySetupContext("extend (wrapper)", 0); |
| 15785 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_13extend(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), ((PyObject *)__pyx_v_v)); |
| 15786 | |
| 15787 | /* function exit code */ |
| 15788 | __Pyx_RefNannyFinishContext(); |
| 15789 | return __pyx_r; |
| 15790 | } |
| 15791 | |
| 15792 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_13extend(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, PyObject *__pyx_v_v) { |
| 15793 | PyObject *__pyx_r = NULL((void*)0); |
| 15794 | __Pyx_RefNannyDeclarations |
| 15795 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 15796 | int __pyx_lineno = 0; |
| 15797 | const char *__pyx_filename = NULL((void*)0); |
| 15798 | int __pyx_clineno = 0; |
| 15799 | __Pyx_RefNannySetupContext("extend", 0); |
| 15800 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15801 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->extend(__pyx_v_self, __pyx_v_v, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 783; __pyx_clineno = __LINE__15801; goto __pyx_L1_error;} |
| 15802 | __Pyx_GOTREF(__pyx_t_1); |
| 15803 | __pyx_r = __pyx_t_1; |
| 15804 | __pyx_t_1 = 0; |
| 15805 | goto __pyx_L0; |
| 15806 | |
| 15807 | /* function exit code */ |
| 15808 | __pyx_L1_error:; |
| 15809 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 15810 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.extend", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15811 | __pyx_r = NULL((void*)0); |
| 15812 | __pyx_L0:; |
| 15813 | __Pyx_XGIVEREF(__pyx_r); |
| 15814 | __Pyx_RefNannyFinishContext(); |
| 15815 | return __pyx_r; |
| 15816 | } |
| 15817 | |
| 15818 | /* "xmmsvalue.pyx":788 |
| 15819 | * self.append(a) |
| 15820 | * |
| 15821 | * def __iadd__(self, v): # <<<<<<<<<<<<<< |
| 15822 | * self.extend(v) |
| 15823 | * return self |
| 15824 | */ |
| 15825 | |
| 15826 | /* Python wrapper */ |
| 15827 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_16__iadd__(PyObject *__pyx_v_self, PyObject *__pyx_v_v); /*proto*/ |
| 15828 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_16__iadd__(PyObject *__pyx_v_self, PyObject *__pyx_v_v) { |
| 15829 | PyObject *__pyx_r = 0; |
| 15830 | __Pyx_RefNannyDeclarations |
| 15831 | __Pyx_RefNannySetupContext("__iadd__ (wrapper)", 0); |
| 15832 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_15__iadd__(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), ((PyObject *)__pyx_v_v)); |
| 15833 | |
| 15834 | /* function exit code */ |
| 15835 | __Pyx_RefNannyFinishContext(); |
| 15836 | return __pyx_r; |
| 15837 | } |
| 15838 | |
| 15839 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_15__iadd__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, PyObject *__pyx_v_v) { |
| 15840 | PyObject *__pyx_r = NULL((void*)0); |
| 15841 | __Pyx_RefNannyDeclarations |
| 15842 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 15843 | int __pyx_lineno = 0; |
| 15844 | const char *__pyx_filename = NULL((void*)0); |
| 15845 | int __pyx_clineno = 0; |
| 15846 | __Pyx_RefNannySetupContext("__iadd__", 0); |
| 15847 | |
| 15848 | /* "xmmsvalue.pyx":789 |
| 15849 | * |
| 15850 | * def __iadd__(self, v): |
| 15851 | * self.extend(v) # <<<<<<<<<<<<<< |
| 15852 | * return self |
| 15853 | * |
| 15854 | */ |
| 15855 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->extend(__pyx_v_self, __pyx_v_v, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 789; __pyx_clineno = __LINE__15855; goto __pyx_L1_error;} |
| 15856 | __Pyx_GOTREF(__pyx_t_1); |
| 15857 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15858 | |
| 15859 | /* "xmmsvalue.pyx":790 |
| 15860 | * def __iadd__(self, v): |
| 15861 | * self.extend(v) |
| 15862 | * return self # <<<<<<<<<<<<<< |
| 15863 | * |
| 15864 | * cpdef insert(self, int v, int i): |
| 15865 | */ |
| 15866 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15867 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 15868 | __pyx_r = ((PyObject *)__pyx_v_self); |
| 15869 | goto __pyx_L0; |
| 15870 | |
| 15871 | /* "xmmsvalue.pyx":788 |
| 15872 | * self.append(a) |
| 15873 | * |
| 15874 | * def __iadd__(self, v): # <<<<<<<<<<<<<< |
| 15875 | * self.extend(v) |
| 15876 | * return self |
| 15877 | */ |
| 15878 | |
| 15879 | /* function exit code */ |
| 15880 | __pyx_L1_error:; |
| 15881 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 15882 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__iadd__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 15883 | __pyx_r = NULL((void*)0); |
| 15884 | __pyx_L0:; |
| 15885 | __Pyx_XGIVEREF(__pyx_r); |
| 15886 | __Pyx_RefNannyFinishContext(); |
| 15887 | return __pyx_r; |
| 15888 | } |
| 15889 | |
| 15890 | /* "xmmsvalue.pyx":792 |
| 15891 | * return self |
| 15892 | * |
| 15893 | * cpdef insert(self, int v, int i): # <<<<<<<<<<<<<< |
| 15894 | * """Inserts an id at specified position""" |
| 15895 | * if i < 0: |
| 15896 | */ |
| 15897 | |
| 15898 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_18insert(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 15899 | static PyObject *__pyx_f_9xmmsvalue_16CollectionIDList_insert(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_v, int __pyx_v_i, int __pyx_skip_dispatch) { |
| 15900 | PyObject *__pyx_r = NULL((void*)0); |
| 15901 | __Pyx_RefNannyDeclarations |
| 15902 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 15903 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 15904 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 15905 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 15906 | int __pyx_t_5; |
| 15907 | Py_ssize_t __pyx_t_6; |
| 15908 | int __pyx_lineno = 0; |
| 15909 | const char *__pyx_filename = NULL((void*)0); |
| 15910 | int __pyx_clineno = 0; |
| 15911 | __Pyx_RefNannySetupContext("insert", 0); |
| 15912 | /* Check if called by wrapper */ |
| 15913 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 15914 | /* Check if overridden in Python */ |
| 15915 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 15916 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_insert); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__15916; goto __pyx_L1_error;} |
| 15917 | __Pyx_GOTREF(__pyx_t_1); |
| 15918 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_18insert)) { |
| 15919 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 15920 | __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_v); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__15920; goto __pyx_L1_error;} |
| 15921 | __Pyx_GOTREF(__pyx_t_2); |
| 15922 | __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_i); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__15922; goto __pyx_L1_error;} |
| 15923 | __Pyx_GOTREF(__pyx_t_3); |
| 15924 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__15924; goto __pyx_L1_error;} |
| 15925 | __Pyx_GOTREF(__pyx_t_4); |
| 15926 | PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = __pyx_t_2); |
| 15927 | __Pyx_GIVEREF(__pyx_t_2); |
| 15928 | PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3)(((PyTupleObject *)(__pyx_t_4))->ob_item[1] = __pyx_t_3); |
| 15929 | __Pyx_GIVEREF(__pyx_t_3); |
| 15930 | __pyx_t_2 = 0; |
| 15931 | __pyx_t_3 = 0; |
| 15932 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__15932; goto __pyx_L1_error;} |
| 15933 | __Pyx_GOTREF(__pyx_t_3); |
| 15934 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 15935 | __pyx_r = __pyx_t_3; |
| 15936 | __pyx_t_3 = 0; |
| 15937 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15938 | goto __pyx_L0; |
| 15939 | } |
| 15940 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15941 | } |
| 15942 | |
| 15943 | /* "xmmsvalue.pyx":794 |
| 15944 | * cpdef insert(self, int v, int i): |
| 15945 | * """Inserts an id at specified position""" |
| 15946 | * if i < 0: # <<<<<<<<<<<<<< |
| 15947 | * i = len(self) + i |
| 15948 | * if not xmmsv_coll_idlist_insert(self.coll, v, i): |
| 15949 | */ |
| 15950 | __pyx_t_5 = ((__pyx_v_i < 0) != 0); |
| 15951 | if (__pyx_t_5) { |
| 15952 | |
| 15953 | /* "xmmsvalue.pyx":795 |
| 15954 | * """Inserts an id at specified position""" |
| 15955 | * if i < 0: |
| 15956 | * i = len(self) + i # <<<<<<<<<<<<<< |
| 15957 | * if not xmmsv_coll_idlist_insert(self.coll, v, i): |
| 15958 | * raise IndexError("Index out of range") |
| 15959 | */ |
| 15960 | __pyx_t_6 = PyObject_LengthPyObject_Size(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_t_6 == -1)__builtin_expect(!!(__pyx_t_6 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__15960; goto __pyx_L1_error;} |
| 15961 | __pyx_v_i = (__pyx_t_6 + __pyx_v_i); |
| 15962 | goto __pyx_L3; |
| 15963 | } |
| 15964 | __pyx_L3:; |
| 15965 | |
| 15966 | /* "xmmsvalue.pyx":796 |
| 15967 | * if i < 0: |
| 15968 | * i = len(self) + i |
| 15969 | * if not xmmsv_coll_idlist_insert(self.coll, v, i): # <<<<<<<<<<<<<< |
| 15970 | * raise IndexError("Index out of range") |
| 15971 | * |
| 15972 | */ |
| 15973 | __pyx_t_5 = ((!(xmmsv_coll_idlist_insert(__pyx_v_self->__pyx_base.coll, __pyx_v_v, __pyx_v_i) != 0)) != 0); |
| 15974 | if (__pyx_t_5) { |
| 15975 | |
| 15976 | /* "xmmsvalue.pyx":797 |
| 15977 | * i = len(self) + i |
| 15978 | * if not xmmsv_coll_idlist_insert(self.coll, v, i): |
| 15979 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 15980 | * |
| 15981 | * cpdef remove(self, int i): |
| 15982 | */ |
| 15983 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__26, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__15983; goto __pyx_L1_error;} |
| 15984 | __Pyx_GOTREF(__pyx_t_1); |
| 15985 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 15986 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 15987 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__15987; goto __pyx_L1_error;} |
| 15988 | } |
| 15989 | |
| 15990 | /* "xmmsvalue.pyx":792 |
| 15991 | * return self |
| 15992 | * |
| 15993 | * cpdef insert(self, int v, int i): # <<<<<<<<<<<<<< |
| 15994 | * """Inserts an id at specified position""" |
| 15995 | * if i < 0: |
| 15996 | */ |
| 15997 | |
| 15998 | /* function exit code */ |
| 15999 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 16000 | goto __pyx_L0; |
| 16001 | __pyx_L1_error:; |
| 16002 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 16003 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 16004 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 16005 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 16006 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.insert", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16007 | __pyx_r = 0; |
| 16008 | __pyx_L0:; |
| 16009 | __Pyx_XGIVEREF(__pyx_r); |
| 16010 | __Pyx_RefNannyFinishContext(); |
| 16011 | return __pyx_r; |
| 16012 | } |
| 16013 | |
| 16014 | /* Python wrapper */ |
| 16015 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_18insert(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 16016 | static char __pyx_doc_9xmmsvalue_16CollectionIDList_17insert[] = "CollectionIDList.insert(self, int v, int i)\nInserts an id at specified position"; |
| 16017 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_18insert(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 16018 | int __pyx_v_v; |
| 16019 | int __pyx_v_i; |
| 16020 | int __pyx_lineno = 0; |
| 16021 | const char *__pyx_filename = NULL((void*)0); |
| 16022 | int __pyx_clineno = 0; |
| 16023 | PyObject *__pyx_r = 0; |
| 16024 | __Pyx_RefNannyDeclarations |
| 16025 | __Pyx_RefNannySetupContext("insert (wrapper)", 0); |
| 16026 | { |
| 16027 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_i,0}; |
| 16028 | PyObject* values[2] = {0,0}; |
| 16029 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 16030 | Py_ssize_t kw_args; |
| 16031 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 16032 | switch (pos_args) { |
| 16033 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 16034 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 16035 | case 0: break; |
| 16036 | default: goto __pyx_L5_argtuple_error; |
| 16037 | } |
| 16038 | kw_args = PyDict_Size(__pyx_kwds); |
| 16039 | switch (pos_args) { |
| 16040 | case 0: |
| 16041 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_v)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_v )) != 0), 1)) kw_args--; |
| 16042 | else goto __pyx_L5_argtuple_error; |
| 16043 | case 1: |
| 16044 | if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_i)) != 0)__builtin_expect(!!((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_i )) != 0), 1)) kw_args--; |
| 16045 | else { |
| 16046 | __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__16046; goto __pyx_L3_error;} |
| 16047 | } |
| 16048 | } |
| 16049 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 16050 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "insert") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "insert") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__16050; goto __pyx_L3_error;} |
| 16051 | } |
| 16052 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) != 2) { |
| 16053 | goto __pyx_L5_argtuple_error; |
| 16054 | } else { |
| 16055 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 16056 | values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 16057 | } |
| 16058 | __pyx_v_v = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_v == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__16058; goto __pyx_L3_error;} |
| 16059 | __pyx_v_i = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_i == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__16059; goto __pyx_L3_error;} |
| 16060 | } |
| 16061 | goto __pyx_L4_argument_unpacking_done; |
| 16062 | __pyx_L5_argtuple_error:; |
| 16063 | __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__16063; goto __pyx_L3_error;} |
| 16064 | __pyx_L3_error:; |
| 16065 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.insert", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16066 | __Pyx_RefNannyFinishContext(); |
| 16067 | return NULL((void*)0); |
| 16068 | __pyx_L4_argument_unpacking_done:; |
| 16069 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_17insert(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), __pyx_v_v, __pyx_v_i); |
| 16070 | |
| 16071 | /* function exit code */ |
| 16072 | __Pyx_RefNannyFinishContext(); |
| 16073 | return __pyx_r; |
| 16074 | } |
| 16075 | |
| 16076 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_17insert(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_v, int __pyx_v_i) { |
| 16077 | PyObject *__pyx_r = NULL((void*)0); |
| 16078 | __Pyx_RefNannyDeclarations |
| 16079 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 16080 | int __pyx_lineno = 0; |
| 16081 | const char *__pyx_filename = NULL((void*)0); |
| 16082 | int __pyx_clineno = 0; |
| 16083 | __Pyx_RefNannySetupContext("insert", 0); |
| 16084 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16085 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->insert(__pyx_v_self, __pyx_v_v, __pyx_v_i, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__16085; goto __pyx_L1_error;} |
| 16086 | __Pyx_GOTREF(__pyx_t_1); |
| 16087 | __pyx_r = __pyx_t_1; |
| 16088 | __pyx_t_1 = 0; |
| 16089 | goto __pyx_L0; |
| 16090 | |
| 16091 | /* function exit code */ |
| 16092 | __pyx_L1_error:; |
| 16093 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 16094 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.insert", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16095 | __pyx_r = NULL((void*)0); |
| 16096 | __pyx_L0:; |
| 16097 | __Pyx_XGIVEREF(__pyx_r); |
| 16098 | __Pyx_RefNannyFinishContext(); |
| 16099 | return __pyx_r; |
| 16100 | } |
| 16101 | |
| 16102 | /* "xmmsvalue.pyx":799 |
| 16103 | * raise IndexError("Index out of range") |
| 16104 | * |
| 16105 | * cpdef remove(self, int i): # <<<<<<<<<<<<<< |
| 16106 | * """Removes entry at specified position""" |
| 16107 | * if i < 0: |
| 16108 | */ |
| 16109 | |
| 16110 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_20remove(PyObject *__pyx_v_self, PyObject *__pyx_arg_i); /*proto*/ |
| 16111 | static PyObject *__pyx_f_9xmmsvalue_16CollectionIDList_remove(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i, int __pyx_skip_dispatch) { |
| 16112 | PyObject *__pyx_r = NULL((void*)0); |
| 16113 | __Pyx_RefNannyDeclarations |
| 16114 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 16115 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 16116 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 16117 | int __pyx_t_4; |
| 16118 | Py_ssize_t __pyx_t_5; |
| 16119 | int __pyx_lineno = 0; |
| 16120 | const char *__pyx_filename = NULL((void*)0); |
| 16121 | int __pyx_clineno = 0; |
| 16122 | __Pyx_RefNannySetupContext("remove", 0); |
| 16123 | /* Check if called by wrapper */ |
| 16124 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 16125 | /* Check if overridden in Python */ |
| 16126 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 16127 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_remove); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__16127; goto __pyx_L1_error;} |
| 16128 | __Pyx_GOTREF(__pyx_t_1); |
| 16129 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_20remove)) { |
| 16130 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16131 | __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_i); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__16131; goto __pyx_L1_error;} |
| 16132 | __Pyx_GOTREF(__pyx_t_2); |
| 16133 | __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__16133; goto __pyx_L1_error;} |
| 16134 | __Pyx_GOTREF(__pyx_t_3); |
| 16135 | PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = __pyx_t_2); |
| 16136 | __Pyx_GIVEREF(__pyx_t_2); |
| 16137 | __pyx_t_2 = 0; |
| 16138 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__16138; goto __pyx_L1_error;} |
| 16139 | __Pyx_GOTREF(__pyx_t_2); |
| 16140 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 16141 | __pyx_r = __pyx_t_2; |
| 16142 | __pyx_t_2 = 0; |
| 16143 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16144 | goto __pyx_L0; |
| 16145 | } |
| 16146 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16147 | } |
| 16148 | |
| 16149 | /* "xmmsvalue.pyx":801 |
| 16150 | * cpdef remove(self, int i): |
| 16151 | * """Removes entry at specified position""" |
| 16152 | * if i < 0: # <<<<<<<<<<<<<< |
| 16153 | * i = len(self) + i |
| 16154 | * if not xmmsv_coll_idlist_remove(self.coll, i): |
| 16155 | */ |
| 16156 | __pyx_t_4 = ((__pyx_v_i < 0) != 0); |
| 16157 | if (__pyx_t_4) { |
| 16158 | |
| 16159 | /* "xmmsvalue.pyx":802 |
| 16160 | * """Removes entry at specified position""" |
| 16161 | * if i < 0: |
| 16162 | * i = len(self) + i # <<<<<<<<<<<<<< |
| 16163 | * if not xmmsv_coll_idlist_remove(self.coll, i): |
| 16164 | * raise IndexError("Index out of range") |
| 16165 | */ |
| 16166 | __pyx_t_5 = PyObject_LengthPyObject_Size(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_t_5 == -1)__builtin_expect(!!(__pyx_t_5 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 802; __pyx_clineno = __LINE__16166; goto __pyx_L1_error;} |
| 16167 | __pyx_v_i = (__pyx_t_5 + __pyx_v_i); |
| 16168 | goto __pyx_L3; |
| 16169 | } |
| 16170 | __pyx_L3:; |
| 16171 | |
| 16172 | /* "xmmsvalue.pyx":803 |
| 16173 | * if i < 0: |
| 16174 | * i = len(self) + i |
| 16175 | * if not xmmsv_coll_idlist_remove(self.coll, i): # <<<<<<<<<<<<<< |
| 16176 | * raise IndexError("Index out of range") |
| 16177 | * |
| 16178 | */ |
| 16179 | __pyx_t_4 = ((!(xmmsv_coll_idlist_remove(__pyx_v_self->__pyx_base.coll, __pyx_v_i) != 0)) != 0); |
| 16180 | if (__pyx_t_4) { |
| 16181 | |
| 16182 | /* "xmmsvalue.pyx":804 |
| 16183 | * i = len(self) + i |
| 16184 | * if not xmmsv_coll_idlist_remove(self.coll, i): |
| 16185 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 16186 | * |
| 16187 | * cpdef pop(self, int i = -1): |
| 16188 | */ |
| 16189 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__27, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 804; __pyx_clineno = __LINE__16189; goto __pyx_L1_error;} |
| 16190 | __Pyx_GOTREF(__pyx_t_1); |
| 16191 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 16192 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16193 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 804; __pyx_clineno = __LINE__16193; goto __pyx_L1_error;} |
| 16194 | } |
| 16195 | |
| 16196 | /* "xmmsvalue.pyx":799 |
| 16197 | * raise IndexError("Index out of range") |
| 16198 | * |
| 16199 | * cpdef remove(self, int i): # <<<<<<<<<<<<<< |
| 16200 | * """Removes entry at specified position""" |
| 16201 | * if i < 0: |
| 16202 | */ |
| 16203 | |
| 16204 | /* function exit code */ |
| 16205 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 16206 | goto __pyx_L0; |
| 16207 | __pyx_L1_error:; |
| 16208 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 16209 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 16210 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 16211 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.remove", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16212 | __pyx_r = 0; |
| 16213 | __pyx_L0:; |
| 16214 | __Pyx_XGIVEREF(__pyx_r); |
| 16215 | __Pyx_RefNannyFinishContext(); |
| 16216 | return __pyx_r; |
| 16217 | } |
| 16218 | |
| 16219 | /* Python wrapper */ |
| 16220 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_20remove(PyObject *__pyx_v_self, PyObject *__pyx_arg_i); /*proto*/ |
| 16221 | static char __pyx_doc_9xmmsvalue_16CollectionIDList_19remove[] = "CollectionIDList.remove(self, int i)\nRemoves entry at specified position"; |
| 16222 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_20remove(PyObject *__pyx_v_self, PyObject *__pyx_arg_i) { |
| 16223 | int __pyx_v_i; |
| 16224 | int __pyx_lineno = 0; |
| 16225 | const char *__pyx_filename = NULL((void*)0); |
| 16226 | int __pyx_clineno = 0; |
| 16227 | PyObject *__pyx_r = 0; |
| 16228 | __Pyx_RefNannyDeclarations |
| 16229 | __Pyx_RefNannySetupContext("remove (wrapper)", 0); |
| 16230 | assert(__pyx_arg_i)((void) (0)); { |
| 16231 | __pyx_v_i = __Pyx_PyInt_As_int(__pyx_arg_i); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_i == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__16231; goto __pyx_L3_error;} |
| 16232 | } |
| 16233 | goto __pyx_L4_argument_unpacking_done; |
| 16234 | __pyx_L3_error:; |
| 16235 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.remove", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16236 | __Pyx_RefNannyFinishContext(); |
| 16237 | return NULL((void*)0); |
| 16238 | __pyx_L4_argument_unpacking_done:; |
| 16239 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_19remove(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), ((int)__pyx_v_i)); |
| 16240 | |
| 16241 | /* function exit code */ |
| 16242 | __Pyx_RefNannyFinishContext(); |
| 16243 | return __pyx_r; |
| 16244 | } |
| 16245 | |
| 16246 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_19remove(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i) { |
| 16247 | PyObject *__pyx_r = NULL((void*)0); |
| 16248 | __Pyx_RefNannyDeclarations |
| 16249 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 16250 | int __pyx_lineno = 0; |
| 16251 | const char *__pyx_filename = NULL((void*)0); |
| 16252 | int __pyx_clineno = 0; |
| 16253 | __Pyx_RefNannySetupContext("remove", 0); |
| 16254 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16255 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->remove(__pyx_v_self, __pyx_v_i, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 799; __pyx_clineno = __LINE__16255; goto __pyx_L1_error;} |
| 16256 | __Pyx_GOTREF(__pyx_t_1); |
| 16257 | __pyx_r = __pyx_t_1; |
| 16258 | __pyx_t_1 = 0; |
| 16259 | goto __pyx_L0; |
| 16260 | |
| 16261 | /* function exit code */ |
| 16262 | __pyx_L1_error:; |
| 16263 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 16264 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.remove", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16265 | __pyx_r = NULL((void*)0); |
| 16266 | __pyx_L0:; |
| 16267 | __Pyx_XGIVEREF(__pyx_r); |
| 16268 | __Pyx_RefNannyFinishContext(); |
| 16269 | return __pyx_r; |
| 16270 | } |
| 16271 | |
| 16272 | /* "xmmsvalue.pyx":806 |
| 16273 | * raise IndexError("Index out of range") |
| 16274 | * |
| 16275 | * cpdef pop(self, int i = -1): # <<<<<<<<<<<<<< |
| 16276 | * """Remove an id at specified position and return it""" |
| 16277 | * x = self[i] |
| 16278 | */ |
| 16279 | |
| 16280 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_22pop(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 16281 | static PyObject *__pyx_f_9xmmsvalue_16CollectionIDList_pop(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_skip_dispatch, struct __pyx_opt_args_9xmmsvalue_16CollectionIDList_pop *__pyx_optional_args) { |
| 16282 | int __pyx_v_i = ((int)-1); |
| 16283 | PyObject *__pyx_v_x = NULL((void*)0); |
| 16284 | PyObject *__pyx_r = NULL((void*)0); |
| 16285 | __Pyx_RefNannyDeclarations |
| 16286 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 16287 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 16288 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 16289 | int __pyx_lineno = 0; |
| 16290 | const char *__pyx_filename = NULL((void*)0); |
| 16291 | int __pyx_clineno = 0; |
| 16292 | __Pyx_RefNannySetupContext("pop", 0); |
| 16293 | if (__pyx_optional_args) { |
| 16294 | if (__pyx_optional_args->__pyx_n > 0) { |
| 16295 | __pyx_v_i = __pyx_optional_args->i; |
| 16296 | } |
| 16297 | } |
| 16298 | /* Check if called by wrapper */ |
| 16299 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 16300 | /* Check if overridden in Python */ |
| 16301 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 16302 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_pop); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__16302; goto __pyx_L1_error;} |
| 16303 | __Pyx_GOTREF(__pyx_t_1); |
| 16304 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_22pop)) { |
| 16305 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16306 | __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_i); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__16306; goto __pyx_L1_error;} |
| 16307 | __Pyx_GOTREF(__pyx_t_2); |
| 16308 | __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__16308; goto __pyx_L1_error;} |
| 16309 | __Pyx_GOTREF(__pyx_t_3); |
| 16310 | PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = __pyx_t_2); |
| 16311 | __Pyx_GIVEREF(__pyx_t_2); |
| 16312 | __pyx_t_2 = 0; |
| 16313 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__16313; goto __pyx_L1_error;} |
| 16314 | __Pyx_GOTREF(__pyx_t_2); |
| 16315 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 16316 | __pyx_r = __pyx_t_2; |
| 16317 | __pyx_t_2 = 0; |
| 16318 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16319 | goto __pyx_L0; |
| 16320 | } |
| 16321 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16322 | } |
| 16323 | |
| 16324 | /* "xmmsvalue.pyx":808 |
| 16325 | * cpdef pop(self, int i = -1): |
| 16326 | * """Remove an id at specified position and return it""" |
| 16327 | * x = self[i] # <<<<<<<<<<<<<< |
| 16328 | * self.remove(i) |
| 16329 | * return x |
| 16330 | */ |
| 16331 | __pyx_t_1 = __Pyx_GetItemInt(((PyObject *)__pyx_v_self), __pyx_v_i, int, 1, __Pyx_PyInt_From_int, 0, 1, 1)(( (sizeof(int) < sizeof(Py_ssize_t)) || (sizeof(int) > sizeof(Py_ssize_t) && __builtin_expect(!!(__pyx_v_i < (int)((Py_ssize_t)(((size_t)-1)>>1)) || __pyx_v_i == ( int)((Py_ssize_t)(((size_t)-1)>>1))), 1) && (!1 || __builtin_expect(!!(__pyx_v_i > (int)(-((Py_ssize_t)(( (size_t)-1)>>1))-1) || __pyx_v_i == (int)(-((Py_ssize_t )(((size_t)-1)>>1))-1)), 1))) || (sizeof(int) == sizeof (Py_ssize_t) && (1 || __builtin_expect(!!(__pyx_v_i < (int)((Py_ssize_t)(((size_t)-1)>>1)) || __pyx_v_i == ( int)((Py_ssize_t)(((size_t)-1)>>1))), 1))) ) ? __Pyx_GetItemInt_Fast (((PyObject *)__pyx_v_self), (Py_ssize_t)__pyx_v_i, 0, 1, 1) : (0 ? (PyErr_SetString(PyExc_IndexError, "list index out of range" ), (PyObject*)((void*)0)) : __Pyx_GetItemInt_Generic(((PyObject *)__pyx_v_self), __Pyx_PyInt_From_int(__pyx_v_i)))); if (unlikely(__pyx_t_1 == NULL)__builtin_expect(!!(__pyx_t_1 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 808; __pyx_clineno = __LINE__16331; goto __pyx_L1_error;}; |
| 16332 | __Pyx_GOTREF(__pyx_t_1); |
| 16333 | __pyx_v_x = __pyx_t_1; |
| 16334 | __pyx_t_1 = 0; |
| 16335 | |
| 16336 | /* "xmmsvalue.pyx":809 |
| 16337 | * """Remove an id at specified position and return it""" |
| 16338 | * x = self[i] |
| 16339 | * self.remove(i) # <<<<<<<<<<<<<< |
| 16340 | * return x |
| 16341 | * |
| 16342 | */ |
| 16343 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->remove(__pyx_v_self, __pyx_v_i, 0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 809; __pyx_clineno = __LINE__16343; goto __pyx_L1_error;} |
| 16344 | __Pyx_GOTREF(__pyx_t_1); |
| 16345 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16346 | |
| 16347 | /* "xmmsvalue.pyx":810 |
| 16348 | * x = self[i] |
| 16349 | * self.remove(i) |
| 16350 | * return x # <<<<<<<<<<<<<< |
| 16351 | * |
| 16352 | * def __delitem__(self, int i): |
| 16353 | */ |
| 16354 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16355 | __Pyx_INCREF(__pyx_v_x)( ((PyObject*)(__pyx_v_x))->ob_refcnt++); |
| 16356 | __pyx_r = __pyx_v_x; |
| 16357 | goto __pyx_L0; |
| 16358 | |
| 16359 | /* "xmmsvalue.pyx":806 |
| 16360 | * raise IndexError("Index out of range") |
| 16361 | * |
| 16362 | * cpdef pop(self, int i = -1): # <<<<<<<<<<<<<< |
| 16363 | * """Remove an id at specified position and return it""" |
| 16364 | * x = self[i] |
| 16365 | */ |
| 16366 | |
| 16367 | /* function exit code */ |
| 16368 | __pyx_L1_error:; |
| 16369 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 16370 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 16371 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 16372 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.pop", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16373 | __pyx_r = 0; |
| 16374 | __pyx_L0:; |
| 16375 | __Pyx_XDECREF(__pyx_v_x)do { if ((__pyx_v_x) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_x))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_x)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_x)))); } while (0); } while (0); |
| 16376 | __Pyx_XGIVEREF(__pyx_r); |
| 16377 | __Pyx_RefNannyFinishContext(); |
| 16378 | return __pyx_r; |
| 16379 | } |
| 16380 | |
| 16381 | /* Python wrapper */ |
| 16382 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_22pop(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 16383 | static char __pyx_doc_9xmmsvalue_16CollectionIDList_21pop[] = "CollectionIDList.pop(self, int i=-1)\nRemove an id at specified position and return it"; |
| 16384 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_22pop(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 16385 | int __pyx_v_i; |
| 16386 | int __pyx_lineno = 0; |
| 16387 | const char *__pyx_filename = NULL((void*)0); |
| 16388 | int __pyx_clineno = 0; |
| 16389 | PyObject *__pyx_r = 0; |
| 16390 | __Pyx_RefNannyDeclarations |
| 16391 | __Pyx_RefNannySetupContext("pop (wrapper)", 0); |
| 16392 | { |
| 16393 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_i,0}; |
| 16394 | PyObject* values[1] = {0}; |
| 16395 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 16396 | Py_ssize_t kw_args; |
| 16397 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 16398 | switch (pos_args) { |
| 16399 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 16400 | case 0: break; |
| 16401 | default: goto __pyx_L5_argtuple_error; |
| 16402 | } |
| 16403 | kw_args = PyDict_Size(__pyx_kwds); |
| 16404 | switch (pos_args) { |
| 16405 | case 0: |
| 16406 | if (kw_args > 0) { |
| 16407 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_i); |
| 16408 | if (value) { values[0] = value; kw_args--; } |
| 16409 | } |
| 16410 | } |
| 16411 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 16412 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "pop") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , 0, values, pos_args, "pop") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__16412; goto __pyx_L3_error;} |
| 16413 | } |
| 16414 | } else { |
| 16415 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 16416 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 16417 | case 0: break; |
| 16418 | default: goto __pyx_L5_argtuple_error; |
| 16419 | } |
| 16420 | } |
| 16421 | if (values[0]) { |
| 16422 | __pyx_v_i = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_i == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__16422; goto __pyx_L3_error;} |
| 16423 | } else { |
| 16424 | __pyx_v_i = ((int)-1); |
| 16425 | } |
| 16426 | } |
| 16427 | goto __pyx_L4_argument_unpacking_done; |
| 16428 | __pyx_L5_argtuple_error:; |
| 16429 | __Pyx_RaiseArgtupleInvalid("pop", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__16429; goto __pyx_L3_error;} |
| 16430 | __pyx_L3_error:; |
| 16431 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.pop", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16432 | __Pyx_RefNannyFinishContext(); |
| 16433 | return NULL((void*)0); |
| 16434 | __pyx_L4_argument_unpacking_done:; |
| 16435 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_21pop(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), __pyx_v_i); |
| 16436 | |
| 16437 | /* function exit code */ |
| 16438 | __Pyx_RefNannyFinishContext(); |
| 16439 | return __pyx_r; |
| 16440 | } |
| 16441 | |
| 16442 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_21pop(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i) { |
| 16443 | PyObject *__pyx_r = NULL((void*)0); |
| 16444 | __Pyx_RefNannyDeclarations |
| 16445 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 16446 | struct __pyx_opt_args_9xmmsvalue_16CollectionIDList_pop __pyx_t_2; |
| 16447 | int __pyx_lineno = 0; |
| 16448 | const char *__pyx_filename = NULL((void*)0); |
| 16449 | int __pyx_clineno = 0; |
| 16450 | __Pyx_RefNannySetupContext("pop", 0); |
| 16451 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16452 | __pyx_t_2.__pyx_n = 1; |
| 16453 | __pyx_t_2.i = __pyx_v_i; |
| 16454 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->pop(__pyx_v_self, 1, &__pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 806; __pyx_clineno = __LINE__16454; goto __pyx_L1_error;} |
| 16455 | __Pyx_GOTREF(__pyx_t_1); |
| 16456 | __pyx_r = __pyx_t_1; |
| 16457 | __pyx_t_1 = 0; |
| 16458 | goto __pyx_L0; |
| 16459 | |
| 16460 | /* function exit code */ |
| 16461 | __pyx_L1_error:; |
| 16462 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 16463 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.pop", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16464 | __pyx_r = NULL((void*)0); |
| 16465 | __pyx_L0:; |
| 16466 | __Pyx_XGIVEREF(__pyx_r); |
| 16467 | __Pyx_RefNannyFinishContext(); |
| 16468 | return __pyx_r; |
| 16469 | } |
| 16470 | |
| 16471 | /* "xmmsvalue.pyx":812 |
| 16472 | * return x |
| 16473 | * |
| 16474 | * def __delitem__(self, int i): # <<<<<<<<<<<<<< |
| 16475 | * if i < 0: |
| 16476 | * i = len(self) + i |
| 16477 | */ |
| 16478 | |
| 16479 | /* Python wrapper */ |
| 16480 | static int __pyx_pw_9xmmsvalue_16CollectionIDList_24__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i); /*proto*/ |
| 16481 | static int __pyx_pw_9xmmsvalue_16CollectionIDList_24__delitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i) { |
| 16482 | int __pyx_v_i; |
| 16483 | int __pyx_lineno = 0; |
| 16484 | const char *__pyx_filename = NULL((void*)0); |
| 16485 | int __pyx_clineno = 0; |
| 16486 | int __pyx_r; |
| 16487 | __Pyx_RefNannyDeclarations |
| 16488 | __Pyx_RefNannySetupContext("__delitem__ (wrapper)", 0); |
| 16489 | assert(__pyx_arg_i)((void) (0)); { |
| 16490 | __pyx_v_i = __Pyx_PyInt_As_int(__pyx_arg_i); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_i == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 812; __pyx_clineno = __LINE__16490; goto __pyx_L3_error;} |
| 16491 | } |
| 16492 | goto __pyx_L4_argument_unpacking_done; |
| 16493 | __pyx_L3_error:; |
| 16494 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16495 | __Pyx_RefNannyFinishContext(); |
| 16496 | return -1; |
| 16497 | __pyx_L4_argument_unpacking_done:; |
| 16498 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_23__delitem__(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), ((int)__pyx_v_i)); |
| 16499 | |
| 16500 | /* function exit code */ |
| 16501 | __Pyx_RefNannyFinishContext(); |
| 16502 | return __pyx_r; |
| 16503 | } |
| 16504 | |
| 16505 | static int __pyx_pf_9xmmsvalue_16CollectionIDList_23__delitem__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i) { |
| 16506 | int __pyx_r; |
| 16507 | __Pyx_RefNannyDeclarations |
| 16508 | int __pyx_t_1; |
| 16509 | Py_ssize_t __pyx_t_2; |
| 16510 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 16511 | int __pyx_lineno = 0; |
| 16512 | const char *__pyx_filename = NULL((void*)0); |
| 16513 | int __pyx_clineno = 0; |
| 16514 | __Pyx_RefNannySetupContext("__delitem__", 0); |
| 16515 | |
| 16516 | /* "xmmsvalue.pyx":813 |
| 16517 | * |
| 16518 | * def __delitem__(self, int i): |
| 16519 | * if i < 0: # <<<<<<<<<<<<<< |
| 16520 | * i = len(self) + i |
| 16521 | * self.remove(i) |
| 16522 | */ |
| 16523 | __pyx_t_1 = ((__pyx_v_i < 0) != 0); |
| 16524 | if (__pyx_t_1) { |
| 16525 | |
| 16526 | /* "xmmsvalue.pyx":814 |
| 16527 | * def __delitem__(self, int i): |
| 16528 | * if i < 0: |
| 16529 | * i = len(self) + i # <<<<<<<<<<<<<< |
| 16530 | * self.remove(i) |
| 16531 | * |
| 16532 | */ |
| 16533 | __pyx_t_2 = PyObject_LengthPyObject_Size(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_t_2 == -1)__builtin_expect(!!(__pyx_t_2 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 814; __pyx_clineno = __LINE__16533; goto __pyx_L1_error;} |
| 16534 | __pyx_v_i = (__pyx_t_2 + __pyx_v_i); |
| 16535 | goto __pyx_L3; |
| 16536 | } |
| 16537 | __pyx_L3:; |
| 16538 | |
| 16539 | /* "xmmsvalue.pyx":815 |
| 16540 | * if i < 0: |
| 16541 | * i = len(self) + i |
| 16542 | * self.remove(i) # <<<<<<<<<<<<<< |
| 16543 | * |
| 16544 | * def __getitem__(self, int i): |
| 16545 | */ |
| 16546 | __pyx_t_3 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->remove(__pyx_v_self, __pyx_v_i, 0); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 815; __pyx_clineno = __LINE__16546; goto __pyx_L1_error;} |
| 16547 | __Pyx_GOTREF(__pyx_t_3); |
| 16548 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 16549 | |
| 16550 | /* "xmmsvalue.pyx":812 |
| 16551 | * return x |
| 16552 | * |
| 16553 | * def __delitem__(self, int i): # <<<<<<<<<<<<<< |
| 16554 | * if i < 0: |
| 16555 | * i = len(self) + i |
| 16556 | */ |
| 16557 | |
| 16558 | /* function exit code */ |
| 16559 | __pyx_r = 0; |
| 16560 | goto __pyx_L0; |
| 16561 | __pyx_L1_error:; |
| 16562 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 16563 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16564 | __pyx_r = -1; |
| 16565 | __pyx_L0:; |
| 16566 | __Pyx_RefNannyFinishContext(); |
| 16567 | return __pyx_r; |
| 16568 | } |
| 16569 | |
| 16570 | /* "xmmsvalue.pyx":817 |
| 16571 | * self.remove(i) |
| 16572 | * |
| 16573 | * def __getitem__(self, int i): # <<<<<<<<<<<<<< |
| 16574 | * cdef int x = 0 |
| 16575 | * if i < 0: |
| 16576 | */ |
| 16577 | |
| 16578 | /* Python wrapper */ |
| 16579 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_26__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i); /*proto*/ |
| 16580 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_26__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i) { |
| 16581 | int __pyx_v_i; |
| 16582 | int __pyx_lineno = 0; |
| 16583 | const char *__pyx_filename = NULL((void*)0); |
| 16584 | int __pyx_clineno = 0; |
| 16585 | PyObject *__pyx_r = 0; |
| 16586 | __Pyx_RefNannyDeclarations |
| 16587 | __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); |
| 16588 | assert(__pyx_arg_i)((void) (0)); { |
| 16589 | __pyx_v_i = __Pyx_PyInt_As_int(__pyx_arg_i); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_i == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 817; __pyx_clineno = __LINE__16589; goto __pyx_L3_error;} |
| 16590 | } |
| 16591 | goto __pyx_L4_argument_unpacking_done; |
| 16592 | __pyx_L3_error:; |
| 16593 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16594 | __Pyx_RefNannyFinishContext(); |
| 16595 | return NULL((void*)0); |
| 16596 | __pyx_L4_argument_unpacking_done:; |
| 16597 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_25__getitem__(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), ((int)__pyx_v_i)); |
| 16598 | |
| 16599 | /* function exit code */ |
| 16600 | __Pyx_RefNannyFinishContext(); |
| 16601 | return __pyx_r; |
| 16602 | } |
| 16603 | |
| 16604 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_25__getitem__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i) { |
| 16605 | int __pyx_v_x; |
| 16606 | PyObject *__pyx_r = NULL((void*)0); |
| 16607 | __Pyx_RefNannyDeclarations |
| 16608 | int __pyx_t_1; |
| 16609 | Py_ssize_t __pyx_t_2; |
| 16610 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 16611 | int __pyx_lineno = 0; |
| 16612 | const char *__pyx_filename = NULL((void*)0); |
| 16613 | int __pyx_clineno = 0; |
| 16614 | __Pyx_RefNannySetupContext("__getitem__", 0); |
| 16615 | |
| 16616 | /* "xmmsvalue.pyx":818 |
| 16617 | * |
| 16618 | * def __getitem__(self, int i): |
| 16619 | * cdef int x = 0 # <<<<<<<<<<<<<< |
| 16620 | * if i < 0: |
| 16621 | * i = len(self) + i |
| 16622 | */ |
| 16623 | __pyx_v_x = 0; |
| 16624 | |
| 16625 | /* "xmmsvalue.pyx":819 |
| 16626 | * def __getitem__(self, int i): |
| 16627 | * cdef int x = 0 |
| 16628 | * if i < 0: # <<<<<<<<<<<<<< |
| 16629 | * i = len(self) + i |
| 16630 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 16631 | */ |
| 16632 | __pyx_t_1 = ((__pyx_v_i < 0) != 0); |
| 16633 | if (__pyx_t_1) { |
| 16634 | |
| 16635 | /* "xmmsvalue.pyx":820 |
| 16636 | * cdef int x = 0 |
| 16637 | * if i < 0: |
| 16638 | * i = len(self) + i # <<<<<<<<<<<<<< |
| 16639 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 16640 | * raise IndexError("Index out of range") |
| 16641 | */ |
| 16642 | __pyx_t_2 = PyObject_LengthPyObject_Size(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_t_2 == -1)__builtin_expect(!!(__pyx_t_2 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 820; __pyx_clineno = __LINE__16642; goto __pyx_L1_error;} |
| 16643 | __pyx_v_i = (__pyx_t_2 + __pyx_v_i); |
| 16644 | goto __pyx_L3; |
| 16645 | } |
| 16646 | __pyx_L3:; |
| 16647 | |
| 16648 | /* "xmmsvalue.pyx":821 |
| 16649 | * if i < 0: |
| 16650 | * i = len(self) + i |
| 16651 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): # <<<<<<<<<<<<<< |
| 16652 | * raise IndexError("Index out of range") |
| 16653 | * return x |
| 16654 | */ |
| 16655 | __pyx_t_1 = ((!(xmmsv_coll_idlist_get_indexxmmsv_coll_idlist_get_index_int32(__pyx_v_self->__pyx_base.coll, __pyx_v_i, (&__pyx_v_x)) != 0)) != 0); |
| 16656 | if (__pyx_t_1) { |
| 16657 | |
| 16658 | /* "xmmsvalue.pyx":822 |
| 16659 | * i = len(self) + i |
| 16660 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 16661 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 16662 | * return x |
| 16663 | * |
| 16664 | */ |
| 16665 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__28, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__16665; goto __pyx_L1_error;} |
| 16666 | __Pyx_GOTREF(__pyx_t_3); |
| 16667 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 16668 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 16669 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__16669; goto __pyx_L1_error;} |
| 16670 | } |
| 16671 | |
| 16672 | /* "xmmsvalue.pyx":823 |
| 16673 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 16674 | * raise IndexError("Index out of range") |
| 16675 | * return x # <<<<<<<<<<<<<< |
| 16676 | * |
| 16677 | * def __setitem__(self, int i, int v): |
| 16678 | */ |
| 16679 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16680 | __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_x); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; __pyx_clineno = __LINE__16680; goto __pyx_L1_error;} |
| 16681 | __Pyx_GOTREF(__pyx_t_3); |
| 16682 | __pyx_r = __pyx_t_3; |
| 16683 | __pyx_t_3 = 0; |
| 16684 | goto __pyx_L0; |
| 16685 | |
| 16686 | /* "xmmsvalue.pyx":817 |
| 16687 | * self.remove(i) |
| 16688 | * |
| 16689 | * def __getitem__(self, int i): # <<<<<<<<<<<<<< |
| 16690 | * cdef int x = 0 |
| 16691 | * if i < 0: |
| 16692 | */ |
| 16693 | |
| 16694 | /* function exit code */ |
| 16695 | __pyx_L1_error:; |
| 16696 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 16697 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16698 | __pyx_r = NULL((void*)0); |
| 16699 | __pyx_L0:; |
| 16700 | __Pyx_XGIVEREF(__pyx_r); |
| 16701 | __Pyx_RefNannyFinishContext(); |
| 16702 | return __pyx_r; |
| 16703 | } |
| 16704 | |
| 16705 | /* "xmmsvalue.pyx":825 |
| 16706 | * return x |
| 16707 | * |
| 16708 | * def __setitem__(self, int i, int v): # <<<<<<<<<<<<<< |
| 16709 | * if i < 0: |
| 16710 | * i = len(self) + i |
| 16711 | */ |
| 16712 | |
| 16713 | /* Python wrapper */ |
| 16714 | static int __pyx_pw_9xmmsvalue_16CollectionIDList_28__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i, PyObject *__pyx_arg_v); /*proto*/ |
| 16715 | static int __pyx_pw_9xmmsvalue_16CollectionIDList_28__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_arg_i, PyObject *__pyx_arg_v) { |
| 16716 | int __pyx_v_i; |
| 16717 | int __pyx_v_v; |
| 16718 | int __pyx_lineno = 0; |
| 16719 | const char *__pyx_filename = NULL((void*)0); |
| 16720 | int __pyx_clineno = 0; |
| 16721 | int __pyx_r; |
| 16722 | __Pyx_RefNannyDeclarations |
| 16723 | __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0); |
| 16724 | assert(__pyx_arg_i)((void) (0)); { |
| 16725 | __pyx_v_i = __Pyx_PyInt_As_int(__pyx_arg_i); if (unlikely((__pyx_v_i == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_i == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__16725; goto __pyx_L3_error;} |
| 16726 | } |
| 16727 | assert(__pyx_arg_v)((void) (0)); { |
| 16728 | __pyx_v_v = __Pyx_PyInt_As_int(__pyx_arg_v); if (unlikely((__pyx_v_v == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v_v == (int)-1) && PyErr_Occurred ()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__16728; goto __pyx_L3_error;} |
| 16729 | } |
| 16730 | goto __pyx_L4_argument_unpacking_done; |
| 16731 | __pyx_L3_error:; |
| 16732 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16733 | __Pyx_RefNannyFinishContext(); |
| 16734 | return -1; |
| 16735 | __pyx_L4_argument_unpacking_done:; |
| 16736 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_27__setitem__(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self), ((int)__pyx_v_i), ((int)__pyx_v_v)); |
| 16737 | |
| 16738 | /* function exit code */ |
| 16739 | __Pyx_RefNannyFinishContext(); |
| 16740 | return __pyx_r; |
| 16741 | } |
| 16742 | |
| 16743 | static int __pyx_pf_9xmmsvalue_16CollectionIDList_27__setitem__(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_v_i, int __pyx_v_v) { |
| 16744 | int __pyx_r; |
| 16745 | __Pyx_RefNannyDeclarations |
| 16746 | int __pyx_t_1; |
| 16747 | Py_ssize_t __pyx_t_2; |
| 16748 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 16749 | int __pyx_lineno = 0; |
| 16750 | const char *__pyx_filename = NULL((void*)0); |
| 16751 | int __pyx_clineno = 0; |
| 16752 | __Pyx_RefNannySetupContext("__setitem__", 0); |
| 16753 | |
| 16754 | /* "xmmsvalue.pyx":826 |
| 16755 | * |
| 16756 | * def __setitem__(self, int i, int v): |
| 16757 | * if i < 0: # <<<<<<<<<<<<<< |
| 16758 | * i = len(self) + i |
| 16759 | * if not xmmsv_coll_idlist_set_index(self.coll, i, v): |
| 16760 | */ |
| 16761 | __pyx_t_1 = ((__pyx_v_i < 0) != 0); |
| 16762 | if (__pyx_t_1) { |
| 16763 | |
| 16764 | /* "xmmsvalue.pyx":827 |
| 16765 | * def __setitem__(self, int i, int v): |
| 16766 | * if i < 0: |
| 16767 | * i = len(self) + i # <<<<<<<<<<<<<< |
| 16768 | * if not xmmsv_coll_idlist_set_index(self.coll, i, v): |
| 16769 | * raise IndexError("Index out of range") |
| 16770 | */ |
| 16771 | __pyx_t_2 = PyObject_LengthPyObject_Size(((PyObject *)__pyx_v_self)); if (unlikely(__pyx_t_2 == -1)__builtin_expect(!!(__pyx_t_2 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 827; __pyx_clineno = __LINE__16771; goto __pyx_L1_error;} |
| 16772 | __pyx_v_i = (__pyx_t_2 + __pyx_v_i); |
| 16773 | goto __pyx_L3; |
| 16774 | } |
| 16775 | __pyx_L3:; |
| 16776 | |
| 16777 | /* "xmmsvalue.pyx":828 |
| 16778 | * if i < 0: |
| 16779 | * i = len(self) + i |
| 16780 | * if not xmmsv_coll_idlist_set_index(self.coll, i, v): # <<<<<<<<<<<<<< |
| 16781 | * raise IndexError("Index out of range") |
| 16782 | * |
| 16783 | */ |
| 16784 | __pyx_t_1 = ((!(xmmsv_coll_idlist_set_index(__pyx_v_self->__pyx_base.coll, __pyx_v_i, __pyx_v_v) != 0)) != 0); |
| 16785 | if (__pyx_t_1) { |
| 16786 | |
| 16787 | /* "xmmsvalue.pyx":829 |
| 16788 | * i = len(self) + i |
| 16789 | * if not xmmsv_coll_idlist_set_index(self.coll, i, v): |
| 16790 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 16791 | * |
| 16792 | * cpdef clear(self): |
| 16793 | */ |
| 16794 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_IndexError, __pyx_tuple__29, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__16794; goto __pyx_L1_error;} |
| 16795 | __Pyx_GOTREF(__pyx_t_3); |
| 16796 | __Pyx_Raise(__pyx_t_3, 0, 0, 0); |
| 16797 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 16798 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__16798; goto __pyx_L1_error;} |
| 16799 | } |
| 16800 | |
| 16801 | /* "xmmsvalue.pyx":825 |
| 16802 | * return x |
| 16803 | * |
| 16804 | * def __setitem__(self, int i, int v): # <<<<<<<<<<<<<< |
| 16805 | * if i < 0: |
| 16806 | * i = len(self) + i |
| 16807 | */ |
| 16808 | |
| 16809 | /* function exit code */ |
| 16810 | __pyx_r = 0; |
| 16811 | goto __pyx_L0; |
| 16812 | __pyx_L1_error:; |
| 16813 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 16814 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16815 | __pyx_r = -1; |
| 16816 | __pyx_L0:; |
| 16817 | __Pyx_RefNannyFinishContext(); |
| 16818 | return __pyx_r; |
| 16819 | } |
| 16820 | |
| 16821 | /* "xmmsvalue.pyx":831 |
| 16822 | * raise IndexError("Index out of range") |
| 16823 | * |
| 16824 | * cpdef clear(self): # <<<<<<<<<<<<<< |
| 16825 | * if not xmmsv_coll_idlist_clear(self.coll): |
| 16826 | * raise RuntimeError("Failed to clear ids") |
| 16827 | */ |
| 16828 | |
| 16829 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_30clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 16830 | static PyObject *__pyx_f_9xmmsvalue_16CollectionIDList_clear(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self, int __pyx_skip_dispatch) { |
| 16831 | PyObject *__pyx_r = NULL((void*)0); |
| 16832 | __Pyx_RefNannyDeclarations |
| 16833 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 16834 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 16835 | int __pyx_t_3; |
| 16836 | int __pyx_lineno = 0; |
| 16837 | const char *__pyx_filename = NULL((void*)0); |
| 16838 | int __pyx_clineno = 0; |
| 16839 | __Pyx_RefNannySetupContext("clear", 0); |
| 16840 | /* Check if called by wrapper */ |
| 16841 | if (unlikely(__pyx_skip_dispatch)__builtin_expect(!!(__pyx_skip_dispatch), 0)) ; |
| 16842 | /* Check if overridden in Python */ |
| 16843 | else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)__builtin_expect(!!((((PyObject*)(((PyObject *)__pyx_v_self)) )->ob_type)->tp_dictoffset != 0), 0)) { |
| 16844 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__16844; goto __pyx_L1_error;} |
| 16845 | __Pyx_GOTREF(__pyx_t_1); |
| 16846 | if (!PyCFunction_Check(__pyx_t_1)((((PyObject*)(__pyx_t_1))->ob_type) == &PyCFunction_Type ) || (PyCFunction_GET_FUNCTION(__pyx_t_1)(((PyCFunctionObject *)__pyx_t_1) -> m_ml -> ml_meth) != (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_30clear)) { |
| 16847 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16848 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__16848; goto __pyx_L1_error;} |
| 16849 | __Pyx_GOTREF(__pyx_t_2); |
| 16850 | __pyx_r = __pyx_t_2; |
| 16851 | __pyx_t_2 = 0; |
| 16852 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16853 | goto __pyx_L0; |
| 16854 | } |
| 16855 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16856 | } |
| 16857 | |
| 16858 | /* "xmmsvalue.pyx":832 |
| 16859 | * |
| 16860 | * cpdef clear(self): |
| 16861 | * if not xmmsv_coll_idlist_clear(self.coll): # <<<<<<<<<<<<<< |
| 16862 | * raise RuntimeError("Failed to clear ids") |
| 16863 | * |
| 16864 | */ |
| 16865 | __pyx_t_3 = ((!(xmmsv_coll_idlist_clear(__pyx_v_self->__pyx_base.coll) != 0)) != 0); |
| 16866 | if (__pyx_t_3) { |
| 16867 | |
| 16868 | /* "xmmsvalue.pyx":833 |
| 16869 | * cpdef clear(self): |
| 16870 | * if not xmmsv_coll_idlist_clear(self.coll): |
| 16871 | * raise RuntimeError("Failed to clear ids") # <<<<<<<<<<<<<< |
| 16872 | * |
| 16873 | * |
| 16874 | */ |
| 16875 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__30, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__16875; goto __pyx_L1_error;} |
| 16876 | __Pyx_GOTREF(__pyx_t_1); |
| 16877 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 16878 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 16879 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__16879; goto __pyx_L1_error;} |
| 16880 | } |
| 16881 | |
| 16882 | /* "xmmsvalue.pyx":831 |
| 16883 | * raise IndexError("Index out of range") |
| 16884 | * |
| 16885 | * cpdef clear(self): # <<<<<<<<<<<<<< |
| 16886 | * if not xmmsv_coll_idlist_clear(self.coll): |
| 16887 | * raise RuntimeError("Failed to clear ids") |
| 16888 | */ |
| 16889 | |
| 16890 | /* function exit code */ |
| 16891 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 16892 | goto __pyx_L0; |
| 16893 | __pyx_L1_error:; |
| 16894 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 16895 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 16896 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.clear", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16897 | __pyx_r = 0; |
| 16898 | __pyx_L0:; |
| 16899 | __Pyx_XGIVEREF(__pyx_r); |
| 16900 | __Pyx_RefNannyFinishContext(); |
| 16901 | return __pyx_r; |
| 16902 | } |
| 16903 | |
| 16904 | /* Python wrapper */ |
| 16905 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_30clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused); /*proto*/ |
| 16906 | static char __pyx_doc_9xmmsvalue_16CollectionIDList_29clear[] = "CollectionIDList.clear(self)"; |
| 16907 | static PyObject *__pyx_pw_9xmmsvalue_16CollectionIDList_30clear(PyObject *__pyx_v_self, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *unused) { |
| 16908 | PyObject *__pyx_r = 0; |
| 16909 | __Pyx_RefNannyDeclarations |
| 16910 | __Pyx_RefNannySetupContext("clear (wrapper)", 0); |
| 16911 | __pyx_r = __pyx_pf_9xmmsvalue_16CollectionIDList_29clear(((struct __pyx_obj_9xmmsvalue_CollectionIDList *)__pyx_v_self)); |
| 16912 | |
| 16913 | /* function exit code */ |
| 16914 | __Pyx_RefNannyFinishContext(); |
| 16915 | return __pyx_r; |
| 16916 | } |
| 16917 | |
| 16918 | static PyObject *__pyx_pf_9xmmsvalue_16CollectionIDList_29clear(struct __pyx_obj_9xmmsvalue_CollectionIDList *__pyx_v_self) { |
| 16919 | PyObject *__pyx_r = NULL((void*)0); |
| 16920 | __Pyx_RefNannyDeclarations |
| 16921 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 16922 | int __pyx_lineno = 0; |
| 16923 | const char *__pyx_filename = NULL((void*)0); |
| 16924 | int __pyx_clineno = 0; |
| 16925 | __Pyx_RefNannySetupContext("clear", 0); |
| 16926 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 16927 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList *)__pyx_v_self->__pyx_base.__pyx_vtab)->clear(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 831; __pyx_clineno = __LINE__16927; goto __pyx_L1_error;} |
| 16928 | __Pyx_GOTREF(__pyx_t_1); |
| 16929 | __pyx_r = __pyx_t_1; |
| 16930 | __pyx_t_1 = 0; |
| 16931 | goto __pyx_L0; |
| 16932 | |
| 16933 | /* function exit code */ |
| 16934 | __pyx_L1_error:; |
| 16935 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 16936 | __Pyx_AddTraceback("xmmsvalue.CollectionIDList.clear", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 16937 | __pyx_r = NULL((void*)0); |
| 16938 | __pyx_L0:; |
| 16939 | __Pyx_XGIVEREF(__pyx_r); |
| 16940 | __Pyx_RefNannyFinishContext(); |
| 16941 | return __pyx_r; |
| 16942 | } |
| 16943 | |
| 16944 | /* "xmmsvalue.pyx":841 |
| 16945 | * |
| 16946 | * class BaseCollection(CollectionWrapper): |
| 16947 | * def __init__(Collection self, int _colltype, **kargs): # <<<<<<<<<<<<<< |
| 16948 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 16949 | * if self.coll == NULL: |
| 16950 | */ |
| 16951 | |
| 16952 | /* Python wrapper */ |
| 16953 | static PyObject *__pyx_pw_9xmmsvalue_14BaseCollection_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 16954 | static char __pyx_doc_9xmmsvalue_14BaseCollection___init__[] = "BaseCollection.__init__(Collection self, int _colltype, **kargs)"; |
| 16955 | static PyMethodDef __pyx_mdef_9xmmsvalue_14BaseCollection_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_14BaseCollection_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_14BaseCollection___init__)(__pyx_doc_9xmmsvalue_14BaseCollection___init__)}; |
| 16956 | static PyObject *__pyx_pw_9xmmsvalue_14BaseCollection_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 16957 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 16958 | int __pyx_v__colltype; |
| 16959 | PyObject *__pyx_v_kargs = 0; |
| 16960 | int __pyx_lineno = 0; |
| 16961 | const char *__pyx_filename = NULL((void*)0); |
| 16962 | int __pyx_clineno = 0; |
| 16963 | PyObject *__pyx_r = 0; |
| 16964 | __Pyx_RefNannyDeclarations |
| 16965 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 16966 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 16967 | __Pyx_GOTREF(__pyx_v_kargs); |
| 16968 | { |
| 16969 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_colltype,0}; |
| 16970 | PyObject* values[2] = {0,0}; |
| 16971 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 16972 | Py_ssize_t kw_args; |
| 16973 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 16974 | switch (pos_args) { |
| 16975 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 16976 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 16977 | case 0: break; |
| 16978 | default: goto __pyx_L5_argtuple_error; |
| 16979 | } |
| 16980 | kw_args = PyDict_Size(__pyx_kwds); |
| 16981 | switch (pos_args) { |
| 16982 | case 0: |
| 16983 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 16984 | else goto __pyx_L5_argtuple_error; |
| 16985 | case 1: |
| 16986 | if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_colltype)) != 0)__builtin_expect(!!((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_colltype )) != 0), 1)) kw_args--; |
| 16987 | else { |
| 16988 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__16988; goto __pyx_L3_error;} |
| 16989 | } |
| 16990 | } |
| 16991 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 16992 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__16992; goto __pyx_L3_error;} |
| 16993 | } |
| 16994 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) != 2) { |
| 16995 | goto __pyx_L5_argtuple_error; |
| 16996 | } else { |
| 16997 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 16998 | values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 16999 | } |
| 17000 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 17001 | __pyx_v__colltype = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v__colltype == (int)-1) && PyErr_Occurred())__builtin_expect(!!((__pyx_v__colltype == (int)-1) && PyErr_Occurred()), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__17001; goto __pyx_L3_error;} |
| 17002 | } |
| 17003 | goto __pyx_L4_argument_unpacking_done; |
| 17004 | __pyx_L5_argtuple_error:; |
| 17005 | __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__17005; goto __pyx_L3_error;} |
| 17006 | __pyx_L3_error:; |
| 17007 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 17008 | __Pyx_AddTraceback("xmmsvalue.BaseCollection.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17009 | __Pyx_RefNannyFinishContext(); |
| 17010 | return NULL((void*)0); |
| 17011 | __pyx_L4_argument_unpacking_done:; |
| 17012 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__17012; goto __pyx_L1_error;} |
| 17013 | __pyx_r = __pyx_pf_9xmmsvalue_14BaseCollection___init__(__pyx_self, __pyx_v_self, __pyx_v__colltype, __pyx_v_kargs); |
| 17014 | |
| 17015 | /* function exit code */ |
| 17016 | goto __pyx_L0; |
| 17017 | __pyx_L1_error:; |
| 17018 | __pyx_r = NULL((void*)0); |
| 17019 | __pyx_L0:; |
| 17020 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 17021 | __Pyx_RefNannyFinishContext(); |
| 17022 | return __pyx_r; |
| 17023 | } |
| 17024 | |
| 17025 | static PyObject *__pyx_pf_9xmmsvalue_14BaseCollection___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, int __pyx_v__colltype, PyObject *__pyx_v_kargs) { |
| 17026 | PyObject *__pyx_v_operands = NULL((void*)0); |
| 17027 | PyObject *__pyx_v_ids = NULL((void*)0); |
| 17028 | PyObject *__pyx_r = NULL((void*)0); |
| 17029 | __Pyx_RefNannyDeclarations |
| 17030 | int __pyx_t_1; |
| 17031 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 17032 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 17033 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 17034 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 17035 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 17036 | int __pyx_t_7; |
| 17037 | PyObject *__pyx_t_8 = NULL((void*)0); |
| 17038 | int __pyx_lineno = 0; |
| 17039 | const char *__pyx_filename = NULL((void*)0); |
| 17040 | int __pyx_clineno = 0; |
| 17041 | __Pyx_RefNannySetupContext("__init__", 0); |
| 17042 | |
| 17043 | /* "xmmsvalue.pyx":842 |
| 17044 | * class BaseCollection(CollectionWrapper): |
| 17045 | * def __init__(Collection self, int _colltype, **kargs): |
| 17046 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) # <<<<<<<<<<<<<< |
| 17047 | * if self.coll == NULL: |
| 17048 | * raise RuntimeError("Bad collection") |
| 17049 | */ |
| 17050 | __pyx_v_self->__pyx_base.coll = xmmsv_new_coll(((xmmsv_coll_type_t)__pyx_v__colltype)); |
| 17051 | |
| 17052 | /* "xmmsvalue.pyx":843 |
| 17053 | * def __init__(Collection self, int _colltype, **kargs): |
| 17054 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 17055 | * if self.coll == NULL: # <<<<<<<<<<<<<< |
| 17056 | * raise RuntimeError("Bad collection") |
| 17057 | * |
| 17058 | */ |
| 17059 | __pyx_t_1 = ((__pyx_v_self->__pyx_base.coll == NULL((void*)0)) != 0); |
| 17060 | if (__pyx_t_1) { |
| 17061 | |
| 17062 | /* "xmmsvalue.pyx":844 |
| 17063 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 17064 | * if self.coll == NULL: |
| 17065 | * raise RuntimeError("Bad collection") # <<<<<<<<<<<<<< |
| 17066 | * |
| 17067 | * operands = kargs.pop("operands", None) |
| 17068 | */ |
| 17069 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__31, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__17069; goto __pyx_L1_error;} |
| 17070 | __Pyx_GOTREF(__pyx_t_2); |
| 17071 | __Pyx_Raise(__pyx_t_2, 0, 0, 0); |
| 17072 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 17073 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__17073; goto __pyx_L1_error;} |
| 17074 | } |
| 17075 | |
| 17076 | /* "xmmsvalue.pyx":846 |
| 17077 | * raise RuntimeError("Bad collection") |
| 17078 | * |
| 17079 | * operands = kargs.pop("operands", None) # <<<<<<<<<<<<<< |
| 17080 | * if operands: |
| 17081 | * self.operands = operands |
| 17082 | */ |
| 17083 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_kargs, __pyx_n_s_pop); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__17083; goto __pyx_L1_error;} |
| 17084 | __Pyx_GOTREF(__pyx_t_2); |
| 17085 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__32, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__17085; goto __pyx_L1_error;} |
| 17086 | __Pyx_GOTREF(__pyx_t_3); |
| 17087 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 17088 | __pyx_v_operands = __pyx_t_3; |
| 17089 | __pyx_t_3 = 0; |
| 17090 | |
| 17091 | /* "xmmsvalue.pyx":847 |
| 17092 | * |
| 17093 | * operands = kargs.pop("operands", None) |
| 17094 | * if operands: # <<<<<<<<<<<<<< |
| 17095 | * self.operands = operands |
| 17096 | * |
| 17097 | */ |
| 17098 | __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_operands); if (unlikely(__pyx_t_1 < 0)__builtin_expect(!!(__pyx_t_1 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 847; __pyx_clineno = __LINE__17098; goto __pyx_L1_error;} |
| 17099 | if (__pyx_t_1) { |
| 17100 | |
| 17101 | /* "xmmsvalue.pyx":848 |
| 17102 | * operands = kargs.pop("operands", None) |
| 17103 | * if operands: |
| 17104 | * self.operands = operands # <<<<<<<<<<<<<< |
| 17105 | * |
| 17106 | * ids = kargs.pop("ids", None) |
| 17107 | */ |
| 17108 | if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_operands, __pyx_v_operands) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 848; __pyx_clineno = __LINE__17108; goto __pyx_L1_error;} |
| 17109 | goto __pyx_L4; |
| 17110 | } |
| 17111 | __pyx_L4:; |
| 17112 | |
| 17113 | /* "xmmsvalue.pyx":850 |
| 17114 | * self.operands = operands |
| 17115 | * |
| 17116 | * ids = kargs.pop("ids", None) # <<<<<<<<<<<<<< |
| 17117 | * if ids: |
| 17118 | * try: |
| 17119 | */ |
| 17120 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_kargs, __pyx_n_s_pop); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__17120; goto __pyx_L1_error;} |
| 17121 | __Pyx_GOTREF(__pyx_t_3); |
| 17122 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__33, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__17122; goto __pyx_L1_error;} |
| 17123 | __Pyx_GOTREF(__pyx_t_2); |
| 17124 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17125 | __pyx_v_ids = __pyx_t_2; |
| 17126 | __pyx_t_2 = 0; |
| 17127 | |
| 17128 | /* "xmmsvalue.pyx":851 |
| 17129 | * |
| 17130 | * ids = kargs.pop("ids", None) |
| 17131 | * if ids: # <<<<<<<<<<<<<< |
| 17132 | * try: |
| 17133 | * self.ids = ids |
| 17134 | */ |
| 17135 | __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_ids); if (unlikely(__pyx_t_1 < 0)__builtin_expect(!!(__pyx_t_1 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 851; __pyx_clineno = __LINE__17135; goto __pyx_L1_error;} |
| 17136 | if (__pyx_t_1) { |
| 17137 | |
| 17138 | /* "xmmsvalue.pyx":852 |
| 17139 | * ids = kargs.pop("ids", None) |
| 17140 | * if ids: |
| 17141 | * try: # <<<<<<<<<<<<<< |
| 17142 | * self.ids = ids |
| 17143 | * except TypeError: # Just ignore idlist when illegal |
| 17144 | */ |
| 17145 | { |
| 17146 | __Pyx_ExceptionSave(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6); |
| 17147 | __Pyx_XGOTREF(__pyx_t_4); |
| 17148 | __Pyx_XGOTREF(__pyx_t_5); |
| 17149 | __Pyx_XGOTREF(__pyx_t_6); |
| 17150 | /*try:*/ { |
| 17151 | |
| 17152 | /* "xmmsvalue.pyx":853 |
| 17153 | * if ids: |
| 17154 | * try: |
| 17155 | * self.ids = ids # <<<<<<<<<<<<<< |
| 17156 | * except TypeError: # Just ignore idlist when illegal |
| 17157 | * pass |
| 17158 | */ |
| 17159 | if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_ids, __pyx_v_ids) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 853; __pyx_clineno = __LINE__17159; goto __pyx_L6_error;} |
| 17160 | } |
| 17161 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); __pyx_t_4 = 0; |
| 17162 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); __pyx_t_5 = 0; |
| 17163 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); __pyx_t_6 = 0; |
| 17164 | goto __pyx_L13_try_end; |
| 17165 | __pyx_L6_error:; |
| 17166 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); __pyx_t_3 = 0; |
| 17167 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); __pyx_t_2 = 0; |
| 17168 | |
| 17169 | /* "xmmsvalue.pyx":854 |
| 17170 | * try: |
| 17171 | * self.ids = ids |
| 17172 | * except TypeError: # Just ignore idlist when illegal # <<<<<<<<<<<<<< |
| 17173 | * pass |
| 17174 | * |
| 17175 | */ |
| 17176 | __pyx_t_7 = PyErr_ExceptionMatches(__pyx_builtin_TypeError); |
| 17177 | if (__pyx_t_7) { |
| 17178 | PyErr_Restore(0,0,0); |
| 17179 | goto __pyx_L7_exception_handled; |
| 17180 | } |
| 17181 | goto __pyx_L8_except_error; |
| 17182 | __pyx_L8_except_error:; |
| 17183 | __Pyx_XGIVEREF(__pyx_t_4); |
| 17184 | __Pyx_XGIVEREF(__pyx_t_5); |
| 17185 | __Pyx_XGIVEREF(__pyx_t_6); |
| 17186 | __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6); |
| 17187 | goto __pyx_L1_error; |
| 17188 | __pyx_L7_exception_handled:; |
| 17189 | __Pyx_XGIVEREF(__pyx_t_4); |
| 17190 | __Pyx_XGIVEREF(__pyx_t_5); |
| 17191 | __Pyx_XGIVEREF(__pyx_t_6); |
| 17192 | __Pyx_ExceptionReset(__pyx_t_4, __pyx_t_5, __pyx_t_6); |
| 17193 | __pyx_L13_try_end:; |
| 17194 | } |
| 17195 | goto __pyx_L5; |
| 17196 | } |
| 17197 | __pyx_L5:; |
| 17198 | |
| 17199 | /* "xmmsvalue.pyx":857 |
| 17200 | * pass |
| 17201 | * |
| 17202 | * self.attributes.update(kargs) # <<<<<<<<<<<<<< |
| 17203 | * |
| 17204 | * class Reference(BaseCollection): |
| 17205 | */ |
| 17206 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_attributes); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 857; __pyx_clineno = __LINE__17206; goto __pyx_L1_error;} |
| 17207 | __Pyx_GOTREF(__pyx_t_2); |
| 17208 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_update); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 857; __pyx_clineno = __LINE__17208; goto __pyx_L1_error;} |
| 17209 | __Pyx_GOTREF(__pyx_t_3); |
| 17210 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 17211 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 857; __pyx_clineno = __LINE__17211; goto __pyx_L1_error;} |
| 17212 | __Pyx_GOTREF(__pyx_t_2); |
| 17213 | __Pyx_INCREF(__pyx_v_kargs)( ((PyObject*)(__pyx_v_kargs))->ob_refcnt++); |
| 17214 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_kargs)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_v_kargs ); |
| 17215 | __Pyx_GIVEREF(__pyx_v_kargs); |
| 17216 | __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL((void*)0)); if (unlikely(!__pyx_t_8)__builtin_expect(!!(!__pyx_t_8), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 857; __pyx_clineno = __LINE__17216; goto __pyx_L1_error;} |
| 17217 | __Pyx_GOTREF(__pyx_t_8); |
| 17218 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17219 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 17220 | __Pyx_DECREF(__pyx_t_8)do { if ( --((PyObject*)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_8)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while ( 0); __pyx_t_8 = 0; |
| 17221 | |
| 17222 | /* "xmmsvalue.pyx":841 |
| 17223 | * |
| 17224 | * class BaseCollection(CollectionWrapper): |
| 17225 | * def __init__(Collection self, int _colltype, **kargs): # <<<<<<<<<<<<<< |
| 17226 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 17227 | * if self.coll == NULL: |
| 17228 | */ |
| 17229 | |
| 17230 | /* function exit code */ |
| 17231 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 17232 | goto __pyx_L0; |
| 17233 | __pyx_L1_error:; |
| 17234 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 17235 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 17236 | __Pyx_XDECREF(__pyx_t_8)do { if ((__pyx_t_8) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_8))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_8)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_8)))); } while (0); } while (0); |
| 17237 | __Pyx_AddTraceback("xmmsvalue.BaseCollection.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17238 | __pyx_r = NULL((void*)0); |
| 17239 | __pyx_L0:; |
| 17240 | __Pyx_XDECREF(__pyx_v_operands)do { if ((__pyx_v_operands) == ((void*)0)) ; else do { if ( -- ((PyObject*)(__pyx_v_operands))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(__pyx_v_operands)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_operands)))); } while (0); } while (0); |
| 17241 | __Pyx_XDECREF(__pyx_v_ids)do { if ((__pyx_v_ids) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_ids))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(__pyx_v_ids)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_ids)))); } while (0); } while (0); |
| 17242 | __Pyx_XGIVEREF(__pyx_r); |
| 17243 | __Pyx_RefNannyFinishContext(); |
| 17244 | return __pyx_r; |
| 17245 | } |
| 17246 | |
| 17247 | /* "xmmsvalue.pyx":860 |
| 17248 | * |
| 17249 | * class Reference(BaseCollection): |
| 17250 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): # <<<<<<<<<<<<<< |
| 17251 | * kargs.update( |
| 17252 | * namespace = kargs.get('namespace', ns), |
| 17253 | */ |
| 17254 | |
| 17255 | /* Python wrapper */ |
| 17256 | static PyObject *__pyx_pw_9xmmsvalue_9Reference_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 17257 | static char __pyx_doc_9xmmsvalue_9Reference___init__[] = "Reference.__init__(Collection self, ref=None, ns='Collections', **kargs)"; |
| 17258 | static PyMethodDef __pyx_mdef_9xmmsvalue_9Reference_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_9Reference_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9Reference___init__)(__pyx_doc_9xmmsvalue_9Reference___init__)}; |
| 17259 | static PyObject *__pyx_pw_9xmmsvalue_9Reference_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 17260 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 17261 | PyObject *__pyx_v_ref = 0; |
| 17262 | PyObject *__pyx_v_ns = 0; |
| 17263 | PyObject *__pyx_v_kargs = 0; |
| 17264 | int __pyx_lineno = 0; |
| 17265 | const char *__pyx_filename = NULL((void*)0); |
| 17266 | int __pyx_clineno = 0; |
| 17267 | PyObject *__pyx_r = 0; |
| 17268 | __Pyx_RefNannyDeclarations |
| 17269 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 17270 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 17271 | __Pyx_GOTREF(__pyx_v_kargs); |
| 17272 | { |
| 17273 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_ref,&__pyx_n_s_ns,0}; |
| 17274 | PyObject* values[3] = {0,0,0}; |
| 17275 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 17276 | values[2] = ((PyObject *)((PyObject*)__pyx_n_s_Collections)); |
| 17277 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 17278 | Py_ssize_t kw_args; |
| 17279 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 17280 | switch (pos_args) { |
| 17281 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 17282 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 17283 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 17284 | case 0: break; |
| 17285 | default: goto __pyx_L5_argtuple_error; |
| 17286 | } |
| 17287 | kw_args = PyDict_Size(__pyx_kwds); |
| 17288 | switch (pos_args) { |
| 17289 | case 0: |
| 17290 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 17291 | else goto __pyx_L5_argtuple_error; |
| 17292 | case 1: |
| 17293 | if (kw_args > 0) { |
| 17294 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ref); |
| 17295 | if (value) { values[1] = value; kw_args--; } |
| 17296 | } |
| 17297 | case 2: |
| 17298 | if (kw_args > 0) { |
| 17299 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ns); |
| 17300 | if (value) { values[2] = value; kw_args--; } |
| 17301 | } |
| 17302 | } |
| 17303 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 17304 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__17304; goto __pyx_L3_error;} |
| 17305 | } |
| 17306 | } else { |
| 17307 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 17308 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 17309 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 17310 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 17311 | break; |
| 17312 | default: goto __pyx_L5_argtuple_error; |
| 17313 | } |
| 17314 | } |
| 17315 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 17316 | __pyx_v_ref = values[1]; |
| 17317 | __pyx_v_ns = values[2]; |
| 17318 | } |
| 17319 | goto __pyx_L4_argument_unpacking_done; |
| 17320 | __pyx_L5_argtuple_error:; |
| 17321 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__17321; goto __pyx_L3_error;} |
| 17322 | __pyx_L3_error:; |
| 17323 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 17324 | __Pyx_AddTraceback("xmmsvalue.Reference.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17325 | __Pyx_RefNannyFinishContext(); |
| 17326 | return NULL((void*)0); |
| 17327 | __pyx_L4_argument_unpacking_done:; |
| 17328 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__17328; goto __pyx_L1_error;} |
| 17329 | __pyx_r = __pyx_pf_9xmmsvalue_9Reference___init__(__pyx_self, __pyx_v_self, __pyx_v_ref, __pyx_v_ns, __pyx_v_kargs); |
| 17330 | |
| 17331 | /* function exit code */ |
| 17332 | goto __pyx_L0; |
| 17333 | __pyx_L1_error:; |
| 17334 | __pyx_r = NULL((void*)0); |
| 17335 | __pyx_L0:; |
| 17336 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 17337 | __Pyx_RefNannyFinishContext(); |
| 17338 | return __pyx_r; |
| 17339 | } |
| 17340 | |
| 17341 | static PyObject *__pyx_pf_9xmmsvalue_9Reference___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ref, PyObject *__pyx_v_ns, PyObject *__pyx_v_kargs) { |
| 17342 | PyObject *__pyx_r = NULL((void*)0); |
| 17343 | __Pyx_RefNannyDeclarations |
| 17344 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 17345 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 17346 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 17347 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 17348 | int __pyx_lineno = 0; |
| 17349 | const char *__pyx_filename = NULL((void*)0); |
| 17350 | int __pyx_clineno = 0; |
| 17351 | __Pyx_RefNannySetupContext("__init__", 0); |
| 17352 | |
| 17353 | /* "xmmsvalue.pyx":861 |
| 17354 | * class Reference(BaseCollection): |
| 17355 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): |
| 17356 | * kargs.update( # <<<<<<<<<<<<<< |
| 17357 | * namespace = kargs.get('namespace', ns), |
| 17358 | * reference = kargs.get('reference', ref) |
| 17359 | */ |
| 17360 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kargs, __pyx_n_s_update); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__17360; goto __pyx_L1_error;} |
| 17361 | __Pyx_GOTREF(__pyx_t_1); |
| 17362 | __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__17362; goto __pyx_L1_error;} |
| 17363 | __Pyx_GOTREF(__pyx_t_2); |
| 17364 | |
| 17365 | /* "xmmsvalue.pyx":862 |
| 17366 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): |
| 17367 | * kargs.update( |
| 17368 | * namespace = kargs.get('namespace', ns), # <<<<<<<<<<<<<< |
| 17369 | * reference = kargs.get('reference', ref) |
| 17370 | * ) |
| 17371 | */ |
| 17372 | __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_namespace, __pyx_v_ns); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__17372; goto __pyx_L1_error;} |
| 17373 | __Pyx_GOTREF(__pyx_t_3); |
| 17374 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_namespace, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__17374; goto __pyx_L1_error;} |
| 17375 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17376 | |
| 17377 | /* "xmmsvalue.pyx":863 |
| 17378 | * kargs.update( |
| 17379 | * namespace = kargs.get('namespace', ns), |
| 17380 | * reference = kargs.get('reference', ref) # <<<<<<<<<<<<<< |
| 17381 | * ) |
| 17382 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_REFERENCE, **kargs) |
| 17383 | */ |
| 17384 | __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_reference, __pyx_v_ref); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 863; __pyx_clineno = __LINE__17384; goto __pyx_L1_error;} |
| 17385 | __Pyx_GOTREF(__pyx_t_3); |
| 17386 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_reference, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__17386; goto __pyx_L1_error;} |
| 17387 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17388 | |
| 17389 | /* "xmmsvalue.pyx":861 |
| 17390 | * class Reference(BaseCollection): |
| 17391 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): |
| 17392 | * kargs.update( # <<<<<<<<<<<<<< |
| 17393 | * namespace = kargs.get('namespace', ns), |
| 17394 | * reference = kargs.get('reference', ref) |
| 17395 | */ |
| 17396 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 861; __pyx_clineno = __LINE__17396; goto __pyx_L1_error;} |
| 17397 | __Pyx_GOTREF(__pyx_t_3); |
| 17398 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 17399 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 17400 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17401 | |
| 17402 | /* "xmmsvalue.pyx":865 |
| 17403 | * reference = kargs.get('reference', ref) |
| 17404 | * ) |
| 17405 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_REFERENCE, **kargs) # <<<<<<<<<<<<<< |
| 17406 | * |
| 17407 | * class Universe(Reference): |
| 17408 | */ |
| 17409 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__17409; goto __pyx_L1_error;} |
| 17410 | __Pyx_GOTREF(__pyx_t_3); |
| 17411 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__17411; goto __pyx_L1_error;} |
| 17412 | __Pyx_GOTREF(__pyx_t_2); |
| 17413 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17414 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_REFERENCE); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__17414; goto __pyx_L1_error;} |
| 17415 | __Pyx_GOTREF(__pyx_t_3); |
| 17416 | __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__17416; goto __pyx_L1_error;} |
| 17417 | __Pyx_GOTREF(__pyx_t_1); |
| 17418 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 17419 | PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 17420 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 17421 | PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3)(((PyTupleObject *)(__pyx_t_1))->ob_item[1] = __pyx_t_3); |
| 17422 | __Pyx_GIVEREF(__pyx_t_3); |
| 17423 | __pyx_t_3 = 0; |
| 17424 | __pyx_t_3 = __pyx_v_kargs; |
| 17425 | __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); |
| 17426 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 865; __pyx_clineno = __LINE__17426; goto __pyx_L1_error;} |
| 17427 | __Pyx_GOTREF(__pyx_t_4); |
| 17428 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 17429 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 17430 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17431 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 17432 | |
| 17433 | /* "xmmsvalue.pyx":860 |
| 17434 | * |
| 17435 | * class Reference(BaseCollection): |
| 17436 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): # <<<<<<<<<<<<<< |
| 17437 | * kargs.update( |
| 17438 | * namespace = kargs.get('namespace', ns), |
| 17439 | */ |
| 17440 | |
| 17441 | /* function exit code */ |
| 17442 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 17443 | goto __pyx_L0; |
| 17444 | __pyx_L1_error:; |
| 17445 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 17446 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 17447 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 17448 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 17449 | __Pyx_AddTraceback("xmmsvalue.Reference.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17450 | __pyx_r = NULL((void*)0); |
| 17451 | __pyx_L0:; |
| 17452 | __Pyx_XGIVEREF(__pyx_r); |
| 17453 | __Pyx_RefNannyFinishContext(); |
| 17454 | return __pyx_r; |
| 17455 | } |
| 17456 | |
| 17457 | /* "xmmsvalue.pyx":868 |
| 17458 | * |
| 17459 | * class Universe(Reference): |
| 17460 | * def __init__(self): # <<<<<<<<<<<<<< |
| 17461 | * Reference.__init__(self, reference = "All Media") |
| 17462 | * |
| 17463 | */ |
| 17464 | |
| 17465 | /* Python wrapper */ |
| 17466 | static PyObject *__pyx_pw_9xmmsvalue_8Universe_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ |
| 17467 | static char __pyx_doc_9xmmsvalue_8Universe___init__[] = "Universe.__init__(self)"; |
| 17468 | static PyMethodDef __pyx_mdef_9xmmsvalue_8Universe_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_8Universe_1__init__, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_8Universe___init__)(__pyx_doc_9xmmsvalue_8Universe___init__)}; |
| 17469 | static PyObject *__pyx_pw_9xmmsvalue_8Universe_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self) { |
| 17470 | PyObject *__pyx_r = 0; |
| 17471 | __Pyx_RefNannyDeclarations |
| 17472 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 17473 | __pyx_r = __pyx_pf_9xmmsvalue_8Universe___init__(__pyx_self, ((PyObject *)__pyx_v_self)); |
| 17474 | |
| 17475 | /* function exit code */ |
| 17476 | __Pyx_RefNannyFinishContext(); |
| 17477 | return __pyx_r; |
| 17478 | } |
| 17479 | |
| 17480 | static PyObject *__pyx_pf_9xmmsvalue_8Universe___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_self) { |
| 17481 | PyObject *__pyx_r = NULL((void*)0); |
| 17482 | __Pyx_RefNannyDeclarations |
| 17483 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 17484 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 17485 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 17486 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 17487 | int __pyx_lineno = 0; |
| 17488 | const char *__pyx_filename = NULL((void*)0); |
| 17489 | int __pyx_clineno = 0; |
| 17490 | __Pyx_RefNannySetupContext("__init__", 0); |
| 17491 | |
| 17492 | /* "xmmsvalue.pyx":869 |
| 17493 | * class Universe(Reference): |
| 17494 | * def __init__(self): |
| 17495 | * Reference.__init__(self, reference = "All Media") # <<<<<<<<<<<<<< |
| 17496 | * |
| 17497 | * def __repr__(self): |
| 17498 | */ |
| 17499 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Reference); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__17499; goto __pyx_L1_error;} |
| 17500 | __Pyx_GOTREF(__pyx_t_1); |
| 17501 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__17501; goto __pyx_L1_error;} |
| 17502 | __Pyx_GOTREF(__pyx_t_2); |
| 17503 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 17504 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__17504; goto __pyx_L1_error;} |
| 17505 | __Pyx_GOTREF(__pyx_t_1); |
| 17506 | __Pyx_INCREF(__pyx_v_self)( ((PyObject*)(__pyx_v_self))->ob_refcnt++); |
| 17507 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_v_self ); |
| 17508 | __Pyx_GIVEREF(__pyx_v_self); |
| 17509 | __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__17509; goto __pyx_L1_error;} |
| 17510 | __Pyx_GOTREF(__pyx_t_3); |
| 17511 | if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_reference, __pyx_kp_s_All_Media) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__17511; goto __pyx_L1_error;} |
| 17512 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__17512; goto __pyx_L1_error;} |
| 17513 | __Pyx_GOTREF(__pyx_t_4); |
| 17514 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 17515 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 17516 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17517 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 17518 | |
| 17519 | /* "xmmsvalue.pyx":868 |
| 17520 | * |
| 17521 | * class Universe(Reference): |
| 17522 | * def __init__(self): # <<<<<<<<<<<<<< |
| 17523 | * Reference.__init__(self, reference = "All Media") |
| 17524 | * |
| 17525 | */ |
| 17526 | |
| 17527 | /* function exit code */ |
| 17528 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 17529 | goto __pyx_L0; |
| 17530 | __pyx_L1_error:; |
| 17531 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 17532 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 17533 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 17534 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 17535 | __Pyx_AddTraceback("xmmsvalue.Universe.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17536 | __pyx_r = NULL((void*)0); |
| 17537 | __pyx_L0:; |
| 17538 | __Pyx_XGIVEREF(__pyx_r); |
| 17539 | __Pyx_RefNannyFinishContext(); |
| 17540 | return __pyx_r; |
| 17541 | } |
| 17542 | |
| 17543 | /* "xmmsvalue.pyx":871 |
| 17544 | * Reference.__init__(self, reference = "All Media") |
| 17545 | * |
| 17546 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 17547 | * return "%s()" % self.__class__.__name__ |
| 17548 | * |
| 17549 | */ |
| 17550 | |
| 17551 | /* Python wrapper */ |
| 17552 | static PyObject *__pyx_pw_9xmmsvalue_8Universe_3__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ |
| 17553 | static char __pyx_doc_9xmmsvalue_8Universe_2__repr__[] = "Universe.__repr__(self)"; |
| 17554 | static PyMethodDef __pyx_mdef_9xmmsvalue_8Universe_3__repr__ = {__Pyx_NAMESTR("__repr__")("__repr__"), (PyCFunction)__pyx_pw_9xmmsvalue_8Universe_3__repr__, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_8Universe_2__repr__)(__pyx_doc_9xmmsvalue_8Universe_2__repr__)}; |
| 17555 | static PyObject *__pyx_pw_9xmmsvalue_8Universe_3__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { |
| 17556 | PyObject *__pyx_r = 0; |
| 17557 | __Pyx_RefNannyDeclarations |
| 17558 | __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); |
| 17559 | __pyx_r = __pyx_pf_9xmmsvalue_8Universe_2__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); |
| 17560 | |
| 17561 | /* function exit code */ |
| 17562 | __Pyx_RefNannyFinishContext(); |
| 17563 | return __pyx_r; |
| 17564 | } |
| 17565 | |
| 17566 | static PyObject *__pyx_pf_9xmmsvalue_8Universe_2__repr__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_self) { |
| 17567 | PyObject *__pyx_r = NULL((void*)0); |
| 17568 | __Pyx_RefNannyDeclarations |
| 17569 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 17570 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 17571 | int __pyx_lineno = 0; |
| 17572 | const char *__pyx_filename = NULL((void*)0); |
| 17573 | int __pyx_clineno = 0; |
| 17574 | __Pyx_RefNannySetupContext("__repr__", 0); |
| 17575 | |
| 17576 | /* "xmmsvalue.pyx":872 |
| 17577 | * |
| 17578 | * def __repr__(self): |
| 17579 | * return "%s()" % self.__class__.__name__ # <<<<<<<<<<<<<< |
| 17580 | * |
| 17581 | * class FilterCollection(BaseCollection): |
| 17582 | */ |
| 17583 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 17584 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_class); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__17584; goto __pyx_L1_error;} |
| 17585 | __Pyx_GOTREF(__pyx_t_1); |
| 17586 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_name); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__17586; goto __pyx_L1_error;} |
| 17587 | __Pyx_GOTREF(__pyx_t_2); |
| 17588 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 17589 | __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_s, __pyx_t_2)PyString_Format(__pyx_kp_s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__17589; goto __pyx_L1_error;} |
| 17590 | __Pyx_GOTREF(__pyx_t_1); |
| 17591 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 17592 | __pyx_r = __pyx_t_1; |
| 17593 | __pyx_t_1 = 0; |
| 17594 | goto __pyx_L0; |
| 17595 | |
| 17596 | /* "xmmsvalue.pyx":871 |
| 17597 | * Reference.__init__(self, reference = "All Media") |
| 17598 | * |
| 17599 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 17600 | * return "%s()" % self.__class__.__name__ |
| 17601 | * |
| 17602 | */ |
| 17603 | |
| 17604 | /* function exit code */ |
| 17605 | __pyx_L1_error:; |
| 17606 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 17607 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 17608 | __Pyx_AddTraceback("xmmsvalue.Universe.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17609 | __pyx_r = NULL((void*)0); |
| 17610 | __pyx_L0:; |
| 17611 | __Pyx_XGIVEREF(__pyx_r); |
| 17612 | __Pyx_RefNannyFinishContext(); |
| 17613 | return __pyx_r; |
| 17614 | } |
| 17615 | |
| 17616 | /* "xmmsvalue.pyx":875 |
| 17617 | * |
| 17618 | * class FilterCollection(BaseCollection): |
| 17619 | * def __init__(Collection self, _operation, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 17620 | * if 'operands' in kargs: |
| 17621 | * operands = kargs |
| 17622 | */ |
| 17623 | |
| 17624 | /* Python wrapper */ |
| 17625 | static PyObject *__pyx_pw_9xmmsvalue_16FilterCollection_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 17626 | static char __pyx_doc_9xmmsvalue_16FilterCollection___init__[] = "FilterCollection.__init__(Collection self, _operation, parent=None, **kargs)"; |
| 17627 | static PyMethodDef __pyx_mdef_9xmmsvalue_16FilterCollection_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_16FilterCollection_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_16FilterCollection___init__)(__pyx_doc_9xmmsvalue_16FilterCollection___init__)}; |
| 17628 | static PyObject *__pyx_pw_9xmmsvalue_16FilterCollection_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 17629 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 17630 | PyObject *__pyx_v__operation = 0; |
| 17631 | PyObject *__pyx_v_parent = 0; |
| 17632 | PyObject *__pyx_v_kargs = 0; |
| 17633 | int __pyx_lineno = 0; |
| 17634 | const char *__pyx_filename = NULL((void*)0); |
| 17635 | int __pyx_clineno = 0; |
| 17636 | PyObject *__pyx_r = 0; |
| 17637 | __Pyx_RefNannyDeclarations |
| 17638 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 17639 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 17640 | __Pyx_GOTREF(__pyx_v_kargs); |
| 17641 | { |
| 17642 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_operation,&__pyx_n_s_parent,0}; |
| 17643 | PyObject* values[3] = {0,0,0}; |
| 17644 | values[2] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 17645 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 17646 | Py_ssize_t kw_args; |
| 17647 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 17648 | switch (pos_args) { |
| 17649 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 17650 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 17651 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 17652 | case 0: break; |
| 17653 | default: goto __pyx_L5_argtuple_error; |
| 17654 | } |
| 17655 | kw_args = PyDict_Size(__pyx_kwds); |
| 17656 | switch (pos_args) { |
| 17657 | case 0: |
| 17658 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 17659 | else goto __pyx_L5_argtuple_error; |
| 17660 | case 1: |
| 17661 | if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operation)) != 0)__builtin_expect(!!((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operation )) != 0), 1)) kw_args--; |
| 17662 | else { |
| 17663 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__17663; goto __pyx_L3_error;} |
| 17664 | } |
| 17665 | case 2: |
| 17666 | if (kw_args > 0) { |
| 17667 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 17668 | if (value) { values[2] = value; kw_args--; } |
| 17669 | } |
| 17670 | } |
| 17671 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 17672 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__17672; goto __pyx_L3_error;} |
| 17673 | } |
| 17674 | } else { |
| 17675 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 17676 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 17677 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 17678 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 17679 | break; |
| 17680 | default: goto __pyx_L5_argtuple_error; |
| 17681 | } |
| 17682 | } |
| 17683 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 17684 | __pyx_v__operation = values[1]; |
| 17685 | __pyx_v_parent = values[2]; |
| 17686 | } |
| 17687 | goto __pyx_L4_argument_unpacking_done; |
| 17688 | __pyx_L5_argtuple_error:; |
| 17689 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__17689; goto __pyx_L3_error;} |
| 17690 | __pyx_L3_error:; |
| 17691 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 17692 | __Pyx_AddTraceback("xmmsvalue.FilterCollection.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17693 | __Pyx_RefNannyFinishContext(); |
| 17694 | return NULL((void*)0); |
| 17695 | __pyx_L4_argument_unpacking_done:; |
| 17696 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__17696; goto __pyx_L1_error;} |
| 17697 | __pyx_r = __pyx_pf_9xmmsvalue_16FilterCollection___init__(__pyx_self, __pyx_v_self, __pyx_v__operation, __pyx_v_parent, __pyx_v_kargs); |
| 17698 | |
| 17699 | /* function exit code */ |
| 17700 | goto __pyx_L0; |
| 17701 | __pyx_L1_error:; |
| 17702 | __pyx_r = NULL((void*)0); |
| 17703 | __pyx_L0:; |
| 17704 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 17705 | __Pyx_RefNannyFinishContext(); |
| 17706 | return __pyx_r; |
| 17707 | } |
| 17708 | |
| 17709 | static PyObject *__pyx_pf_9xmmsvalue_16FilterCollection___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v__operation, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 17710 | PyObject *__pyx_v_operands = NULL((void*)0); |
| 17711 | PyObject *__pyx_r = NULL((void*)0); |
| 17712 | __Pyx_RefNannyDeclarations |
| 17713 | int __pyx_t_1; |
| 17714 | int __pyx_t_2; |
| 17715 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 17716 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 17717 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 17718 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 17719 | int __pyx_lineno = 0; |
| 17720 | const char *__pyx_filename = NULL((void*)0); |
| 17721 | int __pyx_clineno = 0; |
| 17722 | __Pyx_RefNannySetupContext("__init__", 0); |
| 17723 | |
| 17724 | /* "xmmsvalue.pyx":876 |
| 17725 | * class FilterCollection(BaseCollection): |
| 17726 | * def __init__(Collection self, _operation, parent = None, **kargs): |
| 17727 | * if 'operands' in kargs: # <<<<<<<<<<<<<< |
| 17728 | * operands = kargs |
| 17729 | * elif parent is None: |
| 17730 | */ |
| 17731 | __pyx_t_1 = (__Pyx_PyDict_Contains(__pyx_n_s_operands, __pyx_v_kargs, Py_EQ2)); if (unlikely(__pyx_t_1 < 0)__builtin_expect(!!(__pyx_t_1 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 876; __pyx_clineno = __LINE__17731; goto __pyx_L1_error;} |
| 17732 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 17733 | if (__pyx_t_2) { |
| 17734 | |
| 17735 | /* "xmmsvalue.pyx":877 |
| 17736 | * def __init__(Collection self, _operation, parent = None, **kargs): |
| 17737 | * if 'operands' in kargs: |
| 17738 | * operands = kargs # <<<<<<<<<<<<<< |
| 17739 | * elif parent is None: |
| 17740 | * operands = [Universe()] |
| 17741 | */ |
| 17742 | __Pyx_INCREF(__pyx_v_kargs)( ((PyObject*)(__pyx_v_kargs))->ob_refcnt++); |
| 17743 | __pyx_v_operands = __pyx_v_kargs; |
| 17744 | goto __pyx_L3; |
| 17745 | } |
| 17746 | |
| 17747 | /* "xmmsvalue.pyx":878 |
| 17748 | * if 'operands' in kargs: |
| 17749 | * operands = kargs |
| 17750 | * elif parent is None: # <<<<<<<<<<<<<< |
| 17751 | * operands = [Universe()] |
| 17752 | * else: |
| 17753 | */ |
| 17754 | __pyx_t_2 = (__pyx_v_parent == Py_None(&_Py_NoneStruct)); |
| 17755 | __pyx_t_1 = (__pyx_t_2 != 0); |
| 17756 | if (__pyx_t_1) { |
| 17757 | |
| 17758 | /* "xmmsvalue.pyx":879 |
| 17759 | * operands = kargs |
| 17760 | * elif parent is None: |
| 17761 | * operands = [Universe()] # <<<<<<<<<<<<<< |
| 17762 | * else: |
| 17763 | * operands = [parent] |
| 17764 | */ |
| 17765 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Universe); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; __pyx_clineno = __LINE__17765; goto __pyx_L1_error;} |
| 17766 | __Pyx_GOTREF(__pyx_t_3); |
| 17767 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; __pyx_clineno = __LINE__17767; goto __pyx_L1_error;} |
| 17768 | __Pyx_GOTREF(__pyx_t_4); |
| 17769 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17770 | __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 879; __pyx_clineno = __LINE__17770; goto __pyx_L1_error;} |
| 17771 | __Pyx_GOTREF(__pyx_t_3); |
| 17772 | PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_4)(((PyListObject *)(__pyx_t_3))->ob_item[0] = (__pyx_t_4)); |
| 17773 | __Pyx_GIVEREF(__pyx_t_4); |
| 17774 | __pyx_t_4 = 0; |
| 17775 | __pyx_v_operands = __pyx_t_3; |
| 17776 | __pyx_t_3 = 0; |
| 17777 | goto __pyx_L3; |
| 17778 | } |
| 17779 | /*else*/ { |
| 17780 | |
| 17781 | /* "xmmsvalue.pyx":881 |
| 17782 | * operands = [Universe()] |
| 17783 | * else: |
| 17784 | * operands = [parent] # <<<<<<<<<<<<<< |
| 17785 | * |
| 17786 | * BaseCollection.__init__(self, _operation, |
| 17787 | */ |
| 17788 | __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 881; __pyx_clineno = __LINE__17788; goto __pyx_L1_error;} |
| 17789 | __Pyx_GOTREF(__pyx_t_3); |
| 17790 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 17791 | PyList_SET_ITEM(__pyx_t_3, 0, __pyx_v_parent)(((PyListObject *)(__pyx_t_3))->ob_item[0] = (__pyx_v_parent )); |
| 17792 | __Pyx_GIVEREF(__pyx_v_parent); |
| 17793 | __pyx_v_operands = __pyx_t_3; |
| 17794 | __pyx_t_3 = 0; |
| 17795 | } |
| 17796 | __pyx_L3:; |
| 17797 | |
| 17798 | /* "xmmsvalue.pyx":883 |
| 17799 | * operands = [parent] |
| 17800 | * |
| 17801 | * BaseCollection.__init__(self, _operation, # <<<<<<<<<<<<<< |
| 17802 | * operands = operands, |
| 17803 | * **kargs) |
| 17804 | */ |
| 17805 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; __pyx_clineno = __LINE__17805; goto __pyx_L1_error;} |
| 17806 | __Pyx_GOTREF(__pyx_t_3); |
| 17807 | __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; __pyx_clineno = __LINE__17807; goto __pyx_L1_error;} |
| 17808 | __Pyx_GOTREF(__pyx_t_4); |
| 17809 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17810 | __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; __pyx_clineno = __LINE__17810; goto __pyx_L1_error;} |
| 17811 | __Pyx_GOTREF(__pyx_t_3); |
| 17812 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 17813 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 17814 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 17815 | __Pyx_INCREF(__pyx_v__operation)( ((PyObject*)(__pyx_v__operation))->ob_refcnt++); |
| 17816 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v__operation)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_v__operation ); |
| 17817 | __Pyx_GIVEREF(__pyx_v__operation); |
| 17818 | |
| 17819 | /* "xmmsvalue.pyx":885 |
| 17820 | * BaseCollection.__init__(self, _operation, |
| 17821 | * operands = operands, |
| 17822 | * **kargs) # <<<<<<<<<<<<<< |
| 17823 | * |
| 17824 | * class Equals(FilterCollection): |
| 17825 | */ |
| 17826 | __pyx_t_5 = PyDict_Copy(__pyx_v_kargs); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; __pyx_clineno = __LINE__17826; goto __pyx_L1_error;} |
| 17827 | __Pyx_GOTREF(__pyx_t_5); |
| 17828 | |
| 17829 | /* "xmmsvalue.pyx":884 |
| 17830 | * |
| 17831 | * BaseCollection.__init__(self, _operation, |
| 17832 | * operands = operands, # <<<<<<<<<<<<<< |
| 17833 | * **kargs) |
| 17834 | * |
| 17835 | */ |
| 17836 | if (unlikely(PyDict_GetItem(__pyx_t_5, __pyx_n_s_operands))__builtin_expect(!!(PyDict_GetItem(__pyx_t_5, __pyx_n_s_operands )), 0)) { |
| 17837 | __Pyx_RaiseDoubleKeywordsError("function", __pyx_n_s_operands); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; __pyx_clineno = __LINE__17837; goto __pyx_L1_error;} |
| 17838 | } |
| 17839 | if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_operands, __pyx_v_operands) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; __pyx_clineno = __LINE__17839; goto __pyx_L1_error;} |
| 17840 | |
| 17841 | /* "xmmsvalue.pyx":883 |
| 17842 | * operands = [parent] |
| 17843 | * |
| 17844 | * BaseCollection.__init__(self, _operation, # <<<<<<<<<<<<<< |
| 17845 | * operands = operands, |
| 17846 | * **kargs) |
| 17847 | */ |
| 17848 | __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 883; __pyx_clineno = __LINE__17848; goto __pyx_L1_error;} |
| 17849 | __Pyx_GOTREF(__pyx_t_6); |
| 17850 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 17851 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 17852 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 17853 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 17854 | |
| 17855 | /* "xmmsvalue.pyx":875 |
| 17856 | * |
| 17857 | * class FilterCollection(BaseCollection): |
| 17858 | * def __init__(Collection self, _operation, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 17859 | * if 'operands' in kargs: |
| 17860 | * operands = kargs |
| 17861 | */ |
| 17862 | |
| 17863 | /* function exit code */ |
| 17864 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 17865 | goto __pyx_L0; |
| 17866 | __pyx_L1_error:; |
| 17867 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 17868 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 17869 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 17870 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 17871 | __Pyx_AddTraceback("xmmsvalue.FilterCollection.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17872 | __pyx_r = NULL((void*)0); |
| 17873 | __pyx_L0:; |
| 17874 | __Pyx_XDECREF(__pyx_v_operands)do { if ((__pyx_v_operands) == ((void*)0)) ; else do { if ( -- ((PyObject*)(__pyx_v_operands))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(__pyx_v_operands)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_operands)))); } while (0); } while (0); |
| 17875 | __Pyx_XGIVEREF(__pyx_r); |
| 17876 | __Pyx_RefNannyFinishContext(); |
| 17877 | return __pyx_r; |
| 17878 | } |
| 17879 | |
| 17880 | /* "xmmsvalue.pyx":888 |
| 17881 | * |
| 17882 | * class Equals(FilterCollection): |
| 17883 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 17884 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) |
| 17885 | * |
| 17886 | */ |
| 17887 | |
| 17888 | /* Python wrapper */ |
| 17889 | static PyObject *__pyx_pw_9xmmsvalue_6Equals_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 17890 | static char __pyx_doc_9xmmsvalue_6Equals___init__[] = "Equals.__init__(Collection self, parent=None, **kargs)"; |
| 17891 | static PyMethodDef __pyx_mdef_9xmmsvalue_6Equals_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_6Equals_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_6Equals___init__)(__pyx_doc_9xmmsvalue_6Equals___init__)}; |
| 17892 | static PyObject *__pyx_pw_9xmmsvalue_6Equals_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 17893 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 17894 | PyObject *__pyx_v_parent = 0; |
| 17895 | PyObject *__pyx_v_kargs = 0; |
| 17896 | int __pyx_lineno = 0; |
| 17897 | const char *__pyx_filename = NULL((void*)0); |
| 17898 | int __pyx_clineno = 0; |
| 17899 | PyObject *__pyx_r = 0; |
| 17900 | __Pyx_RefNannyDeclarations |
| 17901 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 17902 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 17903 | __Pyx_GOTREF(__pyx_v_kargs); |
| 17904 | { |
| 17905 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 17906 | PyObject* values[2] = {0,0}; |
| 17907 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 17908 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 17909 | Py_ssize_t kw_args; |
| 17910 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 17911 | switch (pos_args) { |
| 17912 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 17913 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 17914 | case 0: break; |
| 17915 | default: goto __pyx_L5_argtuple_error; |
| 17916 | } |
| 17917 | kw_args = PyDict_Size(__pyx_kwds); |
| 17918 | switch (pos_args) { |
| 17919 | case 0: |
| 17920 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 17921 | else goto __pyx_L5_argtuple_error; |
| 17922 | case 1: |
| 17923 | if (kw_args > 0) { |
| 17924 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 17925 | if (value) { values[1] = value; kw_args--; } |
| 17926 | } |
| 17927 | } |
| 17928 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 17929 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__17929; goto __pyx_L3_error;} |
| 17930 | } |
| 17931 | } else { |
| 17932 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 17933 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 17934 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 17935 | break; |
| 17936 | default: goto __pyx_L5_argtuple_error; |
| 17937 | } |
| 17938 | } |
| 17939 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 17940 | __pyx_v_parent = values[1]; |
| 17941 | } |
| 17942 | goto __pyx_L4_argument_unpacking_done; |
| 17943 | __pyx_L5_argtuple_error:; |
| 17944 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__17944; goto __pyx_L3_error;} |
| 17945 | __pyx_L3_error:; |
| 17946 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 17947 | __Pyx_AddTraceback("xmmsvalue.Equals.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 17948 | __Pyx_RefNannyFinishContext(); |
| 17949 | return NULL((void*)0); |
| 17950 | __pyx_L4_argument_unpacking_done:; |
| 17951 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__17951; goto __pyx_L1_error;} |
Value stored to '__pyx_filename' is never read | |
| 17952 | __pyx_r = __pyx_pf_9xmmsvalue_6Equals___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 17953 | |
| 17954 | /* function exit code */ |
| 17955 | goto __pyx_L0; |
| 17956 | __pyx_L1_error:; |
| 17957 | __pyx_r = NULL((void*)0); |
| 17958 | __pyx_L0:; |
| 17959 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 17960 | __Pyx_RefNannyFinishContext(); |
| 17961 | return __pyx_r; |
| 17962 | } |
| 17963 | |
| 17964 | static PyObject *__pyx_pf_9xmmsvalue_6Equals___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 17965 | PyObject *__pyx_r = NULL((void*)0); |
| 17966 | __Pyx_RefNannyDeclarations |
| 17967 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 17968 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 17969 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 17970 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 17971 | int __pyx_lineno = 0; |
| 17972 | const char *__pyx_filename = NULL((void*)0); |
| 17973 | int __pyx_clineno = 0; |
| 17974 | __Pyx_RefNannySetupContext("__init__", 0); |
| 17975 | |
| 17976 | /* "xmmsvalue.pyx":889 |
| 17977 | * class Equals(FilterCollection): |
| 17978 | * def __init__(Collection self, parent = None, **kargs): |
| 17979 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) # <<<<<<<<<<<<<< |
| 17980 | * |
| 17981 | * class NotEqual(FilterCollection): |
| 17982 | */ |
| 17983 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; __pyx_clineno = __LINE__17983; goto __pyx_L1_error;} |
| 17984 | __Pyx_GOTREF(__pyx_t_1); |
| 17985 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; __pyx_clineno = __LINE__17985; goto __pyx_L1_error;} |
| 17986 | __Pyx_GOTREF(__pyx_t_2); |
| 17987 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 17988 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_EQUALS); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; __pyx_clineno = __LINE__17988; goto __pyx_L1_error;} |
| 17989 | __Pyx_GOTREF(__pyx_t_1); |
| 17990 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; __pyx_clineno = __LINE__17990; goto __pyx_L1_error;} |
| 17991 | __Pyx_GOTREF(__pyx_t_3); |
| 17992 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 17993 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 17994 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 17995 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 17996 | __Pyx_GIVEREF(__pyx_t_1); |
| 17997 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 17998 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 17999 | __Pyx_GIVEREF(__pyx_v_parent); |
| 18000 | __pyx_t_1 = 0; |
| 18001 | __pyx_t_1 = __pyx_v_kargs; |
| 18002 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 18003 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 889; __pyx_clineno = __LINE__18003; goto __pyx_L1_error;} |
| 18004 | __Pyx_GOTREF(__pyx_t_4); |
| 18005 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 18006 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 18007 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18008 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 18009 | |
| 18010 | /* "xmmsvalue.pyx":888 |
| 18011 | * |
| 18012 | * class Equals(FilterCollection): |
| 18013 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18014 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) |
| 18015 | * |
| 18016 | */ |
| 18017 | |
| 18018 | /* function exit code */ |
| 18019 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 18020 | goto __pyx_L0; |
| 18021 | __pyx_L1_error:; |
| 18022 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 18023 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 18024 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 18025 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 18026 | __Pyx_AddTraceback("xmmsvalue.Equals.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18027 | __pyx_r = NULL((void*)0); |
| 18028 | __pyx_L0:; |
| 18029 | __Pyx_XGIVEREF(__pyx_r); |
| 18030 | __Pyx_RefNannyFinishContext(); |
| 18031 | return __pyx_r; |
| 18032 | } |
| 18033 | |
| 18034 | /* "xmmsvalue.pyx":892 |
| 18035 | * |
| 18036 | * class NotEqual(FilterCollection): |
| 18037 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18038 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) |
| 18039 | * |
| 18040 | */ |
| 18041 | |
| 18042 | /* Python wrapper */ |
| 18043 | static PyObject *__pyx_pw_9xmmsvalue_8NotEqual_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 18044 | static char __pyx_doc_9xmmsvalue_8NotEqual___init__[] = "NotEqual.__init__(Collection self, parent=None, **kargs)"; |
| 18045 | static PyMethodDef __pyx_mdef_9xmmsvalue_8NotEqual_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_8NotEqual_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_8NotEqual___init__)(__pyx_doc_9xmmsvalue_8NotEqual___init__)}; |
| 18046 | static PyObject *__pyx_pw_9xmmsvalue_8NotEqual_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 18047 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 18048 | PyObject *__pyx_v_parent = 0; |
| 18049 | PyObject *__pyx_v_kargs = 0; |
| 18050 | int __pyx_lineno = 0; |
| 18051 | const char *__pyx_filename = NULL((void*)0); |
| 18052 | int __pyx_clineno = 0; |
| 18053 | PyObject *__pyx_r = 0; |
| 18054 | __Pyx_RefNannyDeclarations |
| 18055 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 18056 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 18057 | __Pyx_GOTREF(__pyx_v_kargs); |
| 18058 | { |
| 18059 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 18060 | PyObject* values[2] = {0,0}; |
| 18061 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 18062 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 18063 | Py_ssize_t kw_args; |
| 18064 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 18065 | switch (pos_args) { |
| 18066 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18067 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18068 | case 0: break; |
| 18069 | default: goto __pyx_L5_argtuple_error; |
| 18070 | } |
| 18071 | kw_args = PyDict_Size(__pyx_kwds); |
| 18072 | switch (pos_args) { |
| 18073 | case 0: |
| 18074 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 18075 | else goto __pyx_L5_argtuple_error; |
| 18076 | case 1: |
| 18077 | if (kw_args > 0) { |
| 18078 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 18079 | if (value) { values[1] = value; kw_args--; } |
| 18080 | } |
| 18081 | } |
| 18082 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 18083 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__18083; goto __pyx_L3_error;} |
| 18084 | } |
| 18085 | } else { |
| 18086 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 18087 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18088 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18089 | break; |
| 18090 | default: goto __pyx_L5_argtuple_error; |
| 18091 | } |
| 18092 | } |
| 18093 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 18094 | __pyx_v_parent = values[1]; |
| 18095 | } |
| 18096 | goto __pyx_L4_argument_unpacking_done; |
| 18097 | __pyx_L5_argtuple_error:; |
| 18098 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__18098; goto __pyx_L3_error;} |
| 18099 | __pyx_L3_error:; |
| 18100 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 18101 | __Pyx_AddTraceback("xmmsvalue.NotEqual.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18102 | __Pyx_RefNannyFinishContext(); |
| 18103 | return NULL((void*)0); |
| 18104 | __pyx_L4_argument_unpacking_done:; |
| 18105 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__18105; goto __pyx_L1_error;} |
| 18106 | __pyx_r = __pyx_pf_9xmmsvalue_8NotEqual___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 18107 | |
| 18108 | /* function exit code */ |
| 18109 | goto __pyx_L0; |
| 18110 | __pyx_L1_error:; |
| 18111 | __pyx_r = NULL((void*)0); |
| 18112 | __pyx_L0:; |
| 18113 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 18114 | __Pyx_RefNannyFinishContext(); |
| 18115 | return __pyx_r; |
| 18116 | } |
| 18117 | |
| 18118 | static PyObject *__pyx_pf_9xmmsvalue_8NotEqual___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 18119 | PyObject *__pyx_r = NULL((void*)0); |
| 18120 | __Pyx_RefNannyDeclarations |
| 18121 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 18122 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 18123 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 18124 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 18125 | int __pyx_lineno = 0; |
| 18126 | const char *__pyx_filename = NULL((void*)0); |
| 18127 | int __pyx_clineno = 0; |
| 18128 | __Pyx_RefNannySetupContext("__init__", 0); |
| 18129 | |
| 18130 | /* "xmmsvalue.pyx":893 |
| 18131 | * class NotEqual(FilterCollection): |
| 18132 | * def __init__(Collection self, parent = None, **kargs): |
| 18133 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) # <<<<<<<<<<<<<< |
| 18134 | * |
| 18135 | * class Smaller(FilterCollection): |
| 18136 | */ |
| 18137 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; __pyx_clineno = __LINE__18137; goto __pyx_L1_error;} |
| 18138 | __Pyx_GOTREF(__pyx_t_1); |
| 18139 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; __pyx_clineno = __LINE__18139; goto __pyx_L1_error;} |
| 18140 | __Pyx_GOTREF(__pyx_t_2); |
| 18141 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18142 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_NOTEQUAL); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; __pyx_clineno = __LINE__18142; goto __pyx_L1_error;} |
| 18143 | __Pyx_GOTREF(__pyx_t_1); |
| 18144 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; __pyx_clineno = __LINE__18144; goto __pyx_L1_error;} |
| 18145 | __Pyx_GOTREF(__pyx_t_3); |
| 18146 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 18147 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 18148 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 18149 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 18150 | __Pyx_GIVEREF(__pyx_t_1); |
| 18151 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 18152 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 18153 | __Pyx_GIVEREF(__pyx_v_parent); |
| 18154 | __pyx_t_1 = 0; |
| 18155 | __pyx_t_1 = __pyx_v_kargs; |
| 18156 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 18157 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 893; __pyx_clineno = __LINE__18157; goto __pyx_L1_error;} |
| 18158 | __Pyx_GOTREF(__pyx_t_4); |
| 18159 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 18160 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 18161 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18162 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 18163 | |
| 18164 | /* "xmmsvalue.pyx":892 |
| 18165 | * |
| 18166 | * class NotEqual(FilterCollection): |
| 18167 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18168 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) |
| 18169 | * |
| 18170 | */ |
| 18171 | |
| 18172 | /* function exit code */ |
| 18173 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 18174 | goto __pyx_L0; |
| 18175 | __pyx_L1_error:; |
| 18176 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 18177 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 18178 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 18179 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 18180 | __Pyx_AddTraceback("xmmsvalue.NotEqual.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18181 | __pyx_r = NULL((void*)0); |
| 18182 | __pyx_L0:; |
| 18183 | __Pyx_XGIVEREF(__pyx_r); |
| 18184 | __Pyx_RefNannyFinishContext(); |
| 18185 | return __pyx_r; |
| 18186 | } |
| 18187 | |
| 18188 | /* "xmmsvalue.pyx":896 |
| 18189 | * |
| 18190 | * class Smaller(FilterCollection): |
| 18191 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18192 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) |
| 18193 | * |
| 18194 | */ |
| 18195 | |
| 18196 | /* Python wrapper */ |
| 18197 | static PyObject *__pyx_pw_9xmmsvalue_7Smaller_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 18198 | static char __pyx_doc_9xmmsvalue_7Smaller___init__[] = "Smaller.__init__(Collection self, parent=None, **kargs)"; |
| 18199 | static PyMethodDef __pyx_mdef_9xmmsvalue_7Smaller_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_7Smaller_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_7Smaller___init__)(__pyx_doc_9xmmsvalue_7Smaller___init__)}; |
| 18200 | static PyObject *__pyx_pw_9xmmsvalue_7Smaller_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 18201 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 18202 | PyObject *__pyx_v_parent = 0; |
| 18203 | PyObject *__pyx_v_kargs = 0; |
| 18204 | int __pyx_lineno = 0; |
| 18205 | const char *__pyx_filename = NULL((void*)0); |
| 18206 | int __pyx_clineno = 0; |
| 18207 | PyObject *__pyx_r = 0; |
| 18208 | __Pyx_RefNannyDeclarations |
| 18209 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 18210 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 18211 | __Pyx_GOTREF(__pyx_v_kargs); |
| 18212 | { |
| 18213 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 18214 | PyObject* values[2] = {0,0}; |
| 18215 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 18216 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 18217 | Py_ssize_t kw_args; |
| 18218 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 18219 | switch (pos_args) { |
| 18220 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18221 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18222 | case 0: break; |
| 18223 | default: goto __pyx_L5_argtuple_error; |
| 18224 | } |
| 18225 | kw_args = PyDict_Size(__pyx_kwds); |
| 18226 | switch (pos_args) { |
| 18227 | case 0: |
| 18228 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 18229 | else goto __pyx_L5_argtuple_error; |
| 18230 | case 1: |
| 18231 | if (kw_args > 0) { |
| 18232 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 18233 | if (value) { values[1] = value; kw_args--; } |
| 18234 | } |
| 18235 | } |
| 18236 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 18237 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__18237; goto __pyx_L3_error;} |
| 18238 | } |
| 18239 | } else { |
| 18240 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 18241 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18242 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18243 | break; |
| 18244 | default: goto __pyx_L5_argtuple_error; |
| 18245 | } |
| 18246 | } |
| 18247 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 18248 | __pyx_v_parent = values[1]; |
| 18249 | } |
| 18250 | goto __pyx_L4_argument_unpacking_done; |
| 18251 | __pyx_L5_argtuple_error:; |
| 18252 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__18252; goto __pyx_L3_error;} |
| 18253 | __pyx_L3_error:; |
| 18254 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 18255 | __Pyx_AddTraceback("xmmsvalue.Smaller.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18256 | __Pyx_RefNannyFinishContext(); |
| 18257 | return NULL((void*)0); |
| 18258 | __pyx_L4_argument_unpacking_done:; |
| 18259 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__18259; goto __pyx_L1_error;} |
| 18260 | __pyx_r = __pyx_pf_9xmmsvalue_7Smaller___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 18261 | |
| 18262 | /* function exit code */ |
| 18263 | goto __pyx_L0; |
| 18264 | __pyx_L1_error:; |
| 18265 | __pyx_r = NULL((void*)0); |
| 18266 | __pyx_L0:; |
| 18267 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 18268 | __Pyx_RefNannyFinishContext(); |
| 18269 | return __pyx_r; |
| 18270 | } |
| 18271 | |
| 18272 | static PyObject *__pyx_pf_9xmmsvalue_7Smaller___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 18273 | PyObject *__pyx_r = NULL((void*)0); |
| 18274 | __Pyx_RefNannyDeclarations |
| 18275 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 18276 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 18277 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 18278 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 18279 | int __pyx_lineno = 0; |
| 18280 | const char *__pyx_filename = NULL((void*)0); |
| 18281 | int __pyx_clineno = 0; |
| 18282 | __Pyx_RefNannySetupContext("__init__", 0); |
| 18283 | |
| 18284 | /* "xmmsvalue.pyx":897 |
| 18285 | * class Smaller(FilterCollection): |
| 18286 | * def __init__(Collection self, parent = None, **kargs): |
| 18287 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) # <<<<<<<<<<<<<< |
| 18288 | * |
| 18289 | * class SmallerEqual(FilterCollection): |
| 18290 | */ |
| 18291 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; __pyx_clineno = __LINE__18291; goto __pyx_L1_error;} |
| 18292 | __Pyx_GOTREF(__pyx_t_1); |
| 18293 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; __pyx_clineno = __LINE__18293; goto __pyx_L1_error;} |
| 18294 | __Pyx_GOTREF(__pyx_t_2); |
| 18295 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18296 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_SMALLER); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; __pyx_clineno = __LINE__18296; goto __pyx_L1_error;} |
| 18297 | __Pyx_GOTREF(__pyx_t_1); |
| 18298 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; __pyx_clineno = __LINE__18298; goto __pyx_L1_error;} |
| 18299 | __Pyx_GOTREF(__pyx_t_3); |
| 18300 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 18301 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 18302 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 18303 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 18304 | __Pyx_GIVEREF(__pyx_t_1); |
| 18305 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 18306 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 18307 | __Pyx_GIVEREF(__pyx_v_parent); |
| 18308 | __pyx_t_1 = 0; |
| 18309 | __pyx_t_1 = __pyx_v_kargs; |
| 18310 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 18311 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 897; __pyx_clineno = __LINE__18311; goto __pyx_L1_error;} |
| 18312 | __Pyx_GOTREF(__pyx_t_4); |
| 18313 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 18314 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 18315 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18316 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 18317 | |
| 18318 | /* "xmmsvalue.pyx":896 |
| 18319 | * |
| 18320 | * class Smaller(FilterCollection): |
| 18321 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18322 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) |
| 18323 | * |
| 18324 | */ |
| 18325 | |
| 18326 | /* function exit code */ |
| 18327 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 18328 | goto __pyx_L0; |
| 18329 | __pyx_L1_error:; |
| 18330 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 18331 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 18332 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 18333 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 18334 | __Pyx_AddTraceback("xmmsvalue.Smaller.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18335 | __pyx_r = NULL((void*)0); |
| 18336 | __pyx_L0:; |
| 18337 | __Pyx_XGIVEREF(__pyx_r); |
| 18338 | __Pyx_RefNannyFinishContext(); |
| 18339 | return __pyx_r; |
| 18340 | } |
| 18341 | |
| 18342 | /* "xmmsvalue.pyx":900 |
| 18343 | * |
| 18344 | * class SmallerEqual(FilterCollection): |
| 18345 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18346 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) |
| 18347 | * |
| 18348 | */ |
| 18349 | |
| 18350 | /* Python wrapper */ |
| 18351 | static PyObject *__pyx_pw_9xmmsvalue_12SmallerEqual_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 18352 | static char __pyx_doc_9xmmsvalue_12SmallerEqual___init__[] = "SmallerEqual.__init__(Collection self, parent=None, **kargs)"; |
| 18353 | static PyMethodDef __pyx_mdef_9xmmsvalue_12SmallerEqual_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_12SmallerEqual_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_12SmallerEqual___init__)(__pyx_doc_9xmmsvalue_12SmallerEqual___init__)}; |
| 18354 | static PyObject *__pyx_pw_9xmmsvalue_12SmallerEqual_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 18355 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 18356 | PyObject *__pyx_v_parent = 0; |
| 18357 | PyObject *__pyx_v_kargs = 0; |
| 18358 | int __pyx_lineno = 0; |
| 18359 | const char *__pyx_filename = NULL((void*)0); |
| 18360 | int __pyx_clineno = 0; |
| 18361 | PyObject *__pyx_r = 0; |
| 18362 | __Pyx_RefNannyDeclarations |
| 18363 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 18364 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 18365 | __Pyx_GOTREF(__pyx_v_kargs); |
| 18366 | { |
| 18367 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 18368 | PyObject* values[2] = {0,0}; |
| 18369 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 18370 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 18371 | Py_ssize_t kw_args; |
| 18372 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 18373 | switch (pos_args) { |
| 18374 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18375 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18376 | case 0: break; |
| 18377 | default: goto __pyx_L5_argtuple_error; |
| 18378 | } |
| 18379 | kw_args = PyDict_Size(__pyx_kwds); |
| 18380 | switch (pos_args) { |
| 18381 | case 0: |
| 18382 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 18383 | else goto __pyx_L5_argtuple_error; |
| 18384 | case 1: |
| 18385 | if (kw_args > 0) { |
| 18386 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 18387 | if (value) { values[1] = value; kw_args--; } |
| 18388 | } |
| 18389 | } |
| 18390 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 18391 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__18391; goto __pyx_L3_error;} |
| 18392 | } |
| 18393 | } else { |
| 18394 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 18395 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18396 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18397 | break; |
| 18398 | default: goto __pyx_L5_argtuple_error; |
| 18399 | } |
| 18400 | } |
| 18401 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 18402 | __pyx_v_parent = values[1]; |
| 18403 | } |
| 18404 | goto __pyx_L4_argument_unpacking_done; |
| 18405 | __pyx_L5_argtuple_error:; |
| 18406 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__18406; goto __pyx_L3_error;} |
| 18407 | __pyx_L3_error:; |
| 18408 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 18409 | __Pyx_AddTraceback("xmmsvalue.SmallerEqual.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18410 | __Pyx_RefNannyFinishContext(); |
| 18411 | return NULL((void*)0); |
| 18412 | __pyx_L4_argument_unpacking_done:; |
| 18413 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__18413; goto __pyx_L1_error;} |
| 18414 | __pyx_r = __pyx_pf_9xmmsvalue_12SmallerEqual___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 18415 | |
| 18416 | /* function exit code */ |
| 18417 | goto __pyx_L0; |
| 18418 | __pyx_L1_error:; |
| 18419 | __pyx_r = NULL((void*)0); |
| 18420 | __pyx_L0:; |
| 18421 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 18422 | __Pyx_RefNannyFinishContext(); |
| 18423 | return __pyx_r; |
| 18424 | } |
| 18425 | |
| 18426 | static PyObject *__pyx_pf_9xmmsvalue_12SmallerEqual___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 18427 | PyObject *__pyx_r = NULL((void*)0); |
| 18428 | __Pyx_RefNannyDeclarations |
| 18429 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 18430 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 18431 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 18432 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 18433 | int __pyx_lineno = 0; |
| 18434 | const char *__pyx_filename = NULL((void*)0); |
| 18435 | int __pyx_clineno = 0; |
| 18436 | __Pyx_RefNannySetupContext("__init__", 0); |
| 18437 | |
| 18438 | /* "xmmsvalue.pyx":901 |
| 18439 | * class SmallerEqual(FilterCollection): |
| 18440 | * def __init__(Collection self, parent = None, **kargs): |
| 18441 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) # <<<<<<<<<<<<<< |
| 18442 | * |
| 18443 | * class Greater(FilterCollection): |
| 18444 | */ |
| 18445 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 901; __pyx_clineno = __LINE__18445; goto __pyx_L1_error;} |
| 18446 | __Pyx_GOTREF(__pyx_t_1); |
| 18447 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 901; __pyx_clineno = __LINE__18447; goto __pyx_L1_error;} |
| 18448 | __Pyx_GOTREF(__pyx_t_2); |
| 18449 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18450 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_SMALLEREQ); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 901; __pyx_clineno = __LINE__18450; goto __pyx_L1_error;} |
| 18451 | __Pyx_GOTREF(__pyx_t_1); |
| 18452 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 901; __pyx_clineno = __LINE__18452; goto __pyx_L1_error;} |
| 18453 | __Pyx_GOTREF(__pyx_t_3); |
| 18454 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 18455 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 18456 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 18457 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 18458 | __Pyx_GIVEREF(__pyx_t_1); |
| 18459 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 18460 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 18461 | __Pyx_GIVEREF(__pyx_v_parent); |
| 18462 | __pyx_t_1 = 0; |
| 18463 | __pyx_t_1 = __pyx_v_kargs; |
| 18464 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 18465 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 901; __pyx_clineno = __LINE__18465; goto __pyx_L1_error;} |
| 18466 | __Pyx_GOTREF(__pyx_t_4); |
| 18467 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 18468 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 18469 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18470 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 18471 | |
| 18472 | /* "xmmsvalue.pyx":900 |
| 18473 | * |
| 18474 | * class SmallerEqual(FilterCollection): |
| 18475 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18476 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) |
| 18477 | * |
| 18478 | */ |
| 18479 | |
| 18480 | /* function exit code */ |
| 18481 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 18482 | goto __pyx_L0; |
| 18483 | __pyx_L1_error:; |
| 18484 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 18485 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 18486 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 18487 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 18488 | __Pyx_AddTraceback("xmmsvalue.SmallerEqual.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18489 | __pyx_r = NULL((void*)0); |
| 18490 | __pyx_L0:; |
| 18491 | __Pyx_XGIVEREF(__pyx_r); |
| 18492 | __Pyx_RefNannyFinishContext(); |
| 18493 | return __pyx_r; |
| 18494 | } |
| 18495 | |
| 18496 | /* "xmmsvalue.pyx":904 |
| 18497 | * |
| 18498 | * class Greater(FilterCollection): |
| 18499 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18500 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) |
| 18501 | * |
| 18502 | */ |
| 18503 | |
| 18504 | /* Python wrapper */ |
| 18505 | static PyObject *__pyx_pw_9xmmsvalue_7Greater_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 18506 | static char __pyx_doc_9xmmsvalue_7Greater___init__[] = "Greater.__init__(Collection self, parent=None, **kargs)"; |
| 18507 | static PyMethodDef __pyx_mdef_9xmmsvalue_7Greater_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_7Greater_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_7Greater___init__)(__pyx_doc_9xmmsvalue_7Greater___init__)}; |
| 18508 | static PyObject *__pyx_pw_9xmmsvalue_7Greater_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 18509 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 18510 | PyObject *__pyx_v_parent = 0; |
| 18511 | PyObject *__pyx_v_kargs = 0; |
| 18512 | int __pyx_lineno = 0; |
| 18513 | const char *__pyx_filename = NULL((void*)0); |
| 18514 | int __pyx_clineno = 0; |
| 18515 | PyObject *__pyx_r = 0; |
| 18516 | __Pyx_RefNannyDeclarations |
| 18517 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 18518 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 18519 | __Pyx_GOTREF(__pyx_v_kargs); |
| 18520 | { |
| 18521 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 18522 | PyObject* values[2] = {0,0}; |
| 18523 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 18524 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 18525 | Py_ssize_t kw_args; |
| 18526 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 18527 | switch (pos_args) { |
| 18528 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18529 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18530 | case 0: break; |
| 18531 | default: goto __pyx_L5_argtuple_error; |
| 18532 | } |
| 18533 | kw_args = PyDict_Size(__pyx_kwds); |
| 18534 | switch (pos_args) { |
| 18535 | case 0: |
| 18536 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 18537 | else goto __pyx_L5_argtuple_error; |
| 18538 | case 1: |
| 18539 | if (kw_args > 0) { |
| 18540 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 18541 | if (value) { values[1] = value; kw_args--; } |
| 18542 | } |
| 18543 | } |
| 18544 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 18545 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__18545; goto __pyx_L3_error;} |
| 18546 | } |
| 18547 | } else { |
| 18548 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 18549 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18550 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18551 | break; |
| 18552 | default: goto __pyx_L5_argtuple_error; |
| 18553 | } |
| 18554 | } |
| 18555 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 18556 | __pyx_v_parent = values[1]; |
| 18557 | } |
| 18558 | goto __pyx_L4_argument_unpacking_done; |
| 18559 | __pyx_L5_argtuple_error:; |
| 18560 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__18560; goto __pyx_L3_error;} |
| 18561 | __pyx_L3_error:; |
| 18562 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 18563 | __Pyx_AddTraceback("xmmsvalue.Greater.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18564 | __Pyx_RefNannyFinishContext(); |
| 18565 | return NULL((void*)0); |
| 18566 | __pyx_L4_argument_unpacking_done:; |
| 18567 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__18567; goto __pyx_L1_error;} |
| 18568 | __pyx_r = __pyx_pf_9xmmsvalue_7Greater___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 18569 | |
| 18570 | /* function exit code */ |
| 18571 | goto __pyx_L0; |
| 18572 | __pyx_L1_error:; |
| 18573 | __pyx_r = NULL((void*)0); |
| 18574 | __pyx_L0:; |
| 18575 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 18576 | __Pyx_RefNannyFinishContext(); |
| 18577 | return __pyx_r; |
| 18578 | } |
| 18579 | |
| 18580 | static PyObject *__pyx_pf_9xmmsvalue_7Greater___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 18581 | PyObject *__pyx_r = NULL((void*)0); |
| 18582 | __Pyx_RefNannyDeclarations |
| 18583 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 18584 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 18585 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 18586 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 18587 | int __pyx_lineno = 0; |
| 18588 | const char *__pyx_filename = NULL((void*)0); |
| 18589 | int __pyx_clineno = 0; |
| 18590 | __Pyx_RefNannySetupContext("__init__", 0); |
| 18591 | |
| 18592 | /* "xmmsvalue.pyx":905 |
| 18593 | * class Greater(FilterCollection): |
| 18594 | * def __init__(Collection self, parent = None, **kargs): |
| 18595 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) # <<<<<<<<<<<<<< |
| 18596 | * |
| 18597 | * class GreaterEqual(FilterCollection): |
| 18598 | */ |
| 18599 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; __pyx_clineno = __LINE__18599; goto __pyx_L1_error;} |
| 18600 | __Pyx_GOTREF(__pyx_t_1); |
| 18601 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; __pyx_clineno = __LINE__18601; goto __pyx_L1_error;} |
| 18602 | __Pyx_GOTREF(__pyx_t_2); |
| 18603 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18604 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_GREATER); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; __pyx_clineno = __LINE__18604; goto __pyx_L1_error;} |
| 18605 | __Pyx_GOTREF(__pyx_t_1); |
| 18606 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; __pyx_clineno = __LINE__18606; goto __pyx_L1_error;} |
| 18607 | __Pyx_GOTREF(__pyx_t_3); |
| 18608 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 18609 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 18610 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 18611 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 18612 | __Pyx_GIVEREF(__pyx_t_1); |
| 18613 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 18614 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 18615 | __Pyx_GIVEREF(__pyx_v_parent); |
| 18616 | __pyx_t_1 = 0; |
| 18617 | __pyx_t_1 = __pyx_v_kargs; |
| 18618 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 18619 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 905; __pyx_clineno = __LINE__18619; goto __pyx_L1_error;} |
| 18620 | __Pyx_GOTREF(__pyx_t_4); |
| 18621 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 18622 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 18623 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18624 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 18625 | |
| 18626 | /* "xmmsvalue.pyx":904 |
| 18627 | * |
| 18628 | * class Greater(FilterCollection): |
| 18629 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18630 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) |
| 18631 | * |
| 18632 | */ |
| 18633 | |
| 18634 | /* function exit code */ |
| 18635 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 18636 | goto __pyx_L0; |
| 18637 | __pyx_L1_error:; |
| 18638 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 18639 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 18640 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 18641 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 18642 | __Pyx_AddTraceback("xmmsvalue.Greater.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18643 | __pyx_r = NULL((void*)0); |
| 18644 | __pyx_L0:; |
| 18645 | __Pyx_XGIVEREF(__pyx_r); |
| 18646 | __Pyx_RefNannyFinishContext(); |
| 18647 | return __pyx_r; |
| 18648 | } |
| 18649 | |
| 18650 | /* "xmmsvalue.pyx":908 |
| 18651 | * |
| 18652 | * class GreaterEqual(FilterCollection): |
| 18653 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18654 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) |
| 18655 | * |
| 18656 | */ |
| 18657 | |
| 18658 | /* Python wrapper */ |
| 18659 | static PyObject *__pyx_pw_9xmmsvalue_12GreaterEqual_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 18660 | static char __pyx_doc_9xmmsvalue_12GreaterEqual___init__[] = "GreaterEqual.__init__(Collection self, parent=None, **kargs)"; |
| 18661 | static PyMethodDef __pyx_mdef_9xmmsvalue_12GreaterEqual_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_12GreaterEqual_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_12GreaterEqual___init__)(__pyx_doc_9xmmsvalue_12GreaterEqual___init__)}; |
| 18662 | static PyObject *__pyx_pw_9xmmsvalue_12GreaterEqual_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 18663 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 18664 | PyObject *__pyx_v_parent = 0; |
| 18665 | PyObject *__pyx_v_kargs = 0; |
| 18666 | int __pyx_lineno = 0; |
| 18667 | const char *__pyx_filename = NULL((void*)0); |
| 18668 | int __pyx_clineno = 0; |
| 18669 | PyObject *__pyx_r = 0; |
| 18670 | __Pyx_RefNannyDeclarations |
| 18671 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 18672 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 18673 | __Pyx_GOTREF(__pyx_v_kargs); |
| 18674 | { |
| 18675 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 18676 | PyObject* values[2] = {0,0}; |
| 18677 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 18678 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 18679 | Py_ssize_t kw_args; |
| 18680 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 18681 | switch (pos_args) { |
| 18682 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18683 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18684 | case 0: break; |
| 18685 | default: goto __pyx_L5_argtuple_error; |
| 18686 | } |
| 18687 | kw_args = PyDict_Size(__pyx_kwds); |
| 18688 | switch (pos_args) { |
| 18689 | case 0: |
| 18690 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 18691 | else goto __pyx_L5_argtuple_error; |
| 18692 | case 1: |
| 18693 | if (kw_args > 0) { |
| 18694 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 18695 | if (value) { values[1] = value; kw_args--; } |
| 18696 | } |
| 18697 | } |
| 18698 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 18699 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__18699; goto __pyx_L3_error;} |
| 18700 | } |
| 18701 | } else { |
| 18702 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 18703 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18704 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18705 | break; |
| 18706 | default: goto __pyx_L5_argtuple_error; |
| 18707 | } |
| 18708 | } |
| 18709 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 18710 | __pyx_v_parent = values[1]; |
| 18711 | } |
| 18712 | goto __pyx_L4_argument_unpacking_done; |
| 18713 | __pyx_L5_argtuple_error:; |
| 18714 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__18714; goto __pyx_L3_error;} |
| 18715 | __pyx_L3_error:; |
| 18716 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 18717 | __Pyx_AddTraceback("xmmsvalue.GreaterEqual.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18718 | __Pyx_RefNannyFinishContext(); |
| 18719 | return NULL((void*)0); |
| 18720 | __pyx_L4_argument_unpacking_done:; |
| 18721 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__18721; goto __pyx_L1_error;} |
| 18722 | __pyx_r = __pyx_pf_9xmmsvalue_12GreaterEqual___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 18723 | |
| 18724 | /* function exit code */ |
| 18725 | goto __pyx_L0; |
| 18726 | __pyx_L1_error:; |
| 18727 | __pyx_r = NULL((void*)0); |
| 18728 | __pyx_L0:; |
| 18729 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 18730 | __Pyx_RefNannyFinishContext(); |
| 18731 | return __pyx_r; |
| 18732 | } |
| 18733 | |
| 18734 | static PyObject *__pyx_pf_9xmmsvalue_12GreaterEqual___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 18735 | PyObject *__pyx_r = NULL((void*)0); |
| 18736 | __Pyx_RefNannyDeclarations |
| 18737 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 18738 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 18739 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 18740 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 18741 | int __pyx_lineno = 0; |
| 18742 | const char *__pyx_filename = NULL((void*)0); |
| 18743 | int __pyx_clineno = 0; |
| 18744 | __Pyx_RefNannySetupContext("__init__", 0); |
| 18745 | |
| 18746 | /* "xmmsvalue.pyx":909 |
| 18747 | * class GreaterEqual(FilterCollection): |
| 18748 | * def __init__(Collection self, parent = None, **kargs): |
| 18749 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) # <<<<<<<<<<<<<< |
| 18750 | * |
| 18751 | * class Match(FilterCollection): |
| 18752 | */ |
| 18753 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__18753; goto __pyx_L1_error;} |
| 18754 | __Pyx_GOTREF(__pyx_t_1); |
| 18755 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__18755; goto __pyx_L1_error;} |
| 18756 | __Pyx_GOTREF(__pyx_t_2); |
| 18757 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18758 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_GREATEREQ); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__18758; goto __pyx_L1_error;} |
| 18759 | __Pyx_GOTREF(__pyx_t_1); |
| 18760 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__18760; goto __pyx_L1_error;} |
| 18761 | __Pyx_GOTREF(__pyx_t_3); |
| 18762 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 18763 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 18764 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 18765 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 18766 | __Pyx_GIVEREF(__pyx_t_1); |
| 18767 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 18768 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 18769 | __Pyx_GIVEREF(__pyx_v_parent); |
| 18770 | __pyx_t_1 = 0; |
| 18771 | __pyx_t_1 = __pyx_v_kargs; |
| 18772 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 18773 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 909; __pyx_clineno = __LINE__18773; goto __pyx_L1_error;} |
| 18774 | __Pyx_GOTREF(__pyx_t_4); |
| 18775 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 18776 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 18777 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18778 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 18779 | |
| 18780 | /* "xmmsvalue.pyx":908 |
| 18781 | * |
| 18782 | * class GreaterEqual(FilterCollection): |
| 18783 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18784 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) |
| 18785 | * |
| 18786 | */ |
| 18787 | |
| 18788 | /* function exit code */ |
| 18789 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 18790 | goto __pyx_L0; |
| 18791 | __pyx_L1_error:; |
| 18792 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 18793 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 18794 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 18795 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 18796 | __Pyx_AddTraceback("xmmsvalue.GreaterEqual.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18797 | __pyx_r = NULL((void*)0); |
| 18798 | __pyx_L0:; |
| 18799 | __Pyx_XGIVEREF(__pyx_r); |
| 18800 | __Pyx_RefNannyFinishContext(); |
| 18801 | return __pyx_r; |
| 18802 | } |
| 18803 | |
| 18804 | /* "xmmsvalue.pyx":912 |
| 18805 | * |
| 18806 | * class Match(FilterCollection): |
| 18807 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18808 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) |
| 18809 | * |
| 18810 | */ |
| 18811 | |
| 18812 | /* Python wrapper */ |
| 18813 | static PyObject *__pyx_pw_9xmmsvalue_5Match_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 18814 | static char __pyx_doc_9xmmsvalue_5Match___init__[] = "Match.__init__(Collection self, parent=None, **kargs)"; |
| 18815 | static PyMethodDef __pyx_mdef_9xmmsvalue_5Match_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_5Match_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_5Match___init__)(__pyx_doc_9xmmsvalue_5Match___init__)}; |
| 18816 | static PyObject *__pyx_pw_9xmmsvalue_5Match_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 18817 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 18818 | PyObject *__pyx_v_parent = 0; |
| 18819 | PyObject *__pyx_v_kargs = 0; |
| 18820 | int __pyx_lineno = 0; |
| 18821 | const char *__pyx_filename = NULL((void*)0); |
| 18822 | int __pyx_clineno = 0; |
| 18823 | PyObject *__pyx_r = 0; |
| 18824 | __Pyx_RefNannyDeclarations |
| 18825 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 18826 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 18827 | __Pyx_GOTREF(__pyx_v_kargs); |
| 18828 | { |
| 18829 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 18830 | PyObject* values[2] = {0,0}; |
| 18831 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 18832 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 18833 | Py_ssize_t kw_args; |
| 18834 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 18835 | switch (pos_args) { |
| 18836 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18837 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18838 | case 0: break; |
| 18839 | default: goto __pyx_L5_argtuple_error; |
| 18840 | } |
| 18841 | kw_args = PyDict_Size(__pyx_kwds); |
| 18842 | switch (pos_args) { |
| 18843 | case 0: |
| 18844 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 18845 | else goto __pyx_L5_argtuple_error; |
| 18846 | case 1: |
| 18847 | if (kw_args > 0) { |
| 18848 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 18849 | if (value) { values[1] = value; kw_args--; } |
| 18850 | } |
| 18851 | } |
| 18852 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 18853 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__18853; goto __pyx_L3_error;} |
| 18854 | } |
| 18855 | } else { |
| 18856 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 18857 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18858 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18859 | break; |
| 18860 | default: goto __pyx_L5_argtuple_error; |
| 18861 | } |
| 18862 | } |
| 18863 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 18864 | __pyx_v_parent = values[1]; |
| 18865 | } |
| 18866 | goto __pyx_L4_argument_unpacking_done; |
| 18867 | __pyx_L5_argtuple_error:; |
| 18868 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__18868; goto __pyx_L3_error;} |
| 18869 | __pyx_L3_error:; |
| 18870 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 18871 | __Pyx_AddTraceback("xmmsvalue.Match.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18872 | __Pyx_RefNannyFinishContext(); |
| 18873 | return NULL((void*)0); |
| 18874 | __pyx_L4_argument_unpacking_done:; |
| 18875 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__18875; goto __pyx_L1_error;} |
| 18876 | __pyx_r = __pyx_pf_9xmmsvalue_5Match___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 18877 | |
| 18878 | /* function exit code */ |
| 18879 | goto __pyx_L0; |
| 18880 | __pyx_L1_error:; |
| 18881 | __pyx_r = NULL((void*)0); |
| 18882 | __pyx_L0:; |
| 18883 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 18884 | __Pyx_RefNannyFinishContext(); |
| 18885 | return __pyx_r; |
| 18886 | } |
| 18887 | |
| 18888 | static PyObject *__pyx_pf_9xmmsvalue_5Match___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 18889 | PyObject *__pyx_r = NULL((void*)0); |
| 18890 | __Pyx_RefNannyDeclarations |
| 18891 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 18892 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 18893 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 18894 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 18895 | int __pyx_lineno = 0; |
| 18896 | const char *__pyx_filename = NULL((void*)0); |
| 18897 | int __pyx_clineno = 0; |
| 18898 | __Pyx_RefNannySetupContext("__init__", 0); |
| 18899 | |
| 18900 | /* "xmmsvalue.pyx":913 |
| 18901 | * class Match(FilterCollection): |
| 18902 | * def __init__(Collection self, parent = None, **kargs): |
| 18903 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) # <<<<<<<<<<<<<< |
| 18904 | * |
| 18905 | * class Token(FilterCollection): |
| 18906 | */ |
| 18907 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; __pyx_clineno = __LINE__18907; goto __pyx_L1_error;} |
| 18908 | __Pyx_GOTREF(__pyx_t_1); |
| 18909 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; __pyx_clineno = __LINE__18909; goto __pyx_L1_error;} |
| 18910 | __Pyx_GOTREF(__pyx_t_2); |
| 18911 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18912 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_MATCH); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; __pyx_clineno = __LINE__18912; goto __pyx_L1_error;} |
| 18913 | __Pyx_GOTREF(__pyx_t_1); |
| 18914 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; __pyx_clineno = __LINE__18914; goto __pyx_L1_error;} |
| 18915 | __Pyx_GOTREF(__pyx_t_3); |
| 18916 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 18917 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 18918 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 18919 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 18920 | __Pyx_GIVEREF(__pyx_t_1); |
| 18921 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 18922 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 18923 | __Pyx_GIVEREF(__pyx_v_parent); |
| 18924 | __pyx_t_1 = 0; |
| 18925 | __pyx_t_1 = __pyx_v_kargs; |
| 18926 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 18927 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 913; __pyx_clineno = __LINE__18927; goto __pyx_L1_error;} |
| 18928 | __Pyx_GOTREF(__pyx_t_4); |
| 18929 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 18930 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 18931 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 18932 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 18933 | |
| 18934 | /* "xmmsvalue.pyx":912 |
| 18935 | * |
| 18936 | * class Match(FilterCollection): |
| 18937 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18938 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) |
| 18939 | * |
| 18940 | */ |
| 18941 | |
| 18942 | /* function exit code */ |
| 18943 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 18944 | goto __pyx_L0; |
| 18945 | __pyx_L1_error:; |
| 18946 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 18947 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 18948 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 18949 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 18950 | __Pyx_AddTraceback("xmmsvalue.Match.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 18951 | __pyx_r = NULL((void*)0); |
| 18952 | __pyx_L0:; |
| 18953 | __Pyx_XGIVEREF(__pyx_r); |
| 18954 | __Pyx_RefNannyFinishContext(); |
| 18955 | return __pyx_r; |
| 18956 | } |
| 18957 | |
| 18958 | /* "xmmsvalue.pyx":916 |
| 18959 | * |
| 18960 | * class Token(FilterCollection): |
| 18961 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 18962 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) |
| 18963 | * |
| 18964 | */ |
| 18965 | |
| 18966 | /* Python wrapper */ |
| 18967 | static PyObject *__pyx_pw_9xmmsvalue_5Token_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 18968 | static char __pyx_doc_9xmmsvalue_5Token___init__[] = "Token.__init__(Collection self, parent=None, **kargs)"; |
| 18969 | static PyMethodDef __pyx_mdef_9xmmsvalue_5Token_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_5Token_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_5Token___init__)(__pyx_doc_9xmmsvalue_5Token___init__)}; |
| 18970 | static PyObject *__pyx_pw_9xmmsvalue_5Token_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 18971 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 18972 | PyObject *__pyx_v_parent = 0; |
| 18973 | PyObject *__pyx_v_kargs = 0; |
| 18974 | int __pyx_lineno = 0; |
| 18975 | const char *__pyx_filename = NULL((void*)0); |
| 18976 | int __pyx_clineno = 0; |
| 18977 | PyObject *__pyx_r = 0; |
| 18978 | __Pyx_RefNannyDeclarations |
| 18979 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 18980 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 18981 | __Pyx_GOTREF(__pyx_v_kargs); |
| 18982 | { |
| 18983 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 18984 | PyObject* values[2] = {0,0}; |
| 18985 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 18986 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 18987 | Py_ssize_t kw_args; |
| 18988 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 18989 | switch (pos_args) { |
| 18990 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 18991 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 18992 | case 0: break; |
| 18993 | default: goto __pyx_L5_argtuple_error; |
| 18994 | } |
| 18995 | kw_args = PyDict_Size(__pyx_kwds); |
| 18996 | switch (pos_args) { |
| 18997 | case 0: |
| 18998 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 18999 | else goto __pyx_L5_argtuple_error; |
| 19000 | case 1: |
| 19001 | if (kw_args > 0) { |
| 19002 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 19003 | if (value) { values[1] = value; kw_args--; } |
| 19004 | } |
| 19005 | } |
| 19006 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 19007 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__19007; goto __pyx_L3_error;} |
| 19008 | } |
| 19009 | } else { |
| 19010 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 19011 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19012 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19013 | break; |
| 19014 | default: goto __pyx_L5_argtuple_error; |
| 19015 | } |
| 19016 | } |
| 19017 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 19018 | __pyx_v_parent = values[1]; |
| 19019 | } |
| 19020 | goto __pyx_L4_argument_unpacking_done; |
| 19021 | __pyx_L5_argtuple_error:; |
| 19022 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__19022; goto __pyx_L3_error;} |
| 19023 | __pyx_L3_error:; |
| 19024 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 19025 | __Pyx_AddTraceback("xmmsvalue.Token.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19026 | __Pyx_RefNannyFinishContext(); |
| 19027 | return NULL((void*)0); |
| 19028 | __pyx_L4_argument_unpacking_done:; |
| 19029 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__19029; goto __pyx_L1_error;} |
| 19030 | __pyx_r = __pyx_pf_9xmmsvalue_5Token___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 19031 | |
| 19032 | /* function exit code */ |
| 19033 | goto __pyx_L0; |
| 19034 | __pyx_L1_error:; |
| 19035 | __pyx_r = NULL((void*)0); |
| 19036 | __pyx_L0:; |
| 19037 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 19038 | __Pyx_RefNannyFinishContext(); |
| 19039 | return __pyx_r; |
| 19040 | } |
| 19041 | |
| 19042 | static PyObject *__pyx_pf_9xmmsvalue_5Token___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 19043 | PyObject *__pyx_r = NULL((void*)0); |
| 19044 | __Pyx_RefNannyDeclarations |
| 19045 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 19046 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 19047 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 19048 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 19049 | int __pyx_lineno = 0; |
| 19050 | const char *__pyx_filename = NULL((void*)0); |
| 19051 | int __pyx_clineno = 0; |
| 19052 | __Pyx_RefNannySetupContext("__init__", 0); |
| 19053 | |
| 19054 | /* "xmmsvalue.pyx":917 |
| 19055 | * class Token(FilterCollection): |
| 19056 | * def __init__(Collection self, parent = None, **kargs): |
| 19057 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) # <<<<<<<<<<<<<< |
| 19058 | * |
| 19059 | * class Has(FilterCollection): |
| 19060 | */ |
| 19061 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__19061; goto __pyx_L1_error;} |
| 19062 | __Pyx_GOTREF(__pyx_t_1); |
| 19063 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__19063; goto __pyx_L1_error;} |
| 19064 | __Pyx_GOTREF(__pyx_t_2); |
| 19065 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 19066 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_TOKEN); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__19066; goto __pyx_L1_error;} |
| 19067 | __Pyx_GOTREF(__pyx_t_1); |
| 19068 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__19068; goto __pyx_L1_error;} |
| 19069 | __Pyx_GOTREF(__pyx_t_3); |
| 19070 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 19071 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 19072 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 19073 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 19074 | __Pyx_GIVEREF(__pyx_t_1); |
| 19075 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 19076 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 19077 | __Pyx_GIVEREF(__pyx_v_parent); |
| 19078 | __pyx_t_1 = 0; |
| 19079 | __pyx_t_1 = __pyx_v_kargs; |
| 19080 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 19081 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 917; __pyx_clineno = __LINE__19081; goto __pyx_L1_error;} |
| 19082 | __Pyx_GOTREF(__pyx_t_4); |
| 19083 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 19084 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19085 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 19086 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19087 | |
| 19088 | /* "xmmsvalue.pyx":916 |
| 19089 | * |
| 19090 | * class Token(FilterCollection): |
| 19091 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 19092 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) |
| 19093 | * |
| 19094 | */ |
| 19095 | |
| 19096 | /* function exit code */ |
| 19097 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 19098 | goto __pyx_L0; |
| 19099 | __pyx_L1_error:; |
| 19100 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 19101 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 19102 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 19103 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 19104 | __Pyx_AddTraceback("xmmsvalue.Token.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19105 | __pyx_r = NULL((void*)0); |
| 19106 | __pyx_L0:; |
| 19107 | __Pyx_XGIVEREF(__pyx_r); |
| 19108 | __Pyx_RefNannyFinishContext(); |
| 19109 | return __pyx_r; |
| 19110 | } |
| 19111 | |
| 19112 | /* "xmmsvalue.pyx":920 |
| 19113 | * |
| 19114 | * class Has(FilterCollection): |
| 19115 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 19116 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) |
| 19117 | * |
| 19118 | */ |
| 19119 | |
| 19120 | /* Python wrapper */ |
| 19121 | static PyObject *__pyx_pw_9xmmsvalue_3Has_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 19122 | static char __pyx_doc_9xmmsvalue_3Has___init__[] = "Has.__init__(Collection self, parent=None, **kargs)"; |
| 19123 | static PyMethodDef __pyx_mdef_9xmmsvalue_3Has_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_3Has_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_3Has___init__)(__pyx_doc_9xmmsvalue_3Has___init__)}; |
| 19124 | static PyObject *__pyx_pw_9xmmsvalue_3Has_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 19125 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 19126 | PyObject *__pyx_v_parent = 0; |
| 19127 | PyObject *__pyx_v_kargs = 0; |
| 19128 | int __pyx_lineno = 0; |
| 19129 | const char *__pyx_filename = NULL((void*)0); |
| 19130 | int __pyx_clineno = 0; |
| 19131 | PyObject *__pyx_r = 0; |
| 19132 | __Pyx_RefNannyDeclarations |
| 19133 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 19134 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 19135 | __Pyx_GOTREF(__pyx_v_kargs); |
| 19136 | { |
| 19137 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parent,0}; |
| 19138 | PyObject* values[2] = {0,0}; |
| 19139 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 19140 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 19141 | Py_ssize_t kw_args; |
| 19142 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 19143 | switch (pos_args) { |
| 19144 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19145 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19146 | case 0: break; |
| 19147 | default: goto __pyx_L5_argtuple_error; |
| 19148 | } |
| 19149 | kw_args = PyDict_Size(__pyx_kwds); |
| 19150 | switch (pos_args) { |
| 19151 | case 0: |
| 19152 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 19153 | else goto __pyx_L5_argtuple_error; |
| 19154 | case 1: |
| 19155 | if (kw_args > 0) { |
| 19156 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 19157 | if (value) { values[1] = value; kw_args--; } |
| 19158 | } |
| 19159 | } |
| 19160 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 19161 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__19161; goto __pyx_L3_error;} |
| 19162 | } |
| 19163 | } else { |
| 19164 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 19165 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19166 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19167 | break; |
| 19168 | default: goto __pyx_L5_argtuple_error; |
| 19169 | } |
| 19170 | } |
| 19171 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 19172 | __pyx_v_parent = values[1]; |
| 19173 | } |
| 19174 | goto __pyx_L4_argument_unpacking_done; |
| 19175 | __pyx_L5_argtuple_error:; |
| 19176 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__19176; goto __pyx_L3_error;} |
| 19177 | __pyx_L3_error:; |
| 19178 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 19179 | __Pyx_AddTraceback("xmmsvalue.Has.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19180 | __Pyx_RefNannyFinishContext(); |
| 19181 | return NULL((void*)0); |
| 19182 | __pyx_L4_argument_unpacking_done:; |
| 19183 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__19183; goto __pyx_L1_error;} |
| 19184 | __pyx_r = __pyx_pf_9xmmsvalue_3Has___init__(__pyx_self, __pyx_v_self, __pyx_v_parent, __pyx_v_kargs); |
| 19185 | |
| 19186 | /* function exit code */ |
| 19187 | goto __pyx_L0; |
| 19188 | __pyx_L1_error:; |
| 19189 | __pyx_r = NULL((void*)0); |
| 19190 | __pyx_L0:; |
| 19191 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 19192 | __Pyx_RefNannyFinishContext(); |
| 19193 | return __pyx_r; |
| 19194 | } |
| 19195 | |
| 19196 | static PyObject *__pyx_pf_9xmmsvalue_3Has___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 19197 | PyObject *__pyx_r = NULL((void*)0); |
| 19198 | __Pyx_RefNannyDeclarations |
| 19199 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 19200 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 19201 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 19202 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 19203 | int __pyx_lineno = 0; |
| 19204 | const char *__pyx_filename = NULL((void*)0); |
| 19205 | int __pyx_clineno = 0; |
| 19206 | __Pyx_RefNannySetupContext("__init__", 0); |
| 19207 | |
| 19208 | /* "xmmsvalue.pyx":921 |
| 19209 | * class Has(FilterCollection): |
| 19210 | * def __init__(Collection self, parent = None, **kargs): |
| 19211 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) # <<<<<<<<<<<<<< |
| 19212 | * |
| 19213 | * class Order(BaseCollection): |
| 19214 | */ |
| 19215 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; __pyx_clineno = __LINE__19215; goto __pyx_L1_error;} |
| 19216 | __Pyx_GOTREF(__pyx_t_1); |
| 19217 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; __pyx_clineno = __LINE__19217; goto __pyx_L1_error;} |
| 19218 | __Pyx_GOTREF(__pyx_t_2); |
| 19219 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 19220 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_HAS); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; __pyx_clineno = __LINE__19220; goto __pyx_L1_error;} |
| 19221 | __Pyx_GOTREF(__pyx_t_1); |
| 19222 | __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; __pyx_clineno = __LINE__19222; goto __pyx_L1_error;} |
| 19223 | __Pyx_GOTREF(__pyx_t_3); |
| 19224 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 19225 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 19226 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 19227 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 19228 | __Pyx_GIVEREF(__pyx_t_1); |
| 19229 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 19230 | PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_v_parent)(((PyTupleObject *)(__pyx_t_3))->ob_item[2] = __pyx_v_parent ); |
| 19231 | __Pyx_GIVEREF(__pyx_v_parent); |
| 19232 | __pyx_t_1 = 0; |
| 19233 | __pyx_t_1 = __pyx_v_kargs; |
| 19234 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 19235 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 921; __pyx_clineno = __LINE__19235; goto __pyx_L1_error;} |
| 19236 | __Pyx_GOTREF(__pyx_t_4); |
| 19237 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 19238 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19239 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 19240 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19241 | |
| 19242 | /* "xmmsvalue.pyx":920 |
| 19243 | * |
| 19244 | * class Has(FilterCollection): |
| 19245 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 19246 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) |
| 19247 | * |
| 19248 | */ |
| 19249 | |
| 19250 | /* function exit code */ |
| 19251 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 19252 | goto __pyx_L0; |
| 19253 | __pyx_L1_error:; |
| 19254 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 19255 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 19256 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 19257 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 19258 | __Pyx_AddTraceback("xmmsvalue.Has.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19259 | __pyx_r = NULL((void*)0); |
| 19260 | __pyx_L0:; |
| 19261 | __Pyx_XGIVEREF(__pyx_r); |
| 19262 | __Pyx_RefNannyFinishContext(); |
| 19263 | return __pyx_r; |
| 19264 | } |
| 19265 | |
| 19266 | /* "xmmsvalue.pyx":924 |
| 19267 | * |
| 19268 | * class Order(BaseCollection): |
| 19269 | * def __init__(Collection self, operand = None, field = None, direction = 0, **kargs): # <<<<<<<<<<<<<< |
| 19270 | * if isinstance(direction, int): |
| 19271 | * kargs['direction'] = 'ASC' if direction >= 0 else 'DESC' |
| 19272 | */ |
| 19273 | |
| 19274 | /* Python wrapper */ |
| 19275 | static PyObject *__pyx_pw_9xmmsvalue_5Order_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 19276 | static char __pyx_doc_9xmmsvalue_5Order___init__[] = "Order.__init__(Collection self, operand=None, field=None, direction=0, **kargs)"; |
| 19277 | static PyMethodDef __pyx_mdef_9xmmsvalue_5Order_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_5Order_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_5Order___init__)(__pyx_doc_9xmmsvalue_5Order___init__)}; |
| 19278 | static PyObject *__pyx_pw_9xmmsvalue_5Order_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 19279 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 19280 | PyObject *__pyx_v_operand = 0; |
| 19281 | PyObject *__pyx_v_field = 0; |
| 19282 | PyObject *__pyx_v_direction = 0; |
| 19283 | PyObject *__pyx_v_kargs = 0; |
| 19284 | int __pyx_lineno = 0; |
| 19285 | const char *__pyx_filename = NULL((void*)0); |
| 19286 | int __pyx_clineno = 0; |
| 19287 | PyObject *__pyx_r = 0; |
| 19288 | __Pyx_RefNannyDeclarations |
| 19289 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 19290 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 19291 | __Pyx_GOTREF(__pyx_v_kargs); |
| 19292 | { |
| 19293 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_operand,&__pyx_n_s_field,&__pyx_n_s_direction,0}; |
| 19294 | PyObject* values[4] = {0,0,0,0}; |
| 19295 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 19296 | values[2] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 19297 | values[3] = ((PyObject *)((PyObject *)__pyx_int_0)); |
| 19298 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 19299 | Py_ssize_t kw_args; |
| 19300 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 19301 | switch (pos_args) { |
| 19302 | case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3)(((PyTupleObject *)(__pyx_args))->ob_item[3]); |
| 19303 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 19304 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19305 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19306 | case 0: break; |
| 19307 | default: goto __pyx_L5_argtuple_error; |
| 19308 | } |
| 19309 | kw_args = PyDict_Size(__pyx_kwds); |
| 19310 | switch (pos_args) { |
| 19311 | case 0: |
| 19312 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 19313 | else goto __pyx_L5_argtuple_error; |
| 19314 | case 1: |
| 19315 | if (kw_args > 0) { |
| 19316 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operand); |
| 19317 | if (value) { values[1] = value; kw_args--; } |
| 19318 | } |
| 19319 | case 2: |
| 19320 | if (kw_args > 0) { |
| 19321 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_field); |
| 19322 | if (value) { values[2] = value; kw_args--; } |
| 19323 | } |
| 19324 | case 3: |
| 19325 | if (kw_args > 0) { |
| 19326 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_direction); |
| 19327 | if (value) { values[3] = value; kw_args--; } |
| 19328 | } |
| 19329 | } |
| 19330 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 19331 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__19331; goto __pyx_L3_error;} |
| 19332 | } |
| 19333 | } else { |
| 19334 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 19335 | case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3)(((PyTupleObject *)(__pyx_args))->ob_item[3]); |
| 19336 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 19337 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19338 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19339 | break; |
| 19340 | default: goto __pyx_L5_argtuple_error; |
| 19341 | } |
| 19342 | } |
| 19343 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 19344 | __pyx_v_operand = values[1]; |
| 19345 | __pyx_v_field = values[2]; |
| 19346 | __pyx_v_direction = values[3]; |
| 19347 | } |
| 19348 | goto __pyx_L4_argument_unpacking_done; |
| 19349 | __pyx_L5_argtuple_error:; |
| 19350 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__19350; goto __pyx_L3_error;} |
| 19351 | __pyx_L3_error:; |
| 19352 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 19353 | __Pyx_AddTraceback("xmmsvalue.Order.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19354 | __Pyx_RefNannyFinishContext(); |
| 19355 | return NULL((void*)0); |
| 19356 | __pyx_L4_argument_unpacking_done:; |
| 19357 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__19357; goto __pyx_L1_error;} |
| 19358 | __pyx_r = __pyx_pf_9xmmsvalue_5Order___init__(__pyx_self, __pyx_v_self, __pyx_v_operand, __pyx_v_field, __pyx_v_direction, __pyx_v_kargs); |
| 19359 | |
| 19360 | /* function exit code */ |
| 19361 | goto __pyx_L0; |
| 19362 | __pyx_L1_error:; |
| 19363 | __pyx_r = NULL((void*)0); |
| 19364 | __pyx_L0:; |
| 19365 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 19366 | __Pyx_RefNannyFinishContext(); |
| 19367 | return __pyx_r; |
| 19368 | } |
| 19369 | |
| 19370 | static PyObject *__pyx_pf_9xmmsvalue_5Order___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_operand, PyObject *__pyx_v_field, PyObject *__pyx_v_direction, PyObject *__pyx_v_kargs) { |
| 19371 | PyObject *__pyx_r = NULL((void*)0); |
| 19372 | __Pyx_RefNannyDeclarations |
| 19373 | int __pyx_t_1; |
| 19374 | int __pyx_t_2; |
| 19375 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 19376 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 19377 | int __pyx_t_5; |
| 19378 | PyObject *__pyx_t_6 = NULL((void*)0); |
| 19379 | PyObject *__pyx_t_7 = NULL((void*)0); |
| 19380 | int __pyx_lineno = 0; |
| 19381 | const char *__pyx_filename = NULL((void*)0); |
| 19382 | int __pyx_clineno = 0; |
| 19383 | __Pyx_RefNannySetupContext("__init__", 0); |
| 19384 | __Pyx_INCREF(__pyx_v_direction)( ((PyObject*)(__pyx_v_direction))->ob_refcnt++); |
| 19385 | |
| 19386 | /* "xmmsvalue.pyx":925 |
| 19387 | * class Order(BaseCollection): |
| 19388 | * def __init__(Collection self, operand = None, field = None, direction = 0, **kargs): |
| 19389 | * if isinstance(direction, int): # <<<<<<<<<<<<<< |
| 19390 | * kargs['direction'] = 'ASC' if direction >= 0 else 'DESC' |
| 19391 | * else: |
| 19392 | */ |
| 19393 | __pyx_t_1 = PyInt_Check(__pyx_v_direction)((((__pyx_v_direction)->ob_type)->tp_flags & ((1L<< 23))) != 0); |
| 19394 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 19395 | if (__pyx_t_2) { |
| 19396 | |
| 19397 | /* "xmmsvalue.pyx":926 |
| 19398 | * def __init__(Collection self, operand = None, field = None, direction = 0, **kargs): |
| 19399 | * if isinstance(direction, int): |
| 19400 | * kargs['direction'] = 'ASC' if direction >= 0 else 'DESC' # <<<<<<<<<<<<<< |
| 19401 | * else: |
| 19402 | * direction = str(direction).upper() |
| 19403 | */ |
| 19404 | __pyx_t_4 = PyObject_RichCompare(__pyx_v_direction, __pyx_int_0, Py_GE5); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__19404; goto __pyx_L1_error;} |
| 19405 | __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)__builtin_expect(!!(__pyx_t_2 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__19405; goto __pyx_L1_error;} |
| 19406 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19407 | if (__pyx_t_2) { |
| 19408 | __Pyx_INCREF(__pyx_n_s_ASC)( ((PyObject*)(__pyx_n_s_ASC))->ob_refcnt++); |
| 19409 | __pyx_t_3 = __pyx_n_s_ASC; |
| 19410 | } else { |
| 19411 | __Pyx_INCREF(__pyx_n_s_DESC)( ((PyObject*)(__pyx_n_s_DESC))->ob_refcnt++); |
| 19412 | __pyx_t_3 = __pyx_n_s_DESC; |
| 19413 | } |
| 19414 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_direction, __pyx_t_3) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_direction , __pyx_t_3) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 926; __pyx_clineno = __LINE__19414; goto __pyx_L1_error;} |
| 19415 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19416 | goto __pyx_L3; |
| 19417 | } |
| 19418 | /*else*/ { |
| 19419 | |
| 19420 | /* "xmmsvalue.pyx":928 |
| 19421 | * kargs['direction'] = 'ASC' if direction >= 0 else 'DESC' |
| 19422 | * else: |
| 19423 | * direction = str(direction).upper() # <<<<<<<<<<<<<< |
| 19424 | * if direction not in ('ASC', 'DESC'): |
| 19425 | * raise TypeError("'direction' must be an integer or one of 'ASC', 'DESC'") |
| 19426 | */ |
| 19427 | __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; __pyx_clineno = __LINE__19427; goto __pyx_L1_error;} |
| 19428 | __Pyx_GOTREF(__pyx_t_3); |
| 19429 | __Pyx_INCREF(__pyx_v_direction)( ((PyObject*)(__pyx_v_direction))->ob_refcnt++); |
| 19430 | PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_direction)(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = __pyx_v_direction ); |
| 19431 | __Pyx_GIVEREF(__pyx_v_direction); |
| 19432 | __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyString_Type))), __pyx_t_3, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; __pyx_clineno = __LINE__19432; goto __pyx_L1_error;} |
| 19433 | __Pyx_GOTREF(__pyx_t_4); |
| 19434 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19435 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_upper); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; __pyx_clineno = __LINE__19435; goto __pyx_L1_error;} |
| 19436 | __Pyx_GOTREF(__pyx_t_3); |
| 19437 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19438 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 928; __pyx_clineno = __LINE__19438; goto __pyx_L1_error;} |
| 19439 | __Pyx_GOTREF(__pyx_t_4); |
| 19440 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19441 | __Pyx_DECREF_SET(__pyx_v_direction, __pyx_t_4)do { PyObject *tmp = (PyObject *) __pyx_v_direction; __pyx_v_direction = __pyx_t_4; do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type) ->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while ( 0); } while (0); |
| 19442 | __pyx_t_4 = 0; |
| 19443 | |
| 19444 | /* "xmmsvalue.pyx":929 |
| 19445 | * else: |
| 19446 | * direction = str(direction).upper() |
| 19447 | * if direction not in ('ASC', 'DESC'): # <<<<<<<<<<<<<< |
| 19448 | * raise TypeError("'direction' must be an integer or one of 'ASC', 'DESC'") |
| 19449 | * kargs['direction'] = direction |
| 19450 | */ |
| 19451 | __Pyx_INCREF(__pyx_v_direction)( ((PyObject*)(__pyx_v_direction))->ob_refcnt++); |
| 19452 | __pyx_t_4 = __pyx_v_direction; |
| 19453 | __pyx_t_2 = (__Pyx_PyString_Equals__Pyx_PyBytes_Equals(__pyx_t_4, __pyx_n_s_ASC, Py_NE3)); if (unlikely(__pyx_t_2 < 0)__builtin_expect(!!(__pyx_t_2 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; __pyx_clineno = __LINE__19453; goto __pyx_L1_error;} |
| 19454 | if (__pyx_t_2) { |
| 19455 | __pyx_t_1 = (__Pyx_PyString_Equals__Pyx_PyBytes_Equals(__pyx_t_4, __pyx_n_s_DESC, Py_NE3)); if (unlikely(__pyx_t_1 < 0)__builtin_expect(!!(__pyx_t_1 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 929; __pyx_clineno = __LINE__19455; goto __pyx_L1_error;} |
| 19456 | __pyx_t_5 = __pyx_t_1; |
| 19457 | } else { |
| 19458 | __pyx_t_5 = __pyx_t_2; |
| 19459 | } |
| 19460 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19461 | __pyx_t_2 = (__pyx_t_5 != 0); |
| 19462 | if (__pyx_t_2) { |
| 19463 | |
| 19464 | /* "xmmsvalue.pyx":930 |
| 19465 | * direction = str(direction).upper() |
| 19466 | * if direction not in ('ASC', 'DESC'): |
| 19467 | * raise TypeError("'direction' must be an integer or one of 'ASC', 'DESC'") # <<<<<<<<<<<<<< |
| 19468 | * kargs['direction'] = direction |
| 19469 | * |
| 19470 | */ |
| 19471 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__34, NULL((void*)0)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 930; __pyx_clineno = __LINE__19471; goto __pyx_L1_error;} |
| 19472 | __Pyx_GOTREF(__pyx_t_4); |
| 19473 | __Pyx_Raise(__pyx_t_4, 0, 0, 0); |
| 19474 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19475 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 930; __pyx_clineno = __LINE__19475; goto __pyx_L1_error;} |
| 19476 | } |
| 19477 | |
| 19478 | /* "xmmsvalue.pyx":931 |
| 19479 | * if direction not in ('ASC', 'DESC'): |
| 19480 | * raise TypeError("'direction' must be an integer or one of 'ASC', 'DESC'") |
| 19481 | * kargs['direction'] = direction # <<<<<<<<<<<<<< |
| 19482 | * |
| 19483 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 19484 | */ |
| 19485 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_direction, __pyx_v_direction) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_direction , __pyx_v_direction) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 931; __pyx_clineno = __LINE__19485; goto __pyx_L1_error;} |
| 19486 | } |
| 19487 | __pyx_L3:; |
| 19488 | |
| 19489 | /* "xmmsvalue.pyx":933 |
| 19490 | * kargs['direction'] = direction |
| 19491 | * |
| 19492 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) # <<<<<<<<<<<<<< |
| 19493 | * |
| 19494 | * if field == 'id': |
| 19495 | */ |
| 19496 | __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_operand); if (unlikely(__pyx_t_2 < 0)__builtin_expect(!!(__pyx_t_2 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; __pyx_clineno = __LINE__19496; goto __pyx_L1_error;} |
| 19497 | if (!__pyx_t_2) { |
| 19498 | __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Universe); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; __pyx_clineno = __LINE__19498; goto __pyx_L1_error;} |
| 19499 | __Pyx_GOTREF(__pyx_t_4); |
| 19500 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; __pyx_clineno = __LINE__19500; goto __pyx_L1_error;} |
| 19501 | __Pyx_GOTREF(__pyx_t_3); |
| 19502 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19503 | __pyx_t_4 = __pyx_t_3; |
| 19504 | __pyx_t_3 = 0; |
| 19505 | } else { |
| 19506 | __Pyx_INCREF(__pyx_v_operand)( ((PyObject*)(__pyx_v_operand))->ob_refcnt++); |
| 19507 | __pyx_t_4 = __pyx_v_operand; |
| 19508 | } |
| 19509 | __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; __pyx_clineno = __LINE__19509; goto __pyx_L1_error;} |
| 19510 | __Pyx_GOTREF(__pyx_t_3); |
| 19511 | PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_4)(((PyListObject *)(__pyx_t_3))->ob_item[0] = (__pyx_t_4)); |
| 19512 | __Pyx_GIVEREF(__pyx_t_4); |
| 19513 | __pyx_t_4 = 0; |
| 19514 | __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_3); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; __pyx_clineno = __LINE__19514; goto __pyx_L1_error;} |
| 19515 | __Pyx_GOTREF(__pyx_t_4); |
| 19516 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19517 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_4) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands , __pyx_t_4) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 933; __pyx_clineno = __LINE__19517; goto __pyx_L1_error;} |
| 19518 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19519 | |
| 19520 | /* "xmmsvalue.pyx":935 |
| 19521 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 19522 | * |
| 19523 | * if field == 'id': # <<<<<<<<<<<<<< |
| 19524 | * kargs["type"] = "id" |
| 19525 | * elif field: |
| 19526 | */ |
| 19527 | __pyx_t_2 = (__Pyx_PyString_Equals__Pyx_PyBytes_Equals(__pyx_v_field, __pyx_n_s_id, Py_EQ2)); if (unlikely(__pyx_t_2 < 0)__builtin_expect(!!(__pyx_t_2 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 935; __pyx_clineno = __LINE__19527; goto __pyx_L1_error;} |
| 19528 | if (__pyx_t_2) { |
| 19529 | |
| 19530 | /* "xmmsvalue.pyx":936 |
| 19531 | * |
| 19532 | * if field == 'id': |
| 19533 | * kargs["type"] = "id" # <<<<<<<<<<<<<< |
| 19534 | * elif field: |
| 19535 | * kargs["field"] = field |
| 19536 | */ |
| 19537 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_type, __pyx_n_s_id) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_type , __pyx_n_s_id) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 936; __pyx_clineno = __LINE__19537; goto __pyx_L1_error;} |
| 19538 | goto __pyx_L5; |
| 19539 | } |
| 19540 | |
| 19541 | /* "xmmsvalue.pyx":937 |
| 19542 | * if field == 'id': |
| 19543 | * kargs["type"] = "id" |
| 19544 | * elif field: # <<<<<<<<<<<<<< |
| 19545 | * kargs["field"] = field |
| 19546 | * kargs["type"] = "value" |
| 19547 | */ |
| 19548 | __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_field); if (unlikely(__pyx_t_2 < 0)__builtin_expect(!!(__pyx_t_2 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 937; __pyx_clineno = __LINE__19548; goto __pyx_L1_error;} |
| 19549 | if (__pyx_t_2) { |
| 19550 | |
| 19551 | /* "xmmsvalue.pyx":938 |
| 19552 | * kargs["type"] = "id" |
| 19553 | * elif field: |
| 19554 | * kargs["field"] = field # <<<<<<<<<<<<<< |
| 19555 | * kargs["type"] = "value" |
| 19556 | * else: |
| 19557 | */ |
| 19558 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_field, __pyx_v_field) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_field , __pyx_v_field) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 938; __pyx_clineno = __LINE__19558; goto __pyx_L1_error;} |
| 19559 | |
| 19560 | /* "xmmsvalue.pyx":939 |
| 19561 | * elif field: |
| 19562 | * kargs["field"] = field |
| 19563 | * kargs["type"] = "value" # <<<<<<<<<<<<<< |
| 19564 | * else: |
| 19565 | * kargs["type"] = kargs.get('type', "random") |
| 19566 | */ |
| 19567 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_type, __pyx_n_s_value) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_type , __pyx_n_s_value) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 939; __pyx_clineno = __LINE__19567; goto __pyx_L1_error;} |
| 19568 | goto __pyx_L5; |
| 19569 | } |
| 19570 | /*else*/ { |
| 19571 | |
| 19572 | /* "xmmsvalue.pyx":941 |
| 19573 | * kargs["type"] = "value" |
| 19574 | * else: |
| 19575 | * kargs["type"] = kargs.get('type', "random") # <<<<<<<<<<<<<< |
| 19576 | * |
| 19577 | * if kargs["type"] == "random": |
| 19578 | */ |
| 19579 | __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_type, __pyx_n_s_random); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 941; __pyx_clineno = __LINE__19579; goto __pyx_L1_error;} |
| 19580 | __Pyx_GOTREF(__pyx_t_4); |
| 19581 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_type, __pyx_t_4) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_type , __pyx_t_4) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 941; __pyx_clineno = __LINE__19581; goto __pyx_L1_error;} |
| 19582 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19583 | } |
| 19584 | __pyx_L5:; |
| 19585 | |
| 19586 | /* "xmmsvalue.pyx":943 |
| 19587 | * kargs["type"] = kargs.get('type', "random") |
| 19588 | * |
| 19589 | * if kargs["type"] == "random": # <<<<<<<<<<<<<< |
| 19590 | * del kargs['direction'] |
| 19591 | * |
| 19592 | */ |
| 19593 | __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_kargs, __pyx_n_s_type)PyObject_GetItem(__pyx_v_kargs, __pyx_n_s_type); if (unlikely(__pyx_t_4 == NULL)__builtin_expect(!!(__pyx_t_4 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; __pyx_clineno = __LINE__19593; goto __pyx_L1_error;}; |
| 19594 | __Pyx_GOTREF(__pyx_t_4); |
| 19595 | __pyx_t_2 = (__Pyx_PyString_Equals__Pyx_PyBytes_Equals(__pyx_t_4, __pyx_n_s_random, Py_EQ2)); if (unlikely(__pyx_t_2 < 0)__builtin_expect(!!(__pyx_t_2 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 943; __pyx_clineno = __LINE__19595; goto __pyx_L1_error;} |
| 19596 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19597 | if (__pyx_t_2) { |
| 19598 | |
| 19599 | /* "xmmsvalue.pyx":944 |
| 19600 | * |
| 19601 | * if kargs["type"] == "random": |
| 19602 | * del kargs['direction'] # <<<<<<<<<<<<<< |
| 19603 | * |
| 19604 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_ORDER, **kargs) |
| 19605 | */ |
| 19606 | if (PyDict_DelItem(__pyx_v_kargs, __pyx_n_s_direction) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 944; __pyx_clineno = __LINE__19606; goto __pyx_L1_error;} |
| 19607 | goto __pyx_L6; |
| 19608 | } |
| 19609 | __pyx_L6:; |
| 19610 | |
| 19611 | /* "xmmsvalue.pyx":946 |
| 19612 | * del kargs['direction'] |
| 19613 | * |
| 19614 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_ORDER, **kargs) # <<<<<<<<<<<<<< |
| 19615 | * |
| 19616 | * class Mediaset(BaseCollection): |
| 19617 | */ |
| 19618 | __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__19618; goto __pyx_L1_error;} |
| 19619 | __Pyx_GOTREF(__pyx_t_4); |
| 19620 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_init); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__19620; goto __pyx_L1_error;} |
| 19621 | __Pyx_GOTREF(__pyx_t_3); |
| 19622 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19623 | __pyx_t_4 = PyInt_FromLong(XMMS_COLLECTION_TYPE_ORDER); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__19623; goto __pyx_L1_error;} |
| 19624 | __Pyx_GOTREF(__pyx_t_4); |
| 19625 | __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)__builtin_expect(!!(!__pyx_t_6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__19625; goto __pyx_L1_error;} |
| 19626 | __Pyx_GOTREF(__pyx_t_6); |
| 19627 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 19628 | PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_6))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 19629 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 19630 | PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4)(((PyTupleObject *)(__pyx_t_6))->ob_item[1] = __pyx_t_4); |
| 19631 | __Pyx_GIVEREF(__pyx_t_4); |
| 19632 | __pyx_t_4 = 0; |
| 19633 | __pyx_t_4 = __pyx_v_kargs; |
| 19634 | __Pyx_INCREF(__pyx_t_4)( ((PyObject*)(__pyx_t_4))->ob_refcnt++); |
| 19635 | __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_7)__builtin_expect(!!(!__pyx_t_7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__19635; goto __pyx_L1_error;} |
| 19636 | __Pyx_GOTREF(__pyx_t_7); |
| 19637 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19638 | __Pyx_DECREF(__pyx_t_6)do { if ( --((PyObject*)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_6)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while ( 0); __pyx_t_6 = 0; |
| 19639 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19640 | __Pyx_DECREF(__pyx_t_7)do { if ( --((PyObject*)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_7)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while ( 0); __pyx_t_7 = 0; |
| 19641 | |
| 19642 | /* "xmmsvalue.pyx":924 |
| 19643 | * |
| 19644 | * class Order(BaseCollection): |
| 19645 | * def __init__(Collection self, operand = None, field = None, direction = 0, **kargs): # <<<<<<<<<<<<<< |
| 19646 | * if isinstance(direction, int): |
| 19647 | * kargs['direction'] = 'ASC' if direction >= 0 else 'DESC' |
| 19648 | */ |
| 19649 | |
| 19650 | /* function exit code */ |
| 19651 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 19652 | goto __pyx_L0; |
| 19653 | __pyx_L1_error:; |
| 19654 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 19655 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 19656 | __Pyx_XDECREF(__pyx_t_6)do { if ((__pyx_t_6) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_6))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_6)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_6)))); } while (0); } while (0); |
| 19657 | __Pyx_XDECREF(__pyx_t_7)do { if ((__pyx_t_7) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_7))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_7)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_7)))); } while (0); } while (0); |
| 19658 | __Pyx_AddTraceback("xmmsvalue.Order.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19659 | __pyx_r = NULL((void*)0); |
| 19660 | __pyx_L0:; |
| 19661 | __Pyx_XDECREF(__pyx_v_direction)do { if ((__pyx_v_direction) == ((void*)0)) ; else do { if ( -- ((PyObject*)(__pyx_v_direction))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_direction)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_direction )))); } while (0); } while (0); |
| 19662 | __Pyx_XGIVEREF(__pyx_r); |
| 19663 | __Pyx_RefNannyFinishContext(); |
| 19664 | return __pyx_r; |
| 19665 | } |
| 19666 | |
| 19667 | /* "xmmsvalue.pyx":949 |
| 19668 | * |
| 19669 | * class Mediaset(BaseCollection): |
| 19670 | * def __init__(Collection self, operand = None, **kargs): # <<<<<<<<<<<<<< |
| 19671 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 19672 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_MEDIASET, **kargs) |
| 19673 | */ |
| 19674 | |
| 19675 | /* Python wrapper */ |
| 19676 | static PyObject *__pyx_pw_9xmmsvalue_8Mediaset_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 19677 | static char __pyx_doc_9xmmsvalue_8Mediaset___init__[] = "Mediaset.__init__(Collection self, operand=None, **kargs)"; |
| 19678 | static PyMethodDef __pyx_mdef_9xmmsvalue_8Mediaset_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_8Mediaset_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_8Mediaset___init__)(__pyx_doc_9xmmsvalue_8Mediaset___init__)}; |
| 19679 | static PyObject *__pyx_pw_9xmmsvalue_8Mediaset_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 19680 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 19681 | PyObject *__pyx_v_operand = 0; |
| 19682 | PyObject *__pyx_v_kargs = 0; |
| 19683 | int __pyx_lineno = 0; |
| 19684 | const char *__pyx_filename = NULL((void*)0); |
| 19685 | int __pyx_clineno = 0; |
| 19686 | PyObject *__pyx_r = 0; |
| 19687 | __Pyx_RefNannyDeclarations |
| 19688 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 19689 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 19690 | __Pyx_GOTREF(__pyx_v_kargs); |
| 19691 | { |
| 19692 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_operand,0}; |
| 19693 | PyObject* values[2] = {0,0}; |
| 19694 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 19695 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 19696 | Py_ssize_t kw_args; |
| 19697 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 19698 | switch (pos_args) { |
| 19699 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19700 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19701 | case 0: break; |
| 19702 | default: goto __pyx_L5_argtuple_error; |
| 19703 | } |
| 19704 | kw_args = PyDict_Size(__pyx_kwds); |
| 19705 | switch (pos_args) { |
| 19706 | case 0: |
| 19707 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 19708 | else goto __pyx_L5_argtuple_error; |
| 19709 | case 1: |
| 19710 | if (kw_args > 0) { |
| 19711 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operand); |
| 19712 | if (value) { values[1] = value; kw_args--; } |
| 19713 | } |
| 19714 | } |
| 19715 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 19716 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__19716; goto __pyx_L3_error;} |
| 19717 | } |
| 19718 | } else { |
| 19719 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 19720 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19721 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19722 | break; |
| 19723 | default: goto __pyx_L5_argtuple_error; |
| 19724 | } |
| 19725 | } |
| 19726 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 19727 | __pyx_v_operand = values[1]; |
| 19728 | } |
| 19729 | goto __pyx_L4_argument_unpacking_done; |
| 19730 | __pyx_L5_argtuple_error:; |
| 19731 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__19731; goto __pyx_L3_error;} |
| 19732 | __pyx_L3_error:; |
| 19733 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 19734 | __Pyx_AddTraceback("xmmsvalue.Mediaset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19735 | __Pyx_RefNannyFinishContext(); |
| 19736 | return NULL((void*)0); |
| 19737 | __pyx_L4_argument_unpacking_done:; |
| 19738 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__19738; goto __pyx_L1_error;} |
| 19739 | __pyx_r = __pyx_pf_9xmmsvalue_8Mediaset___init__(__pyx_self, __pyx_v_self, __pyx_v_operand, __pyx_v_kargs); |
| 19740 | |
| 19741 | /* function exit code */ |
| 19742 | goto __pyx_L0; |
| 19743 | __pyx_L1_error:; |
| 19744 | __pyx_r = NULL((void*)0); |
| 19745 | __pyx_L0:; |
| 19746 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 19747 | __Pyx_RefNannyFinishContext(); |
| 19748 | return __pyx_r; |
| 19749 | } |
| 19750 | |
| 19751 | static PyObject *__pyx_pf_9xmmsvalue_8Mediaset___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_operand, PyObject *__pyx_v_kargs) { |
| 19752 | PyObject *__pyx_r = NULL((void*)0); |
| 19753 | __Pyx_RefNannyDeclarations |
| 19754 | int __pyx_t_1; |
| 19755 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 19756 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 19757 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 19758 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 19759 | int __pyx_lineno = 0; |
| 19760 | const char *__pyx_filename = NULL((void*)0); |
| 19761 | int __pyx_clineno = 0; |
| 19762 | __Pyx_RefNannySetupContext("__init__", 0); |
| 19763 | |
| 19764 | /* "xmmsvalue.pyx":950 |
| 19765 | * class Mediaset(BaseCollection): |
| 19766 | * def __init__(Collection self, operand = None, **kargs): |
| 19767 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) # <<<<<<<<<<<<<< |
| 19768 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_MEDIASET, **kargs) |
| 19769 | * |
| 19770 | */ |
| 19771 | __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_operand); if (unlikely(__pyx_t_1 < 0)__builtin_expect(!!(__pyx_t_1 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__19771; goto __pyx_L1_error;} |
| 19772 | if (!__pyx_t_1) { |
| 19773 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Universe); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__19773; goto __pyx_L1_error;} |
| 19774 | __Pyx_GOTREF(__pyx_t_2); |
| 19775 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__19775; goto __pyx_L1_error;} |
| 19776 | __Pyx_GOTREF(__pyx_t_3); |
| 19777 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 19778 | __pyx_t_2 = __pyx_t_3; |
| 19779 | __pyx_t_3 = 0; |
| 19780 | } else { |
| 19781 | __Pyx_INCREF(__pyx_v_operand)( ((PyObject*)(__pyx_v_operand))->ob_refcnt++); |
| 19782 | __pyx_t_2 = __pyx_v_operand; |
| 19783 | } |
| 19784 | __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__19784; goto __pyx_L1_error;} |
| 19785 | __Pyx_GOTREF(__pyx_t_3); |
| 19786 | PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)(((PyListObject *)(__pyx_t_3))->ob_item[0] = (__pyx_t_2)); |
| 19787 | __Pyx_GIVEREF(__pyx_t_2); |
| 19788 | __pyx_t_2 = 0; |
| 19789 | __pyx_t_2 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__19789; goto __pyx_L1_error;} |
| 19790 | __Pyx_GOTREF(__pyx_t_2); |
| 19791 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19792 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_2) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands , __pyx_t_2) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__19792; goto __pyx_L1_error;} |
| 19793 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 19794 | |
| 19795 | /* "xmmsvalue.pyx":951 |
| 19796 | * def __init__(Collection self, operand = None, **kargs): |
| 19797 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 19798 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_MEDIASET, **kargs) # <<<<<<<<<<<<<< |
| 19799 | * |
| 19800 | * class Limit(BaseCollection): |
| 19801 | */ |
| 19802 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; __pyx_clineno = __LINE__19802; goto __pyx_L1_error;} |
| 19803 | __Pyx_GOTREF(__pyx_t_2); |
| 19804 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; __pyx_clineno = __LINE__19804; goto __pyx_L1_error;} |
| 19805 | __Pyx_GOTREF(__pyx_t_3); |
| 19806 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 19807 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_MEDIASET); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; __pyx_clineno = __LINE__19807; goto __pyx_L1_error;} |
| 19808 | __Pyx_GOTREF(__pyx_t_2); |
| 19809 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; __pyx_clineno = __LINE__19809; goto __pyx_L1_error;} |
| 19810 | __Pyx_GOTREF(__pyx_t_4); |
| 19811 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 19812 | PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 19813 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 19814 | PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2)(((PyTupleObject *)(__pyx_t_4))->ob_item[1] = __pyx_t_2); |
| 19815 | __Pyx_GIVEREF(__pyx_t_2); |
| 19816 | __pyx_t_2 = 0; |
| 19817 | __pyx_t_2 = __pyx_v_kargs; |
| 19818 | __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); |
| 19819 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 951; __pyx_clineno = __LINE__19819; goto __pyx_L1_error;} |
| 19820 | __Pyx_GOTREF(__pyx_t_5); |
| 19821 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 19822 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19823 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 19824 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 19825 | |
| 19826 | /* "xmmsvalue.pyx":949 |
| 19827 | * |
| 19828 | * class Mediaset(BaseCollection): |
| 19829 | * def __init__(Collection self, operand = None, **kargs): # <<<<<<<<<<<<<< |
| 19830 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 19831 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_MEDIASET, **kargs) |
| 19832 | */ |
| 19833 | |
| 19834 | /* function exit code */ |
| 19835 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 19836 | goto __pyx_L0; |
| 19837 | __pyx_L1_error:; |
| 19838 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 19839 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 19840 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 19841 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 19842 | __Pyx_AddTraceback("xmmsvalue.Mediaset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19843 | __pyx_r = NULL((void*)0); |
| 19844 | __pyx_L0:; |
| 19845 | __Pyx_XGIVEREF(__pyx_r); |
| 19846 | __Pyx_RefNannyFinishContext(); |
| 19847 | return __pyx_r; |
| 19848 | } |
| 19849 | |
| 19850 | /* "xmmsvalue.pyx":954 |
| 19851 | * |
| 19852 | * class Limit(BaseCollection): |
| 19853 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): # <<<<<<<<<<<<<< |
| 19854 | * kargs.update( |
| 19855 | * operands = kargs.get('operands', [operand or Universe()]), |
| 19856 | */ |
| 19857 | |
| 19858 | /* Python wrapper */ |
| 19859 | static PyObject *__pyx_pw_9xmmsvalue_5Limit_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 19860 | static char __pyx_doc_9xmmsvalue_5Limit___init__[] = "Limit.__init__(Collection self, operand=None, start=0, length=0, **kargs)"; |
| 19861 | static PyMethodDef __pyx_mdef_9xmmsvalue_5Limit_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_5Limit_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_5Limit___init__)(__pyx_doc_9xmmsvalue_5Limit___init__)}; |
| 19862 | static PyObject *__pyx_pw_9xmmsvalue_5Limit_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 19863 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 19864 | PyObject *__pyx_v_operand = 0; |
| 19865 | PyObject *__pyx_v_start = 0; |
| 19866 | PyObject *__pyx_v_length = 0; |
| 19867 | PyObject *__pyx_v_kargs = 0; |
| 19868 | int __pyx_lineno = 0; |
| 19869 | const char *__pyx_filename = NULL((void*)0); |
| 19870 | int __pyx_clineno = 0; |
| 19871 | PyObject *__pyx_r = 0; |
| 19872 | __Pyx_RefNannyDeclarations |
| 19873 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 19874 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 19875 | __Pyx_GOTREF(__pyx_v_kargs); |
| 19876 | { |
| 19877 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_operand,&__pyx_n_s_start,&__pyx_n_s_length,0}; |
| 19878 | PyObject* values[4] = {0,0,0,0}; |
| 19879 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 19880 | values[2] = ((PyObject *)((PyObject *)__pyx_int_0)); |
| 19881 | values[3] = ((PyObject *)((PyObject *)__pyx_int_0)); |
| 19882 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 19883 | Py_ssize_t kw_args; |
| 19884 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 19885 | switch (pos_args) { |
| 19886 | case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3)(((PyTupleObject *)(__pyx_args))->ob_item[3]); |
| 19887 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 19888 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19889 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19890 | case 0: break; |
| 19891 | default: goto __pyx_L5_argtuple_error; |
| 19892 | } |
| 19893 | kw_args = PyDict_Size(__pyx_kwds); |
| 19894 | switch (pos_args) { |
| 19895 | case 0: |
| 19896 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 19897 | else goto __pyx_L5_argtuple_error; |
| 19898 | case 1: |
| 19899 | if (kw_args > 0) { |
| 19900 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operand); |
| 19901 | if (value) { values[1] = value; kw_args--; } |
| 19902 | } |
| 19903 | case 2: |
| 19904 | if (kw_args > 0) { |
| 19905 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_start); |
| 19906 | if (value) { values[2] = value; kw_args--; } |
| 19907 | } |
| 19908 | case 3: |
| 19909 | if (kw_args > 0) { |
| 19910 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_length); |
| 19911 | if (value) { values[3] = value; kw_args--; } |
| 19912 | } |
| 19913 | } |
| 19914 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 19915 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__19915; goto __pyx_L3_error;} |
| 19916 | } |
| 19917 | } else { |
| 19918 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 19919 | case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3)(((PyTupleObject *)(__pyx_args))->ob_item[3]); |
| 19920 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 19921 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 19922 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 19923 | break; |
| 19924 | default: goto __pyx_L5_argtuple_error; |
| 19925 | } |
| 19926 | } |
| 19927 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 19928 | __pyx_v_operand = values[1]; |
| 19929 | __pyx_v_start = values[2]; |
| 19930 | __pyx_v_length = values[3]; |
| 19931 | } |
| 19932 | goto __pyx_L4_argument_unpacking_done; |
| 19933 | __pyx_L5_argtuple_error:; |
| 19934 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__19934; goto __pyx_L3_error;} |
| 19935 | __pyx_L3_error:; |
| 19936 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 19937 | __Pyx_AddTraceback("xmmsvalue.Limit.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 19938 | __Pyx_RefNannyFinishContext(); |
| 19939 | return NULL((void*)0); |
| 19940 | __pyx_L4_argument_unpacking_done:; |
| 19941 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__19941; goto __pyx_L1_error;} |
| 19942 | __pyx_r = __pyx_pf_9xmmsvalue_5Limit___init__(__pyx_self, __pyx_v_self, __pyx_v_operand, __pyx_v_start, __pyx_v_length, __pyx_v_kargs); |
| 19943 | |
| 19944 | /* function exit code */ |
| 19945 | goto __pyx_L0; |
| 19946 | __pyx_L1_error:; |
| 19947 | __pyx_r = NULL((void*)0); |
| 19948 | __pyx_L0:; |
| 19949 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 19950 | __Pyx_RefNannyFinishContext(); |
| 19951 | return __pyx_r; |
| 19952 | } |
| 19953 | |
| 19954 | static PyObject *__pyx_pf_9xmmsvalue_5Limit___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_operand, PyObject *__pyx_v_start, PyObject *__pyx_v_length, PyObject *__pyx_v_kargs) { |
| 19955 | PyObject *__pyx_r = NULL((void*)0); |
| 19956 | __Pyx_RefNannyDeclarations |
| 19957 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 19958 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 19959 | int __pyx_t_3; |
| 19960 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 19961 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 19962 | int __pyx_lineno = 0; |
| 19963 | const char *__pyx_filename = NULL((void*)0); |
| 19964 | int __pyx_clineno = 0; |
| 19965 | __Pyx_RefNannySetupContext("__init__", 0); |
| 19966 | |
| 19967 | /* "xmmsvalue.pyx":955 |
| 19968 | * class Limit(BaseCollection): |
| 19969 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): |
| 19970 | * kargs.update( # <<<<<<<<<<<<<< |
| 19971 | * operands = kargs.get('operands', [operand or Universe()]), |
| 19972 | * start = int(start), |
| 19973 | */ |
| 19974 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kargs, __pyx_n_s_update); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__19974; goto __pyx_L1_error;} |
| 19975 | __Pyx_GOTREF(__pyx_t_1); |
| 19976 | __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__19976; goto __pyx_L1_error;} |
| 19977 | __Pyx_GOTREF(__pyx_t_2); |
| 19978 | |
| 19979 | /* "xmmsvalue.pyx":956 |
| 19980 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): |
| 19981 | * kargs.update( |
| 19982 | * operands = kargs.get('operands', [operand or Universe()]), # <<<<<<<<<<<<<< |
| 19983 | * start = int(start), |
| 19984 | * length = int(length) |
| 19985 | */ |
| 19986 | __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_operand); if (unlikely(__pyx_t_3 < 0)__builtin_expect(!!(__pyx_t_3 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; __pyx_clineno = __LINE__19986; goto __pyx_L1_error;} |
| 19987 | if (!__pyx_t_3) { |
| 19988 | __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_Universe); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; __pyx_clineno = __LINE__19988; goto __pyx_L1_error;} |
| 19989 | __Pyx_GOTREF(__pyx_t_4); |
| 19990 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; __pyx_clineno = __LINE__19990; goto __pyx_L1_error;} |
| 19991 | __Pyx_GOTREF(__pyx_t_5); |
| 19992 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 19993 | __pyx_t_4 = __pyx_t_5; |
| 19994 | __pyx_t_5 = 0; |
| 19995 | } else { |
| 19996 | __Pyx_INCREF(__pyx_v_operand)( ((PyObject*)(__pyx_v_operand))->ob_refcnt++); |
| 19997 | __pyx_t_4 = __pyx_v_operand; |
| 19998 | } |
| 19999 | __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; __pyx_clineno = __LINE__19999; goto __pyx_L1_error;} |
| 20000 | __Pyx_GOTREF(__pyx_t_5); |
| 20001 | PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_4)(((PyListObject *)(__pyx_t_5))->ob_item[0] = (__pyx_t_4)); |
| 20002 | __Pyx_GIVEREF(__pyx_t_4); |
| 20003 | __pyx_t_4 = 0; |
| 20004 | __pyx_t_4 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_5); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; __pyx_clineno = __LINE__20004; goto __pyx_L1_error;} |
| 20005 | __Pyx_GOTREF(__pyx_t_4); |
| 20006 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 20007 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_operands, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__20007; goto __pyx_L1_error;} |
| 20008 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20009 | |
| 20010 | /* "xmmsvalue.pyx":957 |
| 20011 | * kargs.update( |
| 20012 | * operands = kargs.get('operands', [operand or Universe()]), |
| 20013 | * start = int(start), # <<<<<<<<<<<<<< |
| 20014 | * length = int(length) |
| 20015 | * ) |
| 20016 | */ |
| 20017 | __pyx_t_4 = PyNumber_Int(__pyx_v_start); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 957; __pyx_clineno = __LINE__20017; goto __pyx_L1_error;} |
| 20018 | __Pyx_GOTREF(__pyx_t_4); |
| 20019 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_start, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__20019; goto __pyx_L1_error;} |
| 20020 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20021 | |
| 20022 | /* "xmmsvalue.pyx":958 |
| 20023 | * operands = kargs.get('operands', [operand or Universe()]), |
| 20024 | * start = int(start), |
| 20025 | * length = int(length) # <<<<<<<<<<<<<< |
| 20026 | * ) |
| 20027 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_LIMIT, **kargs) |
| 20028 | */ |
| 20029 | __pyx_t_4 = PyNumber_Int(__pyx_v_length); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 958; __pyx_clineno = __LINE__20029; goto __pyx_L1_error;} |
| 20030 | __Pyx_GOTREF(__pyx_t_4); |
| 20031 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_length, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__20031; goto __pyx_L1_error;} |
| 20032 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20033 | |
| 20034 | /* "xmmsvalue.pyx":955 |
| 20035 | * class Limit(BaseCollection): |
| 20036 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): |
| 20037 | * kargs.update( # <<<<<<<<<<<<<< |
| 20038 | * operands = kargs.get('operands', [operand or Universe()]), |
| 20039 | * start = int(start), |
| 20040 | */ |
| 20041 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 955; __pyx_clineno = __LINE__20041; goto __pyx_L1_error;} |
| 20042 | __Pyx_GOTREF(__pyx_t_4); |
| 20043 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20044 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20045 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20046 | |
| 20047 | /* "xmmsvalue.pyx":960 |
| 20048 | * length = int(length) |
| 20049 | * ) |
| 20050 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_LIMIT, **kargs) # <<<<<<<<<<<<<< |
| 20051 | * |
| 20052 | * class IDList(BaseCollection): |
| 20053 | */ |
| 20054 | __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__20054; goto __pyx_L1_error;} |
| 20055 | __Pyx_GOTREF(__pyx_t_4); |
| 20056 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__20056; goto __pyx_L1_error;} |
| 20057 | __Pyx_GOTREF(__pyx_t_2); |
| 20058 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20059 | __pyx_t_4 = PyInt_FromLong(XMMS_COLLECTION_TYPE_LIMIT); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__20059; goto __pyx_L1_error;} |
| 20060 | __Pyx_GOTREF(__pyx_t_4); |
| 20061 | __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__20061; goto __pyx_L1_error;} |
| 20062 | __Pyx_GOTREF(__pyx_t_1); |
| 20063 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 20064 | PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 20065 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 20066 | PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4)(((PyTupleObject *)(__pyx_t_1))->ob_item[1] = __pyx_t_4); |
| 20067 | __Pyx_GIVEREF(__pyx_t_4); |
| 20068 | __pyx_t_4 = 0; |
| 20069 | __pyx_t_4 = __pyx_v_kargs; |
| 20070 | __Pyx_INCREF(__pyx_t_4)( ((PyObject*)(__pyx_t_4))->ob_refcnt++); |
| 20071 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 960; __pyx_clineno = __LINE__20071; goto __pyx_L1_error;} |
| 20072 | __Pyx_GOTREF(__pyx_t_5); |
| 20073 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20074 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20075 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20076 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 20077 | |
| 20078 | /* "xmmsvalue.pyx":954 |
| 20079 | * |
| 20080 | * class Limit(BaseCollection): |
| 20081 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): # <<<<<<<<<<<<<< |
| 20082 | * kargs.update( |
| 20083 | * operands = kargs.get('operands', [operand or Universe()]), |
| 20084 | */ |
| 20085 | |
| 20086 | /* function exit code */ |
| 20087 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 20088 | goto __pyx_L0; |
| 20089 | __pyx_L1_error:; |
| 20090 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 20091 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 20092 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 20093 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 20094 | __Pyx_AddTraceback("xmmsvalue.Limit.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20095 | __pyx_r = NULL((void*)0); |
| 20096 | __pyx_L0:; |
| 20097 | __Pyx_XGIVEREF(__pyx_r); |
| 20098 | __Pyx_RefNannyFinishContext(); |
| 20099 | return __pyx_r; |
| 20100 | } |
| 20101 | |
| 20102 | /* "xmmsvalue.pyx":963 |
| 20103 | * |
| 20104 | * class IDList(BaseCollection): |
| 20105 | * def __init__(Collection self, ids = None, **kargs): # <<<<<<<<<<<<<< |
| 20106 | * kargs.update( |
| 20107 | * type = kargs.get('type', 'list'), |
| 20108 | */ |
| 20109 | |
| 20110 | /* Python wrapper */ |
| 20111 | static PyObject *__pyx_pw_9xmmsvalue_6IDList_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 20112 | static char __pyx_doc_9xmmsvalue_6IDList___init__[] = "IDList.__init__(Collection self, ids=None, **kargs)"; |
| 20113 | static PyMethodDef __pyx_mdef_9xmmsvalue_6IDList_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_6IDList_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_6IDList___init__)(__pyx_doc_9xmmsvalue_6IDList___init__)}; |
| 20114 | static PyObject *__pyx_pw_9xmmsvalue_6IDList_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 20115 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 20116 | PyObject *__pyx_v_ids = 0; |
| 20117 | PyObject *__pyx_v_kargs = 0; |
| 20118 | int __pyx_lineno = 0; |
| 20119 | const char *__pyx_filename = NULL((void*)0); |
| 20120 | int __pyx_clineno = 0; |
| 20121 | PyObject *__pyx_r = 0; |
| 20122 | __Pyx_RefNannyDeclarations |
| 20123 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 20124 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 20125 | __Pyx_GOTREF(__pyx_v_kargs); |
| 20126 | { |
| 20127 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_ids,0}; |
| 20128 | PyObject* values[2] = {0,0}; |
| 20129 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 20130 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 20131 | Py_ssize_t kw_args; |
| 20132 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 20133 | switch (pos_args) { |
| 20134 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 20135 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20136 | case 0: break; |
| 20137 | default: goto __pyx_L5_argtuple_error; |
| 20138 | } |
| 20139 | kw_args = PyDict_Size(__pyx_kwds); |
| 20140 | switch (pos_args) { |
| 20141 | case 0: |
| 20142 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 20143 | else goto __pyx_L5_argtuple_error; |
| 20144 | case 1: |
| 20145 | if (kw_args > 0) { |
| 20146 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ids); |
| 20147 | if (value) { values[1] = value; kw_args--; } |
| 20148 | } |
| 20149 | } |
| 20150 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 20151 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__20151; goto __pyx_L3_error;} |
| 20152 | } |
| 20153 | } else { |
| 20154 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 20155 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 20156 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20157 | break; |
| 20158 | default: goto __pyx_L5_argtuple_error; |
| 20159 | } |
| 20160 | } |
| 20161 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 20162 | __pyx_v_ids = values[1]; |
| 20163 | } |
| 20164 | goto __pyx_L4_argument_unpacking_done; |
| 20165 | __pyx_L5_argtuple_error:; |
| 20166 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__20166; goto __pyx_L3_error;} |
| 20167 | __pyx_L3_error:; |
| 20168 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 20169 | __Pyx_AddTraceback("xmmsvalue.IDList.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20170 | __Pyx_RefNannyFinishContext(); |
| 20171 | return NULL((void*)0); |
| 20172 | __pyx_L4_argument_unpacking_done:; |
| 20173 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__20173; goto __pyx_L1_error;} |
| 20174 | __pyx_r = __pyx_pf_9xmmsvalue_6IDList___init__(__pyx_self, __pyx_v_self, __pyx_v_ids, __pyx_v_kargs); |
| 20175 | |
| 20176 | /* function exit code */ |
| 20177 | goto __pyx_L0; |
| 20178 | __pyx_L1_error:; |
| 20179 | __pyx_r = NULL((void*)0); |
| 20180 | __pyx_L0:; |
| 20181 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 20182 | __Pyx_RefNannyFinishContext(); |
| 20183 | return __pyx_r; |
| 20184 | } |
| 20185 | |
| 20186 | static PyObject *__pyx_pf_9xmmsvalue_6IDList___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ids, PyObject *__pyx_v_kargs) { |
| 20187 | PyObject *__pyx_r = NULL((void*)0); |
| 20188 | __Pyx_RefNannyDeclarations |
| 20189 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 20190 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 20191 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 20192 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 20193 | int __pyx_lineno = 0; |
| 20194 | const char *__pyx_filename = NULL((void*)0); |
| 20195 | int __pyx_clineno = 0; |
| 20196 | __Pyx_RefNannySetupContext("__init__", 0); |
| 20197 | |
| 20198 | /* "xmmsvalue.pyx":964 |
| 20199 | * class IDList(BaseCollection): |
| 20200 | * def __init__(Collection self, ids = None, **kargs): |
| 20201 | * kargs.update( # <<<<<<<<<<<<<< |
| 20202 | * type = kargs.get('type', 'list'), |
| 20203 | * ids = ids |
| 20204 | */ |
| 20205 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kargs, __pyx_n_s_update); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__20205; goto __pyx_L1_error;} |
| 20206 | __Pyx_GOTREF(__pyx_t_1); |
| 20207 | __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__20207; goto __pyx_L1_error;} |
| 20208 | __Pyx_GOTREF(__pyx_t_2); |
| 20209 | |
| 20210 | /* "xmmsvalue.pyx":965 |
| 20211 | * def __init__(Collection self, ids = None, **kargs): |
| 20212 | * kargs.update( |
| 20213 | * type = kargs.get('type', 'list'), # <<<<<<<<<<<<<< |
| 20214 | * ids = ids |
| 20215 | * ) |
| 20216 | */ |
| 20217 | __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_type, __pyx_n_s_list); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 965; __pyx_clineno = __LINE__20217; goto __pyx_L1_error;} |
| 20218 | __Pyx_GOTREF(__pyx_t_3); |
| 20219 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_type, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__20219; goto __pyx_L1_error;} |
| 20220 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20221 | |
| 20222 | /* "xmmsvalue.pyx":967 |
| 20223 | * type = kargs.get('type', 'list'), |
| 20224 | * ids = ids |
| 20225 | * ) # <<<<<<<<<<<<<< |
| 20226 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_IDLIST, **kargs) |
| 20227 | * |
| 20228 | */ |
| 20229 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ids, __pyx_v_ids) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__20229; goto __pyx_L1_error;} |
| 20230 | |
| 20231 | /* "xmmsvalue.pyx":964 |
| 20232 | * class IDList(BaseCollection): |
| 20233 | * def __init__(Collection self, ids = None, **kargs): |
| 20234 | * kargs.update( # <<<<<<<<<<<<<< |
| 20235 | * type = kargs.get('type', 'list'), |
| 20236 | * ids = ids |
| 20237 | */ |
| 20238 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 964; __pyx_clineno = __LINE__20238; goto __pyx_L1_error;} |
| 20239 | __Pyx_GOTREF(__pyx_t_3); |
| 20240 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20241 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20242 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20243 | |
| 20244 | /* "xmmsvalue.pyx":968 |
| 20245 | * ids = ids |
| 20246 | * ) |
| 20247 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_IDLIST, **kargs) # <<<<<<<<<<<<<< |
| 20248 | * |
| 20249 | * class Queue(IDList): |
| 20250 | */ |
| 20251 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__20251; goto __pyx_L1_error;} |
| 20252 | __Pyx_GOTREF(__pyx_t_3); |
| 20253 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__20253; goto __pyx_L1_error;} |
| 20254 | __Pyx_GOTREF(__pyx_t_2); |
| 20255 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20256 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_IDLIST); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__20256; goto __pyx_L1_error;} |
| 20257 | __Pyx_GOTREF(__pyx_t_3); |
| 20258 | __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__20258; goto __pyx_L1_error;} |
| 20259 | __Pyx_GOTREF(__pyx_t_1); |
| 20260 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 20261 | PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 20262 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 20263 | PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3)(((PyTupleObject *)(__pyx_t_1))->ob_item[1] = __pyx_t_3); |
| 20264 | __Pyx_GIVEREF(__pyx_t_3); |
| 20265 | __pyx_t_3 = 0; |
| 20266 | __pyx_t_3 = __pyx_v_kargs; |
| 20267 | __Pyx_INCREF(__pyx_t_3)( ((PyObject*)(__pyx_t_3))->ob_refcnt++); |
| 20268 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__20268; goto __pyx_L1_error;} |
| 20269 | __Pyx_GOTREF(__pyx_t_4); |
| 20270 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20271 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20272 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20273 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20274 | |
| 20275 | /* "xmmsvalue.pyx":963 |
| 20276 | * |
| 20277 | * class IDList(BaseCollection): |
| 20278 | * def __init__(Collection self, ids = None, **kargs): # <<<<<<<<<<<<<< |
| 20279 | * kargs.update( |
| 20280 | * type = kargs.get('type', 'list'), |
| 20281 | */ |
| 20282 | |
| 20283 | /* function exit code */ |
| 20284 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 20285 | goto __pyx_L0; |
| 20286 | __pyx_L1_error:; |
| 20287 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 20288 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 20289 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 20290 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 20291 | __Pyx_AddTraceback("xmmsvalue.IDList.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20292 | __pyx_r = NULL((void*)0); |
| 20293 | __pyx_L0:; |
| 20294 | __Pyx_XGIVEREF(__pyx_r); |
| 20295 | __Pyx_RefNannyFinishContext(); |
| 20296 | return __pyx_r; |
| 20297 | } |
| 20298 | |
| 20299 | /* "xmmsvalue.pyx":971 |
| 20300 | * |
| 20301 | * class Queue(IDList): |
| 20302 | * def __init__(Collection self, ids = None, **kargs): # <<<<<<<<<<<<<< |
| 20303 | * kargs.update( |
| 20304 | * type = kargs.get('type', 'queue') |
| 20305 | */ |
| 20306 | |
| 20307 | /* Python wrapper */ |
| 20308 | static PyObject *__pyx_pw_9xmmsvalue_5Queue_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 20309 | static char __pyx_doc_9xmmsvalue_5Queue___init__[] = "Queue.__init__(Collection self, ids=None, **kargs)"; |
| 20310 | static PyMethodDef __pyx_mdef_9xmmsvalue_5Queue_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_5Queue_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_5Queue___init__)(__pyx_doc_9xmmsvalue_5Queue___init__)}; |
| 20311 | static PyObject *__pyx_pw_9xmmsvalue_5Queue_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 20312 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 20313 | PyObject *__pyx_v_ids = 0; |
| 20314 | PyObject *__pyx_v_kargs = 0; |
| 20315 | int __pyx_lineno = 0; |
| 20316 | const char *__pyx_filename = NULL((void*)0); |
| 20317 | int __pyx_clineno = 0; |
| 20318 | PyObject *__pyx_r = 0; |
| 20319 | __Pyx_RefNannyDeclarations |
| 20320 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 20321 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 20322 | __Pyx_GOTREF(__pyx_v_kargs); |
| 20323 | { |
| 20324 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_ids,0}; |
| 20325 | PyObject* values[2] = {0,0}; |
| 20326 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 20327 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 20328 | Py_ssize_t kw_args; |
| 20329 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 20330 | switch (pos_args) { |
| 20331 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 20332 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20333 | case 0: break; |
| 20334 | default: goto __pyx_L5_argtuple_error; |
| 20335 | } |
| 20336 | kw_args = PyDict_Size(__pyx_kwds); |
| 20337 | switch (pos_args) { |
| 20338 | case 0: |
| 20339 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 20340 | else goto __pyx_L5_argtuple_error; |
| 20341 | case 1: |
| 20342 | if (kw_args > 0) { |
| 20343 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ids); |
| 20344 | if (value) { values[1] = value; kw_args--; } |
| 20345 | } |
| 20346 | } |
| 20347 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 20348 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__20348; goto __pyx_L3_error;} |
| 20349 | } |
| 20350 | } else { |
| 20351 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 20352 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 20353 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20354 | break; |
| 20355 | default: goto __pyx_L5_argtuple_error; |
| 20356 | } |
| 20357 | } |
| 20358 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 20359 | __pyx_v_ids = values[1]; |
| 20360 | } |
| 20361 | goto __pyx_L4_argument_unpacking_done; |
| 20362 | __pyx_L5_argtuple_error:; |
| 20363 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__20363; goto __pyx_L3_error;} |
| 20364 | __pyx_L3_error:; |
| 20365 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 20366 | __Pyx_AddTraceback("xmmsvalue.Queue.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20367 | __Pyx_RefNannyFinishContext(); |
| 20368 | return NULL((void*)0); |
| 20369 | __pyx_L4_argument_unpacking_done:; |
| 20370 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__20370; goto __pyx_L1_error;} |
| 20371 | __pyx_r = __pyx_pf_9xmmsvalue_5Queue___init__(__pyx_self, __pyx_v_self, __pyx_v_ids, __pyx_v_kargs); |
| 20372 | |
| 20373 | /* function exit code */ |
| 20374 | goto __pyx_L0; |
| 20375 | __pyx_L1_error:; |
| 20376 | __pyx_r = NULL((void*)0); |
| 20377 | __pyx_L0:; |
| 20378 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 20379 | __Pyx_RefNannyFinishContext(); |
| 20380 | return __pyx_r; |
| 20381 | } |
| 20382 | |
| 20383 | static PyObject *__pyx_pf_9xmmsvalue_5Queue___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ids, PyObject *__pyx_v_kargs) { |
| 20384 | PyObject *__pyx_r = NULL((void*)0); |
| 20385 | __Pyx_RefNannyDeclarations |
| 20386 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 20387 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 20388 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 20389 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 20390 | int __pyx_lineno = 0; |
| 20391 | const char *__pyx_filename = NULL((void*)0); |
| 20392 | int __pyx_clineno = 0; |
| 20393 | __Pyx_RefNannySetupContext("__init__", 0); |
| 20394 | |
| 20395 | /* "xmmsvalue.pyx":972 |
| 20396 | * class Queue(IDList): |
| 20397 | * def __init__(Collection self, ids = None, **kargs): |
| 20398 | * kargs.update( # <<<<<<<<<<<<<< |
| 20399 | * type = kargs.get('type', 'queue') |
| 20400 | * ) |
| 20401 | */ |
| 20402 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kargs, __pyx_n_s_update); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; __pyx_clineno = __LINE__20402; goto __pyx_L1_error;} |
| 20403 | __Pyx_GOTREF(__pyx_t_1); |
| 20404 | __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; __pyx_clineno = __LINE__20404; goto __pyx_L1_error;} |
| 20405 | __Pyx_GOTREF(__pyx_t_2); |
| 20406 | |
| 20407 | /* "xmmsvalue.pyx":973 |
| 20408 | * def __init__(Collection self, ids = None, **kargs): |
| 20409 | * kargs.update( |
| 20410 | * type = kargs.get('type', 'queue') # <<<<<<<<<<<<<< |
| 20411 | * ) |
| 20412 | * IDList.__init__(self, ids, **kargs) |
| 20413 | */ |
| 20414 | __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_type, __pyx_n_s_queue); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 973; __pyx_clineno = __LINE__20414; goto __pyx_L1_error;} |
| 20415 | __Pyx_GOTREF(__pyx_t_3); |
| 20416 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_type, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; __pyx_clineno = __LINE__20416; goto __pyx_L1_error;} |
| 20417 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20418 | |
| 20419 | /* "xmmsvalue.pyx":972 |
| 20420 | * class Queue(IDList): |
| 20421 | * def __init__(Collection self, ids = None, **kargs): |
| 20422 | * kargs.update( # <<<<<<<<<<<<<< |
| 20423 | * type = kargs.get('type', 'queue') |
| 20424 | * ) |
| 20425 | */ |
| 20426 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; __pyx_clineno = __LINE__20426; goto __pyx_L1_error;} |
| 20427 | __Pyx_GOTREF(__pyx_t_3); |
| 20428 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20429 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20430 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20431 | |
| 20432 | /* "xmmsvalue.pyx":975 |
| 20433 | * type = kargs.get('type', 'queue') |
| 20434 | * ) |
| 20435 | * IDList.__init__(self, ids, **kargs) # <<<<<<<<<<<<<< |
| 20436 | * |
| 20437 | * class PShuffle(IDList): |
| 20438 | */ |
| 20439 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_IDList); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 975; __pyx_clineno = __LINE__20439; goto __pyx_L1_error;} |
| 20440 | __Pyx_GOTREF(__pyx_t_3); |
| 20441 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 975; __pyx_clineno = __LINE__20441; goto __pyx_L1_error;} |
| 20442 | __Pyx_GOTREF(__pyx_t_2); |
| 20443 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20444 | __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 975; __pyx_clineno = __LINE__20444; goto __pyx_L1_error;} |
| 20445 | __Pyx_GOTREF(__pyx_t_3); |
| 20446 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 20447 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 20448 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 20449 | __Pyx_INCREF(__pyx_v_ids)( ((PyObject*)(__pyx_v_ids))->ob_refcnt++); |
| 20450 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_ids)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_v_ids); |
| 20451 | __Pyx_GIVEREF(__pyx_v_ids); |
| 20452 | __pyx_t_1 = __pyx_v_kargs; |
| 20453 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 20454 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 975; __pyx_clineno = __LINE__20454; goto __pyx_L1_error;} |
| 20455 | __Pyx_GOTREF(__pyx_t_4); |
| 20456 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20457 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20458 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20459 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20460 | |
| 20461 | /* "xmmsvalue.pyx":971 |
| 20462 | * |
| 20463 | * class Queue(IDList): |
| 20464 | * def __init__(Collection self, ids = None, **kargs): # <<<<<<<<<<<<<< |
| 20465 | * kargs.update( |
| 20466 | * type = kargs.get('type', 'queue') |
| 20467 | */ |
| 20468 | |
| 20469 | /* function exit code */ |
| 20470 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 20471 | goto __pyx_L0; |
| 20472 | __pyx_L1_error:; |
| 20473 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 20474 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 20475 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 20476 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 20477 | __Pyx_AddTraceback("xmmsvalue.Queue.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20478 | __pyx_r = NULL((void*)0); |
| 20479 | __pyx_L0:; |
| 20480 | __Pyx_XGIVEREF(__pyx_r); |
| 20481 | __Pyx_RefNannyFinishContext(); |
| 20482 | return __pyx_r; |
| 20483 | } |
| 20484 | |
| 20485 | /* "xmmsvalue.pyx":978 |
| 20486 | * |
| 20487 | * class PShuffle(IDList): |
| 20488 | * def __init__(Collection self, ids = None, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 20489 | * kargs.update( |
| 20490 | * type = kargs.get('type', 'pshuffle'), |
| 20491 | */ |
| 20492 | |
| 20493 | /* Python wrapper */ |
| 20494 | static PyObject *__pyx_pw_9xmmsvalue_8PShuffle_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 20495 | static char __pyx_doc_9xmmsvalue_8PShuffle___init__[] = "PShuffle.__init__(Collection self, ids=None, parent=None, **kargs)"; |
| 20496 | static PyMethodDef __pyx_mdef_9xmmsvalue_8PShuffle_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_8PShuffle_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_8PShuffle___init__)(__pyx_doc_9xmmsvalue_8PShuffle___init__)}; |
| 20497 | static PyObject *__pyx_pw_9xmmsvalue_8PShuffle_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 20498 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 20499 | PyObject *__pyx_v_ids = 0; |
| 20500 | PyObject *__pyx_v_parent = 0; |
| 20501 | PyObject *__pyx_v_kargs = 0; |
| 20502 | int __pyx_lineno = 0; |
| 20503 | const char *__pyx_filename = NULL((void*)0); |
| 20504 | int __pyx_clineno = 0; |
| 20505 | PyObject *__pyx_r = 0; |
| 20506 | __Pyx_RefNannyDeclarations |
| 20507 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 20508 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 20509 | __Pyx_GOTREF(__pyx_v_kargs); |
| 20510 | { |
| 20511 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_ids,&__pyx_n_s_parent,0}; |
| 20512 | PyObject* values[3] = {0,0,0}; |
| 20513 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 20514 | values[2] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 20515 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 20516 | Py_ssize_t kw_args; |
| 20517 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 20518 | switch (pos_args) { |
| 20519 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 20520 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 20521 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20522 | case 0: break; |
| 20523 | default: goto __pyx_L5_argtuple_error; |
| 20524 | } |
| 20525 | kw_args = PyDict_Size(__pyx_kwds); |
| 20526 | switch (pos_args) { |
| 20527 | case 0: |
| 20528 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 20529 | else goto __pyx_L5_argtuple_error; |
| 20530 | case 1: |
| 20531 | if (kw_args > 0) { |
| 20532 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ids); |
| 20533 | if (value) { values[1] = value; kw_args--; } |
| 20534 | } |
| 20535 | case 2: |
| 20536 | if (kw_args > 0) { |
| 20537 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parent); |
| 20538 | if (value) { values[2] = value; kw_args--; } |
| 20539 | } |
| 20540 | } |
| 20541 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 20542 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__20542; goto __pyx_L3_error;} |
| 20543 | } |
| 20544 | } else { |
| 20545 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 20546 | case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2)(((PyTupleObject *)(__pyx_args))->ob_item[2]); |
| 20547 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 20548 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20549 | break; |
| 20550 | default: goto __pyx_L5_argtuple_error; |
| 20551 | } |
| 20552 | } |
| 20553 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 20554 | __pyx_v_ids = values[1]; |
| 20555 | __pyx_v_parent = values[2]; |
| 20556 | } |
| 20557 | goto __pyx_L4_argument_unpacking_done; |
| 20558 | __pyx_L5_argtuple_error:; |
| 20559 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__20559; goto __pyx_L3_error;} |
| 20560 | __pyx_L3_error:; |
| 20561 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 20562 | __Pyx_AddTraceback("xmmsvalue.PShuffle.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20563 | __Pyx_RefNannyFinishContext(); |
| 20564 | return NULL((void*)0); |
| 20565 | __pyx_L4_argument_unpacking_done:; |
| 20566 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__20566; goto __pyx_L1_error;} |
| 20567 | __pyx_r = __pyx_pf_9xmmsvalue_8PShuffle___init__(__pyx_self, __pyx_v_self, __pyx_v_ids, __pyx_v_parent, __pyx_v_kargs); |
| 20568 | |
| 20569 | /* function exit code */ |
| 20570 | goto __pyx_L0; |
| 20571 | __pyx_L1_error:; |
| 20572 | __pyx_r = NULL((void*)0); |
| 20573 | __pyx_L0:; |
| 20574 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 20575 | __Pyx_RefNannyFinishContext(); |
| 20576 | return __pyx_r; |
| 20577 | } |
| 20578 | |
| 20579 | static PyObject *__pyx_pf_9xmmsvalue_8PShuffle___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_ids, PyObject *__pyx_v_parent, PyObject *__pyx_v_kargs) { |
| 20580 | PyObject *__pyx_r = NULL((void*)0); |
| 20581 | __Pyx_RefNannyDeclarations |
| 20582 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 20583 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 20584 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 20585 | int __pyx_t_4; |
| 20586 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 20587 | int __pyx_lineno = 0; |
| 20588 | const char *__pyx_filename = NULL((void*)0); |
| 20589 | int __pyx_clineno = 0; |
| 20590 | __Pyx_RefNannySetupContext("__init__", 0); |
| 20591 | |
| 20592 | /* "xmmsvalue.pyx":979 |
| 20593 | * class PShuffle(IDList): |
| 20594 | * def __init__(Collection self, ids = None, parent = None, **kargs): |
| 20595 | * kargs.update( # <<<<<<<<<<<<<< |
| 20596 | * type = kargs.get('type', 'pshuffle'), |
| 20597 | * operands = kargs.get('operands', [parent or Universe()]) |
| 20598 | */ |
| 20599 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_kargs, __pyx_n_s_update); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; __pyx_clineno = __LINE__20599; goto __pyx_L1_error;} |
| 20600 | __Pyx_GOTREF(__pyx_t_1); |
| 20601 | __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; __pyx_clineno = __LINE__20601; goto __pyx_L1_error;} |
| 20602 | __Pyx_GOTREF(__pyx_t_2); |
| 20603 | |
| 20604 | /* "xmmsvalue.pyx":980 |
| 20605 | * def __init__(Collection self, ids = None, parent = None, **kargs): |
| 20606 | * kargs.update( |
| 20607 | * type = kargs.get('type', 'pshuffle'), # <<<<<<<<<<<<<< |
| 20608 | * operands = kargs.get('operands', [parent or Universe()]) |
| 20609 | * ) |
| 20610 | */ |
| 20611 | __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_type, __pyx_n_s_pshuffle); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 980; __pyx_clineno = __LINE__20611; goto __pyx_L1_error;} |
| 20612 | __Pyx_GOTREF(__pyx_t_3); |
| 20613 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_type, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; __pyx_clineno = __LINE__20613; goto __pyx_L1_error;} |
| 20614 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20615 | |
| 20616 | /* "xmmsvalue.pyx":981 |
| 20617 | * kargs.update( |
| 20618 | * type = kargs.get('type', 'pshuffle'), |
| 20619 | * operands = kargs.get('operands', [parent or Universe()]) # <<<<<<<<<<<<<< |
| 20620 | * ) |
| 20621 | * IDList.__init__(self, ids, **kargs) |
| 20622 | */ |
| 20623 | __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_parent); if (unlikely(__pyx_t_4 < 0)__builtin_expect(!!(__pyx_t_4 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; __pyx_clineno = __LINE__20623; goto __pyx_L1_error;} |
| 20624 | if (!__pyx_t_4) { |
| 20625 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Universe); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; __pyx_clineno = __LINE__20625; goto __pyx_L1_error;} |
| 20626 | __Pyx_GOTREF(__pyx_t_3); |
| 20627 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; __pyx_clineno = __LINE__20627; goto __pyx_L1_error;} |
| 20628 | __Pyx_GOTREF(__pyx_t_5); |
| 20629 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20630 | __pyx_t_3 = __pyx_t_5; |
| 20631 | __pyx_t_5 = 0; |
| 20632 | } else { |
| 20633 | __Pyx_INCREF(__pyx_v_parent)( ((PyObject*)(__pyx_v_parent))->ob_refcnt++); |
| 20634 | __pyx_t_3 = __pyx_v_parent; |
| 20635 | } |
| 20636 | __pyx_t_5 = PyList_New(1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; __pyx_clineno = __LINE__20636; goto __pyx_L1_error;} |
| 20637 | __Pyx_GOTREF(__pyx_t_5); |
| 20638 | PyList_SET_ITEM(__pyx_t_5, 0, __pyx_t_3)(((PyListObject *)(__pyx_t_5))->ob_item[0] = (__pyx_t_3)); |
| 20639 | __Pyx_GIVEREF(__pyx_t_3); |
| 20640 | __pyx_t_3 = 0; |
| 20641 | __pyx_t_3 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_5); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 981; __pyx_clineno = __LINE__20641; goto __pyx_L1_error;} |
| 20642 | __Pyx_GOTREF(__pyx_t_3); |
| 20643 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 20644 | if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_operands, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; __pyx_clineno = __LINE__20644; goto __pyx_L1_error;} |
| 20645 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20646 | |
| 20647 | /* "xmmsvalue.pyx":979 |
| 20648 | * class PShuffle(IDList): |
| 20649 | * def __init__(Collection self, ids = None, parent = None, **kargs): |
| 20650 | * kargs.update( # <<<<<<<<<<<<<< |
| 20651 | * type = kargs.get('type', 'pshuffle'), |
| 20652 | * operands = kargs.get('operands', [parent or Universe()]) |
| 20653 | */ |
| 20654 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, __pyx_t_2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 979; __pyx_clineno = __LINE__20654; goto __pyx_L1_error;} |
| 20655 | __Pyx_GOTREF(__pyx_t_3); |
| 20656 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20657 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20658 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20659 | |
| 20660 | /* "xmmsvalue.pyx":983 |
| 20661 | * operands = kargs.get('operands', [parent or Universe()]) |
| 20662 | * ) |
| 20663 | * IDList.__init__(self, ids, **kargs) # <<<<<<<<<<<<<< |
| 20664 | * |
| 20665 | * class Union(BaseCollection): |
| 20666 | */ |
| 20667 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_IDList); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 983; __pyx_clineno = __LINE__20667; goto __pyx_L1_error;} |
| 20668 | __Pyx_GOTREF(__pyx_t_3); |
| 20669 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 983; __pyx_clineno = __LINE__20669; goto __pyx_L1_error;} |
| 20670 | __Pyx_GOTREF(__pyx_t_2); |
| 20671 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20672 | __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 983; __pyx_clineno = __LINE__20672; goto __pyx_L1_error;} |
| 20673 | __Pyx_GOTREF(__pyx_t_3); |
| 20674 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 20675 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 20676 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 20677 | __Pyx_INCREF(__pyx_v_ids)( ((PyObject*)(__pyx_v_ids))->ob_refcnt++); |
| 20678 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_ids)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_v_ids); |
| 20679 | __Pyx_GIVEREF(__pyx_v_ids); |
| 20680 | __pyx_t_1 = __pyx_v_kargs; |
| 20681 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 20682 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 983; __pyx_clineno = __LINE__20682; goto __pyx_L1_error;} |
| 20683 | __Pyx_GOTREF(__pyx_t_5); |
| 20684 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20685 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20686 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20687 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 20688 | |
| 20689 | /* "xmmsvalue.pyx":978 |
| 20690 | * |
| 20691 | * class PShuffle(IDList): |
| 20692 | * def __init__(Collection self, ids = None, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 20693 | * kargs.update( |
| 20694 | * type = kargs.get('type', 'pshuffle'), |
| 20695 | */ |
| 20696 | |
| 20697 | /* function exit code */ |
| 20698 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 20699 | goto __pyx_L0; |
| 20700 | __pyx_L1_error:; |
| 20701 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 20702 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 20703 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 20704 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 20705 | __Pyx_AddTraceback("xmmsvalue.PShuffle.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20706 | __pyx_r = NULL((void*)0); |
| 20707 | __pyx_L0:; |
| 20708 | __Pyx_XGIVEREF(__pyx_r); |
| 20709 | __Pyx_RefNannyFinishContext(); |
| 20710 | return __pyx_r; |
| 20711 | } |
| 20712 | |
| 20713 | /* "xmmsvalue.pyx":986 |
| 20714 | * |
| 20715 | * class Union(BaseCollection): |
| 20716 | * def __init__(Collection self, *a, **kargs): # <<<<<<<<<<<<<< |
| 20717 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 20718 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_UNION, **kargs) |
| 20719 | */ |
| 20720 | |
| 20721 | /* Python wrapper */ |
| 20722 | static PyObject *__pyx_pw_9xmmsvalue_5Union_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 20723 | static char __pyx_doc_9xmmsvalue_5Union___init__[] = "Union.__init__(Collection self, *a, **kargs)"; |
| 20724 | static PyMethodDef __pyx_mdef_9xmmsvalue_5Union_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_5Union_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_5Union___init__)(__pyx_doc_9xmmsvalue_5Union___init__)}; |
| 20725 | static PyObject *__pyx_pw_9xmmsvalue_5Union_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 20726 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 20727 | PyObject *__pyx_v_a = 0; |
| 20728 | PyObject *__pyx_v_kargs = 0; |
| 20729 | int __pyx_lineno = 0; |
| 20730 | const char *__pyx_filename = NULL((void*)0); |
| 20731 | int __pyx_clineno = 0; |
| 20732 | PyObject *__pyx_r = 0; |
| 20733 | __Pyx_RefNannyDeclarations |
| 20734 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 20735 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 20736 | __Pyx_GOTREF(__pyx_v_kargs); |
| 20737 | if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) > 1) { |
| 20738 | __pyx_v_a = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); |
| 20739 | if (unlikely(!__pyx_v_a)__builtin_expect(!!(!__pyx_v_a), 0)) { |
| 20740 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 20741 | __Pyx_RefNannyFinishContext(); |
| 20742 | return NULL((void*)0); |
| 20743 | } |
| 20744 | __Pyx_GOTREF(__pyx_v_a); |
| 20745 | } else { |
| 20746 | __pyx_v_a = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple)( ((PyObject*)(__pyx_empty_tuple))->ob_refcnt++); |
| 20747 | } |
| 20748 | { |
| 20749 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,0}; |
| 20750 | PyObject* values[1] = {0}; |
| 20751 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 20752 | Py_ssize_t kw_args; |
| 20753 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 20754 | switch (pos_args) { |
| 20755 | default: |
| 20756 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20757 | case 0: break; |
| 20758 | } |
| 20759 | kw_args = PyDict_Size(__pyx_kwds); |
| 20760 | switch (pos_args) { |
| 20761 | case 0: |
| 20762 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 20763 | else goto __pyx_L5_argtuple_error; |
| 20764 | } |
| 20765 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 20766 | const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1; |
| 20767 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, used_pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, used_pos_args, "__init__") < 0), 0 )) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__20767; goto __pyx_L3_error;} |
| 20768 | } |
| 20769 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) < 1) { |
| 20770 | goto __pyx_L5_argtuple_error; |
| 20771 | } else { |
| 20772 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20773 | } |
| 20774 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 20775 | } |
| 20776 | goto __pyx_L4_argument_unpacking_done; |
| 20777 | __pyx_L5_argtuple_error:; |
| 20778 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__20778; goto __pyx_L3_error;} |
| 20779 | __pyx_L3_error:; |
| 20780 | __Pyx_DECREF(__pyx_v_a)do { if ( --((PyObject*)(__pyx_v_a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_a)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_a)))); } while ( 0); __pyx_v_a = 0; |
| 20781 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 20782 | __Pyx_AddTraceback("xmmsvalue.Union.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20783 | __Pyx_RefNannyFinishContext(); |
| 20784 | return NULL((void*)0); |
| 20785 | __pyx_L4_argument_unpacking_done:; |
| 20786 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__20786; goto __pyx_L1_error;} |
| 20787 | __pyx_r = __pyx_pf_9xmmsvalue_5Union___init__(__pyx_self, __pyx_v_self, __pyx_v_a, __pyx_v_kargs); |
| 20788 | |
| 20789 | /* function exit code */ |
| 20790 | goto __pyx_L0; |
| 20791 | __pyx_L1_error:; |
| 20792 | __pyx_r = NULL((void*)0); |
| 20793 | __pyx_L0:; |
| 20794 | __Pyx_XDECREF(__pyx_v_a)do { if ((__pyx_v_a) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_a))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_a)))); } while (0); } while (0); |
| 20795 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 20796 | __Pyx_RefNannyFinishContext(); |
| 20797 | return __pyx_r; |
| 20798 | } |
| 20799 | |
| 20800 | static PyObject *__pyx_pf_9xmmsvalue_5Union___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_kargs) { |
| 20801 | PyObject *__pyx_r = NULL((void*)0); |
| 20802 | __Pyx_RefNannyDeclarations |
| 20803 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 20804 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 20805 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 20806 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 20807 | int __pyx_lineno = 0; |
| 20808 | const char *__pyx_filename = NULL((void*)0); |
| 20809 | int __pyx_clineno = 0; |
| 20810 | __Pyx_RefNannySetupContext("__init__", 0); |
| 20811 | |
| 20812 | /* "xmmsvalue.pyx":987 |
| 20813 | * class Union(BaseCollection): |
| 20814 | * def __init__(Collection self, *a, **kargs): |
| 20815 | * kargs['operands'] = kargs.get('operands', list(a)) # <<<<<<<<<<<<<< |
| 20816 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_UNION, **kargs) |
| 20817 | * |
| 20818 | */ |
| 20819 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__20819; goto __pyx_L1_error;} |
| 20820 | __Pyx_GOTREF(__pyx_t_1); |
| 20821 | __Pyx_INCREF(__pyx_v_a)( ((PyObject*)(__pyx_v_a))->ob_refcnt++); |
| 20822 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_a)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_v_a); |
| 20823 | __Pyx_GIVEREF(__pyx_v_a); |
| 20824 | __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__20824; goto __pyx_L1_error;} |
| 20825 | __Pyx_GOTREF(__pyx_t_2); |
| 20826 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20827 | __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__20827; goto __pyx_L1_error;} |
| 20828 | __Pyx_GOTREF(__pyx_t_1); |
| 20829 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20830 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_1) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands , __pyx_t_1) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 987; __pyx_clineno = __LINE__20830; goto __pyx_L1_error;} |
| 20831 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20832 | |
| 20833 | /* "xmmsvalue.pyx":988 |
| 20834 | * def __init__(Collection self, *a, **kargs): |
| 20835 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 20836 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_UNION, **kargs) # <<<<<<<<<<<<<< |
| 20837 | * |
| 20838 | * class Intersection(BaseCollection): |
| 20839 | */ |
| 20840 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__20840; goto __pyx_L1_error;} |
| 20841 | __Pyx_GOTREF(__pyx_t_1); |
| 20842 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__20842; goto __pyx_L1_error;} |
| 20843 | __Pyx_GOTREF(__pyx_t_2); |
| 20844 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20845 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_UNION); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__20845; goto __pyx_L1_error;} |
| 20846 | __Pyx_GOTREF(__pyx_t_1); |
| 20847 | __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__20847; goto __pyx_L1_error;} |
| 20848 | __Pyx_GOTREF(__pyx_t_3); |
| 20849 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 20850 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 20851 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 20852 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 20853 | __Pyx_GIVEREF(__pyx_t_1); |
| 20854 | __pyx_t_1 = 0; |
| 20855 | __pyx_t_1 = __pyx_v_kargs; |
| 20856 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 20857 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 988; __pyx_clineno = __LINE__20857; goto __pyx_L1_error;} |
| 20858 | __Pyx_GOTREF(__pyx_t_4); |
| 20859 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 20860 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 20861 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 20862 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 20863 | |
| 20864 | /* "xmmsvalue.pyx":986 |
| 20865 | * |
| 20866 | * class Union(BaseCollection): |
| 20867 | * def __init__(Collection self, *a, **kargs): # <<<<<<<<<<<<<< |
| 20868 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 20869 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_UNION, **kargs) |
| 20870 | */ |
| 20871 | |
| 20872 | /* function exit code */ |
| 20873 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 20874 | goto __pyx_L0; |
| 20875 | __pyx_L1_error:; |
| 20876 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 20877 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 20878 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 20879 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 20880 | __Pyx_AddTraceback("xmmsvalue.Union.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20881 | __pyx_r = NULL((void*)0); |
| 20882 | __pyx_L0:; |
| 20883 | __Pyx_XGIVEREF(__pyx_r); |
| 20884 | __Pyx_RefNannyFinishContext(); |
| 20885 | return __pyx_r; |
| 20886 | } |
| 20887 | |
| 20888 | /* "xmmsvalue.pyx":991 |
| 20889 | * |
| 20890 | * class Intersection(BaseCollection): |
| 20891 | * def __init__(Collection self, *a, **kargs): # <<<<<<<<<<<<<< |
| 20892 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 20893 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_INTERSECTION, **kargs) |
| 20894 | */ |
| 20895 | |
| 20896 | /* Python wrapper */ |
| 20897 | static PyObject *__pyx_pw_9xmmsvalue_12Intersection_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 20898 | static char __pyx_doc_9xmmsvalue_12Intersection___init__[] = "Intersection.__init__(Collection self, *a, **kargs)"; |
| 20899 | static PyMethodDef __pyx_mdef_9xmmsvalue_12Intersection_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_12Intersection_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_12Intersection___init__)(__pyx_doc_9xmmsvalue_12Intersection___init__)}; |
| 20900 | static PyObject *__pyx_pw_9xmmsvalue_12Intersection_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 20901 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 20902 | PyObject *__pyx_v_a = 0; |
| 20903 | PyObject *__pyx_v_kargs = 0; |
| 20904 | int __pyx_lineno = 0; |
| 20905 | const char *__pyx_filename = NULL((void*)0); |
| 20906 | int __pyx_clineno = 0; |
| 20907 | PyObject *__pyx_r = 0; |
| 20908 | __Pyx_RefNannyDeclarations |
| 20909 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 20910 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 20911 | __Pyx_GOTREF(__pyx_v_kargs); |
| 20912 | if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) > 1) { |
| 20913 | __pyx_v_a = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); |
| 20914 | if (unlikely(!__pyx_v_a)__builtin_expect(!!(!__pyx_v_a), 0)) { |
| 20915 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 20916 | __Pyx_RefNannyFinishContext(); |
| 20917 | return NULL((void*)0); |
| 20918 | } |
| 20919 | __Pyx_GOTREF(__pyx_v_a); |
| 20920 | } else { |
| 20921 | __pyx_v_a = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple)( ((PyObject*)(__pyx_empty_tuple))->ob_refcnt++); |
| 20922 | } |
| 20923 | { |
| 20924 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,0}; |
| 20925 | PyObject* values[1] = {0}; |
| 20926 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 20927 | Py_ssize_t kw_args; |
| 20928 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 20929 | switch (pos_args) { |
| 20930 | default: |
| 20931 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20932 | case 0: break; |
| 20933 | } |
| 20934 | kw_args = PyDict_Size(__pyx_kwds); |
| 20935 | switch (pos_args) { |
| 20936 | case 0: |
| 20937 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 20938 | else goto __pyx_L5_argtuple_error; |
| 20939 | } |
| 20940 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 20941 | const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1; |
| 20942 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, used_pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, used_pos_args, "__init__") < 0), 0 )) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__20942; goto __pyx_L3_error;} |
| 20943 | } |
| 20944 | } else if (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size) < 1) { |
| 20945 | goto __pyx_L5_argtuple_error; |
| 20946 | } else { |
| 20947 | values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 20948 | } |
| 20949 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 20950 | } |
| 20951 | goto __pyx_L4_argument_unpacking_done; |
| 20952 | __pyx_L5_argtuple_error:; |
| 20953 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__20953; goto __pyx_L3_error;} |
| 20954 | __pyx_L3_error:; |
| 20955 | __Pyx_DECREF(__pyx_v_a)do { if ( --((PyObject*)(__pyx_v_a))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_a)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_a)))); } while ( 0); __pyx_v_a = 0; |
| 20956 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 20957 | __Pyx_AddTraceback("xmmsvalue.Intersection.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 20958 | __Pyx_RefNannyFinishContext(); |
| 20959 | return NULL((void*)0); |
| 20960 | __pyx_L4_argument_unpacking_done:; |
| 20961 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__20961; goto __pyx_L1_error;} |
| 20962 | __pyx_r = __pyx_pf_9xmmsvalue_12Intersection___init__(__pyx_self, __pyx_v_self, __pyx_v_a, __pyx_v_kargs); |
| 20963 | |
| 20964 | /* function exit code */ |
| 20965 | goto __pyx_L0; |
| 20966 | __pyx_L1_error:; |
| 20967 | __pyx_r = NULL((void*)0); |
| 20968 | __pyx_L0:; |
| 20969 | __Pyx_XDECREF(__pyx_v_a)do { if ((__pyx_v_a) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_v_a))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_v_a)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_a)))); } while (0); } while (0); |
| 20970 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 20971 | __Pyx_RefNannyFinishContext(); |
| 20972 | return __pyx_r; |
| 20973 | } |
| 20974 | |
| 20975 | static PyObject *__pyx_pf_9xmmsvalue_12Intersection___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_kargs) { |
| 20976 | PyObject *__pyx_r = NULL((void*)0); |
| 20977 | __Pyx_RefNannyDeclarations |
| 20978 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 20979 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 20980 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 20981 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 20982 | int __pyx_lineno = 0; |
| 20983 | const char *__pyx_filename = NULL((void*)0); |
| 20984 | int __pyx_clineno = 0; |
| 20985 | __Pyx_RefNannySetupContext("__init__", 0); |
| 20986 | |
| 20987 | /* "xmmsvalue.pyx":992 |
| 20988 | * class Intersection(BaseCollection): |
| 20989 | * def __init__(Collection self, *a, **kargs): |
| 20990 | * kargs['operands'] = kargs.get('operands', list(a)) # <<<<<<<<<<<<<< |
| 20991 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_INTERSECTION, **kargs) |
| 20992 | * |
| 20993 | */ |
| 20994 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 992; __pyx_clineno = __LINE__20994; goto __pyx_L1_error;} |
| 20995 | __Pyx_GOTREF(__pyx_t_1); |
| 20996 | __Pyx_INCREF(__pyx_v_a)( ((PyObject*)(__pyx_v_a))->ob_refcnt++); |
| 20997 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_a)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_v_a); |
| 20998 | __Pyx_GIVEREF(__pyx_v_a); |
| 20999 | __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), __pyx_t_1, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 992; __pyx_clineno = __LINE__20999; goto __pyx_L1_error;} |
| 21000 | __Pyx_GOTREF(__pyx_t_2); |
| 21001 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21002 | __pyx_t_1 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 992; __pyx_clineno = __LINE__21002; goto __pyx_L1_error;} |
| 21003 | __Pyx_GOTREF(__pyx_t_1); |
| 21004 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21005 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_1) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands , __pyx_t_1) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 992; __pyx_clineno = __LINE__21005; goto __pyx_L1_error;} |
| 21006 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21007 | |
| 21008 | /* "xmmsvalue.pyx":993 |
| 21009 | * def __init__(Collection self, *a, **kargs): |
| 21010 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 21011 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_INTERSECTION, **kargs) # <<<<<<<<<<<<<< |
| 21012 | * |
| 21013 | * class Complement(BaseCollection): |
| 21014 | */ |
| 21015 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__21015; goto __pyx_L1_error;} |
| 21016 | __Pyx_GOTREF(__pyx_t_1); |
| 21017 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_init); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__21017; goto __pyx_L1_error;} |
| 21018 | __Pyx_GOTREF(__pyx_t_2); |
| 21019 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21020 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_INTERSECTION); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__21020; goto __pyx_L1_error;} |
| 21021 | __Pyx_GOTREF(__pyx_t_1); |
| 21022 | __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__21022; goto __pyx_L1_error;} |
| 21023 | __Pyx_GOTREF(__pyx_t_3); |
| 21024 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 21025 | PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_3))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 21026 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 21027 | PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1)(((PyTupleObject *)(__pyx_t_3))->ob_item[1] = __pyx_t_1); |
| 21028 | __Pyx_GIVEREF(__pyx_t_1); |
| 21029 | __pyx_t_1 = 0; |
| 21030 | __pyx_t_1 = __pyx_v_kargs; |
| 21031 | __Pyx_INCREF(__pyx_t_1)( ((PyObject*)(__pyx_t_1))->ob_refcnt++); |
| 21032 | __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 993; __pyx_clineno = __LINE__21032; goto __pyx_L1_error;} |
| 21033 | __Pyx_GOTREF(__pyx_t_4); |
| 21034 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21035 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 21036 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21037 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 21038 | |
| 21039 | /* "xmmsvalue.pyx":991 |
| 21040 | * |
| 21041 | * class Intersection(BaseCollection): |
| 21042 | * def __init__(Collection self, *a, **kargs): # <<<<<<<<<<<<<< |
| 21043 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 21044 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_INTERSECTION, **kargs) |
| 21045 | */ |
| 21046 | |
| 21047 | /* function exit code */ |
| 21048 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 21049 | goto __pyx_L0; |
| 21050 | __pyx_L1_error:; |
| 21051 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 21052 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 21053 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 21054 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 21055 | __Pyx_AddTraceback("xmmsvalue.Intersection.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 21056 | __pyx_r = NULL((void*)0); |
| 21057 | __pyx_L0:; |
| 21058 | __Pyx_XGIVEREF(__pyx_r); |
| 21059 | __Pyx_RefNannyFinishContext(); |
| 21060 | return __pyx_r; |
| 21061 | } |
| 21062 | |
| 21063 | /* "xmmsvalue.pyx":996 |
| 21064 | * |
| 21065 | * class Complement(BaseCollection): |
| 21066 | * def __init__(Collection self, operand = None, **kargs): # <<<<<<<<<<<<<< |
| 21067 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 21068 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_COMPLEMENT, **kargs) |
| 21069 | */ |
| 21070 | |
| 21071 | /* Python wrapper */ |
| 21072 | static PyObject *__pyx_pw_9xmmsvalue_10Complement_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ |
| 21073 | static char __pyx_doc_9xmmsvalue_10Complement___init__[] = "Complement.__init__(Collection self, operand=None, **kargs)"; |
| 21074 | static PyMethodDef __pyx_mdef_9xmmsvalue_10Complement_1__init__ = {__Pyx_NAMESTR("__init__")("__init__"), (PyCFunction)__pyx_pw_9xmmsvalue_10Complement_1__init__, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_10Complement___init__)(__pyx_doc_9xmmsvalue_10Complement___init__)}; |
| 21075 | static PyObject *__pyx_pw_9xmmsvalue_10Complement_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { |
| 21076 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self = 0; |
| 21077 | PyObject *__pyx_v_operand = 0; |
| 21078 | PyObject *__pyx_v_kargs = 0; |
| 21079 | int __pyx_lineno = 0; |
| 21080 | const char *__pyx_filename = NULL((void*)0); |
| 21081 | int __pyx_clineno = 0; |
| 21082 | PyObject *__pyx_r = 0; |
| 21083 | __Pyx_RefNannyDeclarations |
| 21084 | __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); |
| 21085 | __pyx_v_kargs = PyDict_New(); if (unlikely(!__pyx_v_kargs)__builtin_expect(!!(!__pyx_v_kargs), 0)) return NULL((void*)0); |
| 21086 | __Pyx_GOTREF(__pyx_v_kargs); |
| 21087 | { |
| 21088 | static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_operand,0}; |
| 21089 | PyObject* values[2] = {0,0}; |
| 21090 | values[1] = ((PyObject *)((PyObject *)Py_None(&_Py_NoneStruct))); |
| 21091 | if (unlikely(__pyx_kwds)__builtin_expect(!!(__pyx_kwds), 0)) { |
| 21092 | Py_ssize_t kw_args; |
| 21093 | const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size); |
| 21094 | switch (pos_args) { |
| 21095 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 21096 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 21097 | case 0: break; |
| 21098 | default: goto __pyx_L5_argtuple_error; |
| 21099 | } |
| 21100 | kw_args = PyDict_Size(__pyx_kwds); |
| 21101 | switch (pos_args) { |
| 21102 | case 0: |
| 21103 | if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)__builtin_expect(!!((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self )) != 0), 1)) kw_args--; |
| 21104 | else goto __pyx_L5_argtuple_error; |
| 21105 | case 1: |
| 21106 | if (kw_args > 0) { |
| 21107 | PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_operand); |
| 21108 | if (value) { values[1] = value; kw_args--; } |
| 21109 | } |
| 21110 | } |
| 21111 | if (unlikely(kw_args > 0)__builtin_expect(!!(kw_args > 0), 0)) { |
| 21112 | if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kargs, values, pos_args, "__init__") < 0)__builtin_expect(!!(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames , __pyx_v_kargs, values, pos_args, "__init__") < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__21112; goto __pyx_L3_error;} |
| 21113 | } |
| 21114 | } else { |
| 21115 | switch (PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)) { |
| 21116 | case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1)(((PyTupleObject *)(__pyx_args))->ob_item[1]); |
| 21117 | case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0)(((PyTupleObject *)(__pyx_args))->ob_item[0]); |
| 21118 | break; |
| 21119 | default: goto __pyx_L5_argtuple_error; |
| 21120 | } |
| 21121 | } |
| 21122 | __pyx_v_self = ((struct __pyx_obj_9xmmsvalue_Collection *)values[0]); |
| 21123 | __pyx_v_operand = values[1]; |
| 21124 | } |
| 21125 | goto __pyx_L4_argument_unpacking_done; |
| 21126 | __pyx_L5_argtuple_error:; |
| 21127 | __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)(((PyVarObject*)(__pyx_args))->ob_size)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__21127; goto __pyx_L3_error;} |
| 21128 | __pyx_L3_error:; |
| 21129 | __Pyx_DECREF(__pyx_v_kargs)do { if ( --((PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_kargs)))) ; } while (0); __pyx_v_kargs = 0; |
| 21130 | __Pyx_AddTraceback("xmmsvalue.Complement.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 21131 | __Pyx_RefNannyFinishContext(); |
| 21132 | return NULL((void*)0); |
| 21133 | __pyx_L4_argument_unpacking_done:; |
| 21134 | if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0))__builtin_expect(!!(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_self ), __pyx_ptype_9xmmsvalue_Collection, 1, "self", 0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__21134; goto __pyx_L1_error;} |
| 21135 | __pyx_r = __pyx_pf_9xmmsvalue_10Complement___init__(__pyx_self, __pyx_v_self, __pyx_v_operand, __pyx_v_kargs); |
| 21136 | |
| 21137 | /* function exit code */ |
| 21138 | goto __pyx_L0; |
| 21139 | __pyx_L1_error:; |
| 21140 | __pyx_r = NULL((void*)0); |
| 21141 | __pyx_L0:; |
| 21142 | __Pyx_XDECREF(__pyx_v_kargs)do { if ((__pyx_v_kargs) == ((void*)0)) ; else do { if ( --(( PyObject*)(__pyx_v_kargs))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(__pyx_v_kargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_v_kargs)))); } while (0); } while (0); |
| 21143 | __Pyx_RefNannyFinishContext(); |
| 21144 | return __pyx_r; |
| 21145 | } |
| 21146 | |
| 21147 | static PyObject *__pyx_pf_9xmmsvalue_10Complement___init__(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_self, PyObject *__pyx_v_operand, PyObject *__pyx_v_kargs) { |
| 21148 | PyObject *__pyx_r = NULL((void*)0); |
| 21149 | __Pyx_RefNannyDeclarations |
| 21150 | int __pyx_t_1; |
| 21151 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 21152 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 21153 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 21154 | PyObject *__pyx_t_5 = NULL((void*)0); |
| 21155 | int __pyx_lineno = 0; |
| 21156 | const char *__pyx_filename = NULL((void*)0); |
| 21157 | int __pyx_clineno = 0; |
| 21158 | __Pyx_RefNannySetupContext("__init__", 0); |
| 21159 | |
| 21160 | /* "xmmsvalue.pyx":997 |
| 21161 | * class Complement(BaseCollection): |
| 21162 | * def __init__(Collection self, operand = None, **kargs): |
| 21163 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) # <<<<<<<<<<<<<< |
| 21164 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_COMPLEMENT, **kargs) |
| 21165 | * |
| 21166 | */ |
| 21167 | __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_operand); if (unlikely(__pyx_t_1 < 0)__builtin_expect(!!(__pyx_t_1 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 997; __pyx_clineno = __LINE__21167; goto __pyx_L1_error;} |
| 21168 | if (!__pyx_t_1) { |
| 21169 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Universe); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 997; __pyx_clineno = __LINE__21169; goto __pyx_L1_error;} |
| 21170 | __Pyx_GOTREF(__pyx_t_2); |
| 21171 | __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 997; __pyx_clineno = __LINE__21171; goto __pyx_L1_error;} |
| 21172 | __Pyx_GOTREF(__pyx_t_3); |
| 21173 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21174 | __pyx_t_2 = __pyx_t_3; |
| 21175 | __pyx_t_3 = 0; |
| 21176 | } else { |
| 21177 | __Pyx_INCREF(__pyx_v_operand)( ((PyObject*)(__pyx_v_operand))->ob_refcnt++); |
| 21178 | __pyx_t_2 = __pyx_v_operand; |
| 21179 | } |
| 21180 | __pyx_t_3 = PyList_New(1); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 997; __pyx_clineno = __LINE__21180; goto __pyx_L1_error;} |
| 21181 | __Pyx_GOTREF(__pyx_t_3); |
| 21182 | PyList_SET_ITEM(__pyx_t_3, 0, __pyx_t_2)(((PyListObject *)(__pyx_t_3))->ob_item[0] = (__pyx_t_2)); |
| 21183 | __Pyx_GIVEREF(__pyx_t_2); |
| 21184 | __pyx_t_2 = 0; |
| 21185 | __pyx_t_2 = __Pyx_PyDict_GetItemDefault(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_3); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 997; __pyx_clineno = __LINE__21185; goto __pyx_L1_error;} |
| 21186 | __Pyx_GOTREF(__pyx_t_2); |
| 21187 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 21188 | if (unlikely(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands, __pyx_t_2) < 0)__builtin_expect(!!(PyDict_SetItem(__pyx_v_kargs, __pyx_n_s_operands , __pyx_t_2) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 997; __pyx_clineno = __LINE__21188; goto __pyx_L1_error;} |
| 21189 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21190 | |
| 21191 | /* "xmmsvalue.pyx":998 |
| 21192 | * def __init__(Collection self, operand = None, **kargs): |
| 21193 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 21194 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_COMPLEMENT, **kargs) # <<<<<<<<<<<<<< |
| 21195 | * |
| 21196 | * cdef _collclass = { |
| 21197 | */ |
| 21198 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__21198; goto __pyx_L1_error;} |
| 21199 | __Pyx_GOTREF(__pyx_t_2); |
| 21200 | __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_init); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__21200; goto __pyx_L1_error;} |
| 21201 | __Pyx_GOTREF(__pyx_t_3); |
| 21202 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21203 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_COMPLEMENT); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__21203; goto __pyx_L1_error;} |
| 21204 | __Pyx_GOTREF(__pyx_t_2); |
| 21205 | __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__21205; goto __pyx_L1_error;} |
| 21206 | __Pyx_GOTREF(__pyx_t_4); |
| 21207 | __Pyx_INCREF(((PyObject *)__pyx_v_self))( ((PyObject*)(((PyObject *)__pyx_v_self)))->ob_refcnt++); |
| 21208 | PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_v_self))(((PyTupleObject *)(__pyx_t_4))->ob_item[0] = ((PyObject * )__pyx_v_self)); |
| 21209 | __Pyx_GIVEREF(((PyObject *)__pyx_v_self)); |
| 21210 | PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2)(((PyTupleObject *)(__pyx_t_4))->ob_item[1] = __pyx_t_2); |
| 21211 | __Pyx_GIVEREF(__pyx_t_2); |
| 21212 | __pyx_t_2 = 0; |
| 21213 | __pyx_t_2 = __pyx_v_kargs; |
| 21214 | __Pyx_INCREF(__pyx_t_2)( ((PyObject*)(__pyx_t_2))->ob_refcnt++); |
| 21215 | __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_5)__builtin_expect(!!(!__pyx_t_5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 998; __pyx_clineno = __LINE__21215; goto __pyx_L1_error;} |
| 21216 | __Pyx_GOTREF(__pyx_t_5); |
| 21217 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 21218 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 21219 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21220 | __Pyx_DECREF(__pyx_t_5)do { if ( --((PyObject*)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_5)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while ( 0); __pyx_t_5 = 0; |
| 21221 | |
| 21222 | /* "xmmsvalue.pyx":996 |
| 21223 | * |
| 21224 | * class Complement(BaseCollection): |
| 21225 | * def __init__(Collection self, operand = None, **kargs): # <<<<<<<<<<<<<< |
| 21226 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 21227 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_COMPLEMENT, **kargs) |
| 21228 | */ |
| 21229 | |
| 21230 | /* function exit code */ |
| 21231 | __pyx_r = Py_None(&_Py_NoneStruct); __Pyx_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 21232 | goto __pyx_L0; |
| 21233 | __pyx_L1_error:; |
| 21234 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 21235 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 21236 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 21237 | __Pyx_XDECREF(__pyx_t_5)do { if ((__pyx_t_5) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_5))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_5)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_5)))); } while (0); } while (0); |
| 21238 | __Pyx_AddTraceback("xmmsvalue.Complement.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 21239 | __pyx_r = NULL((void*)0); |
| 21240 | __pyx_L0:; |
| 21241 | __Pyx_XGIVEREF(__pyx_r); |
| 21242 | __Pyx_RefNannyFinishContext(); |
| 21243 | return __pyx_r; |
| 21244 | } |
| 21245 | |
| 21246 | /* "xmmsvalue.pyx":1020 |
| 21247 | * XMMS_COLLECTION_TYPE_IDLIST: IDList, |
| 21248 | * } |
| 21249 | * cdef create_coll(xmmsv_t *coll): # <<<<<<<<<<<<<< |
| 21250 | * cdef xmmsv_coll_type_t colltype |
| 21251 | * cdef Collection c |
| 21252 | */ |
| 21253 | |
| 21254 | static PyObject *__pyx_f_9xmmsvalue_create_coll(xmmsv_t *__pyx_v_coll) { |
| 21255 | xmmsv_coll_type_t __pyx_v_colltype; |
| 21256 | struct __pyx_obj_9xmmsvalue_Collection *__pyx_v_c = 0; |
| 21257 | const char *__pyx_v_idlist_type; |
| 21258 | PyObject *__pyx_v_idtype_uni = 0; |
| 21259 | PyObject *__pyx_r = NULL((void*)0); |
| 21260 | __Pyx_RefNannyDeclarations |
| 21261 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 21262 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 21263 | int __pyx_t_3; |
| 21264 | int __pyx_t_4; |
| 21265 | int __pyx_lineno = 0; |
| 21266 | const char *__pyx_filename = NULL((void*)0); |
| 21267 | int __pyx_clineno = 0; |
| 21268 | __Pyx_RefNannySetupContext("create_coll", 0); |
| 21269 | |
| 21270 | /* "xmmsvalue.pyx":1026 |
| 21271 | * cdef object idtype_uni |
| 21272 | * |
| 21273 | * colltype = xmmsv_coll_get_type(coll) # <<<<<<<<<<<<<< |
| 21274 | * c = CollectionWrapper() |
| 21275 | * if colltype in _collclass: |
| 21276 | */ |
| 21277 | __pyx_v_colltype = xmmsv_coll_get_type(__pyx_v_coll); |
| 21278 | |
| 21279 | /* "xmmsvalue.pyx":1027 |
| 21280 | * |
| 21281 | * colltype = xmmsv_coll_get_type(coll) |
| 21282 | * c = CollectionWrapper() # <<<<<<<<<<<<<< |
| 21283 | * if colltype in _collclass: |
| 21284 | * c.__class__ = _collclass[colltype] |
| 21285 | */ |
| 21286 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_CollectionWrapper); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__21286; goto __pyx_L1_error;} |
| 21287 | __Pyx_GOTREF(__pyx_t_1); |
| 21288 | __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_empty_tuple, NULL((void*)0)); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__21288; goto __pyx_L1_error;} |
| 21289 | __Pyx_GOTREF(__pyx_t_2); |
| 21290 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21291 | if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_9xmmsvalue_Collection)))__builtin_expect(!!(((__pyx_t_2) == (&_Py_NoneStruct)) || __builtin_expect(!!(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_9xmmsvalue_Collection )), 1)), 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__21291; goto __pyx_L1_error;} |
| 21292 | __pyx_v_c = ((struct __pyx_obj_9xmmsvalue_Collection *)__pyx_t_2); |
| 21293 | __pyx_t_2 = 0; |
| 21294 | |
| 21295 | /* "xmmsvalue.pyx":1028 |
| 21296 | * colltype = xmmsv_coll_get_type(coll) |
| 21297 | * c = CollectionWrapper() |
| 21298 | * if colltype in _collclass: # <<<<<<<<<<<<<< |
| 21299 | * c.__class__ = _collclass[colltype] |
| 21300 | * else: |
| 21301 | */ |
| 21302 | __pyx_t_2 = PyInt_FromLong(__pyx_v_colltype); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1028; __pyx_clineno = __LINE__21302; goto __pyx_L1_error;} |
| 21303 | __Pyx_GOTREF(__pyx_t_2); |
| 21304 | __pyx_t_3 = (__Pyx_PySequence_Contains(__pyx_t_2, __pyx_v_9xmmsvalue__collclass, Py_EQ2)); if (unlikely(__pyx_t_3 < 0)__builtin_expect(!!(__pyx_t_3 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1028; __pyx_clineno = __LINE__21304; goto __pyx_L1_error;} |
| 21305 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21306 | __pyx_t_4 = (__pyx_t_3 != 0); |
| 21307 | if (__pyx_t_4) { |
| 21308 | |
| 21309 | /* "xmmsvalue.pyx":1029 |
| 21310 | * c = CollectionWrapper() |
| 21311 | * if colltype in _collclass: |
| 21312 | * c.__class__ = _collclass[colltype] # <<<<<<<<<<<<<< |
| 21313 | * else: |
| 21314 | * raise RuntimeError("Unknown collection type") |
| 21315 | */ |
| 21316 | __pyx_t_2 = PyInt_FromLong(__pyx_v_colltype); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; __pyx_clineno = __LINE__21316; goto __pyx_L1_error;} |
| 21317 | __Pyx_GOTREF(__pyx_t_2); |
| 21318 | __pyx_t_1 = PyObject_GetItem(__pyx_v_9xmmsvalue__collclass, __pyx_t_2); if (unlikely(__pyx_t_1 == NULL)__builtin_expect(!!(__pyx_t_1 == ((void*)0)), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; __pyx_clineno = __LINE__21318; goto __pyx_L1_error;}; |
| 21319 | __Pyx_GOTREF(__pyx_t_1); |
| 21320 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21321 | if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_c), __pyx_n_s_class, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; __pyx_clineno = __LINE__21321; goto __pyx_L1_error;} |
| 21322 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21323 | goto __pyx_L3; |
| 21324 | } |
| 21325 | /*else*/ { |
| 21326 | |
| 21327 | /* "xmmsvalue.pyx":1031 |
| 21328 | * c.__class__ = _collclass[colltype] |
| 21329 | * else: |
| 21330 | * raise RuntimeError("Unknown collection type") # <<<<<<<<<<<<<< |
| 21331 | * |
| 21332 | * c.set_collection(coll) |
| 21333 | */ |
| 21334 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__35, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__21334; goto __pyx_L1_error;} |
| 21335 | __Pyx_GOTREF(__pyx_t_1); |
| 21336 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 21337 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21338 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__21338; goto __pyx_L1_error;} |
| 21339 | } |
| 21340 | __pyx_L3:; |
| 21341 | |
| 21342 | /* "xmmsvalue.pyx":1033 |
| 21343 | * raise RuntimeError("Unknown collection type") |
| 21344 | * |
| 21345 | * c.set_collection(coll) # <<<<<<<<<<<<<< |
| 21346 | * |
| 21347 | * if colltype == XMMS_COLLECTION_TYPE_REFERENCE: |
| 21348 | */ |
| 21349 | __pyx_t_1 = ((struct __pyx_vtabstruct_9xmmsvalue_Collection *)__pyx_v_c->__pyx_base.__pyx_vtab)->__pyx_base.set_collection(((struct __pyx_obj_9xmmsvalue_CollectionRef *)__pyx_v_c), __pyx_v_coll); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1033; __pyx_clineno = __LINE__21349; goto __pyx_L1_error;} |
| 21350 | __Pyx_GOTREF(__pyx_t_1); |
| 21351 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21352 | |
| 21353 | /* "xmmsvalue.pyx":1038 |
| 21354 | * if c.attributes.get("reference", "") == "All Media": |
| 21355 | * c.__class__ = Universe |
| 21356 | * elif colltype == XMMS_COLLECTION_TYPE_IDLIST: # <<<<<<<<<<<<<< |
| 21357 | * if xmmsv_coll_attribute_get_string(coll, "type", &idlist_type): |
| 21358 | * idtype_uni = to_unicode(idlist_type) |
| 21359 | */ |
| 21360 | switch (__pyx_v_colltype) { |
| 21361 | |
| 21362 | /* "xmmsvalue.pyx":1035 |
| 21363 | * c.set_collection(coll) |
| 21364 | * |
| 21365 | * if colltype == XMMS_COLLECTION_TYPE_REFERENCE: # <<<<<<<<<<<<<< |
| 21366 | * if c.attributes.get("reference", "") == "All Media": |
| 21367 | * c.__class__ = Universe |
| 21368 | */ |
| 21369 | case XMMS_COLLECTION_TYPE_REFERENCE: |
| 21370 | |
| 21371 | /* "xmmsvalue.pyx":1036 |
| 21372 | * |
| 21373 | * if colltype == XMMS_COLLECTION_TYPE_REFERENCE: |
| 21374 | * if c.attributes.get("reference", "") == "All Media": # <<<<<<<<<<<<<< |
| 21375 | * c.__class__ = Universe |
| 21376 | * elif colltype == XMMS_COLLECTION_TYPE_IDLIST: |
| 21377 | */ |
| 21378 | __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_c), __pyx_n_s_attributes); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__21378; goto __pyx_L1_error;} |
| 21379 | __Pyx_GOTREF(__pyx_t_1); |
| 21380 | __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_get); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__21380; goto __pyx_L1_error;} |
| 21381 | __Pyx_GOTREF(__pyx_t_2); |
| 21382 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21383 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__37, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__21383; goto __pyx_L1_error;} |
| 21384 | __Pyx_GOTREF(__pyx_t_1); |
| 21385 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 21386 | __pyx_t_4 = (__Pyx_PyString_Equals__Pyx_PyBytes_Equals(__pyx_t_1, __pyx_kp_s_All_Media, Py_EQ2)); if (unlikely(__pyx_t_4 < 0)__builtin_expect(!!(__pyx_t_4 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__21386; goto __pyx_L1_error;} |
| 21387 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21388 | if (__pyx_t_4) { |
| 21389 | |
| 21390 | /* "xmmsvalue.pyx":1037 |
| 21391 | * if colltype == XMMS_COLLECTION_TYPE_REFERENCE: |
| 21392 | * if c.attributes.get("reference", "") == "All Media": |
| 21393 | * c.__class__ = Universe # <<<<<<<<<<<<<< |
| 21394 | * elif colltype == XMMS_COLLECTION_TYPE_IDLIST: |
| 21395 | * if xmmsv_coll_attribute_get_string(coll, "type", &idlist_type): |
| 21396 | */ |
| 21397 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Universe); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; __pyx_clineno = __LINE__21397; goto __pyx_L1_error;} |
| 21398 | __Pyx_GOTREF(__pyx_t_1); |
| 21399 | if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_c), __pyx_n_s_class, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1037; __pyx_clineno = __LINE__21399; goto __pyx_L1_error;} |
| 21400 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21401 | goto __pyx_L4; |
| 21402 | } |
| 21403 | __pyx_L4:; |
| 21404 | break; |
| 21405 | |
| 21406 | /* "xmmsvalue.pyx":1038 |
| 21407 | * if c.attributes.get("reference", "") == "All Media": |
| 21408 | * c.__class__ = Universe |
| 21409 | * elif colltype == XMMS_COLLECTION_TYPE_IDLIST: # <<<<<<<<<<<<<< |
| 21410 | * if xmmsv_coll_attribute_get_string(coll, "type", &idlist_type): |
| 21411 | * idtype_uni = to_unicode(idlist_type) |
| 21412 | */ |
| 21413 | case XMMS_COLLECTION_TYPE_IDLIST: |
| 21414 | |
| 21415 | /* "xmmsvalue.pyx":1039 |
| 21416 | * c.__class__ = Universe |
| 21417 | * elif colltype == XMMS_COLLECTION_TYPE_IDLIST: |
| 21418 | * if xmmsv_coll_attribute_get_string(coll, "type", &idlist_type): # <<<<<<<<<<<<<< |
| 21419 | * idtype_uni = to_unicode(idlist_type) |
| 21420 | * if idtype_uni == "queue": |
| 21421 | */ |
| 21422 | __pyx_t_4 = (xmmsv_coll_attribute_get_string(__pyx_v_coll, __pyx_k_type, (&__pyx_v_idlist_type)) != 0); |
| 21423 | if (__pyx_t_4) { |
| 21424 | |
| 21425 | /* "xmmsvalue.pyx":1040 |
| 21426 | * elif colltype == XMMS_COLLECTION_TYPE_IDLIST: |
| 21427 | * if xmmsv_coll_attribute_get_string(coll, "type", &idlist_type): |
| 21428 | * idtype_uni = to_unicode(idlist_type) # <<<<<<<<<<<<<< |
| 21429 | * if idtype_uni == "queue": |
| 21430 | * c.__class__ = Queue |
| 21431 | */ |
| 21432 | __pyx_t_1 = __pyx_f_9xmmsutils_to_unicode(__pyx_v_idlist_type); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1040; __pyx_clineno = __LINE__21432; goto __pyx_L1_error;} |
| 21433 | __Pyx_GOTREF(__pyx_t_1); |
| 21434 | __pyx_v_idtype_uni = __pyx_t_1; |
| 21435 | __pyx_t_1 = 0; |
| 21436 | |
| 21437 | /* "xmmsvalue.pyx":1041 |
| 21438 | * if xmmsv_coll_attribute_get_string(coll, "type", &idlist_type): |
| 21439 | * idtype_uni = to_unicode(idlist_type) |
| 21440 | * if idtype_uni == "queue": # <<<<<<<<<<<<<< |
| 21441 | * c.__class__ = Queue |
| 21442 | * elif idtype_uni == "pshuffle": |
| 21443 | */ |
| 21444 | __pyx_t_4 = (__Pyx_PyString_Equals__Pyx_PyBytes_Equals(__pyx_v_idtype_uni, __pyx_n_s_queue, Py_EQ2)); if (unlikely(__pyx_t_4 < 0)__builtin_expect(!!(__pyx_t_4 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1041; __pyx_clineno = __LINE__21444; goto __pyx_L1_error;} |
| 21445 | if (__pyx_t_4) { |
| 21446 | |
| 21447 | /* "xmmsvalue.pyx":1042 |
| 21448 | * idtype_uni = to_unicode(idlist_type) |
| 21449 | * if idtype_uni == "queue": |
| 21450 | * c.__class__ = Queue # <<<<<<<<<<<<<< |
| 21451 | * elif idtype_uni == "pshuffle": |
| 21452 | * c.__class__ = PShuffle |
| 21453 | */ |
| 21454 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Queue); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1042; __pyx_clineno = __LINE__21454; goto __pyx_L1_error;} |
| 21455 | __Pyx_GOTREF(__pyx_t_1); |
| 21456 | if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_c), __pyx_n_s_class, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1042; __pyx_clineno = __LINE__21456; goto __pyx_L1_error;} |
| 21457 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21458 | goto __pyx_L6; |
| 21459 | } |
| 21460 | |
| 21461 | /* "xmmsvalue.pyx":1043 |
| 21462 | * if idtype_uni == "queue": |
| 21463 | * c.__class__ = Queue |
| 21464 | * elif idtype_uni == "pshuffle": # <<<<<<<<<<<<<< |
| 21465 | * c.__class__ = PShuffle |
| 21466 | * |
| 21467 | */ |
| 21468 | __pyx_t_4 = (__Pyx_PyString_Equals__Pyx_PyBytes_Equals(__pyx_v_idtype_uni, __pyx_n_s_pshuffle, Py_EQ2)); if (unlikely(__pyx_t_4 < 0)__builtin_expect(!!(__pyx_t_4 < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1043; __pyx_clineno = __LINE__21468; goto __pyx_L1_error;} |
| 21469 | if (__pyx_t_4) { |
| 21470 | |
| 21471 | /* "xmmsvalue.pyx":1044 |
| 21472 | * c.__class__ = Queue |
| 21473 | * elif idtype_uni == "pshuffle": |
| 21474 | * c.__class__ = PShuffle # <<<<<<<<<<<<<< |
| 21475 | * |
| 21476 | * return c |
| 21477 | */ |
| 21478 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_PShuffle); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; __pyx_clineno = __LINE__21478; goto __pyx_L1_error;} |
| 21479 | __Pyx_GOTREF(__pyx_t_1); |
| 21480 | if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_c), __pyx_n_s_class, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1044; __pyx_clineno = __LINE__21480; goto __pyx_L1_error;} |
| 21481 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21482 | goto __pyx_L6; |
| 21483 | } |
| 21484 | __pyx_L6:; |
| 21485 | goto __pyx_L5; |
| 21486 | } |
| 21487 | __pyx_L5:; |
| 21488 | break; |
| 21489 | default: break; |
| 21490 | } |
| 21491 | |
| 21492 | /* "xmmsvalue.pyx":1046 |
| 21493 | * c.__class__ = PShuffle |
| 21494 | * |
| 21495 | * return c # <<<<<<<<<<<<<< |
| 21496 | * |
| 21497 | * |
| 21498 | */ |
| 21499 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 21500 | __Pyx_INCREF(((PyObject *)__pyx_v_c))( ((PyObject*)(((PyObject *)__pyx_v_c)))->ob_refcnt++); |
| 21501 | __pyx_r = ((PyObject *)__pyx_v_c); |
| 21502 | goto __pyx_L0; |
| 21503 | |
| 21504 | /* "xmmsvalue.pyx":1020 |
| 21505 | * XMMS_COLLECTION_TYPE_IDLIST: IDList, |
| 21506 | * } |
| 21507 | * cdef create_coll(xmmsv_t *coll): # <<<<<<<<<<<<<< |
| 21508 | * cdef xmmsv_coll_type_t colltype |
| 21509 | * cdef Collection c |
| 21510 | */ |
| 21511 | |
| 21512 | /* function exit code */ |
| 21513 | __pyx_L1_error:; |
| 21514 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 21515 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 21516 | __Pyx_AddTraceback("xmmsvalue.create_coll", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 21517 | __pyx_r = 0; |
| 21518 | __pyx_L0:; |
| 21519 | __Pyx_XDECREF((PyObject *)__pyx_v_c)do { if (((PyObject *)__pyx_v_c) == ((void*)0)) ; else do { if ( --((PyObject*)((PyObject *)__pyx_v_c))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)((PyObject *)__pyx_v_c) ))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)((PyObject *)__pyx_v_c)))); } while (0); } while (0); |
| 21520 | __Pyx_XDECREF(__pyx_v_idtype_uni)do { if ((__pyx_v_idtype_uni) == ((void*)0)) ; else do { if ( --((PyObject*)(__pyx_v_idtype_uni))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_idtype_uni)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_idtype_uni )))); } while (0); } while (0); |
| 21521 | __Pyx_XGIVEREF(__pyx_r); |
| 21522 | __Pyx_RefNannyFinishContext(); |
| 21523 | return __pyx_r; |
| 21524 | } |
| 21525 | |
| 21526 | /* "xmmsvalue.pyx":1049 |
| 21527 | * |
| 21528 | * |
| 21529 | * def coll_parse(pattern): # <<<<<<<<<<<<<< |
| 21530 | * cdef xmmsv_t *coll = NULL |
| 21531 | * |
| 21532 | */ |
| 21533 | |
| 21534 | /* Python wrapper */ |
| 21535 | static PyObject *__pyx_pw_9xmmsvalue_1coll_parse(PyObject *__pyx_self, PyObject *__pyx_v_pattern); /*proto*/ |
| 21536 | static char __pyx_doc_9xmmsvalue_coll_parse[] = "coll_parse(pattern)"; |
| 21537 | static PyMethodDef __pyx_mdef_9xmmsvalue_1coll_parse = {__Pyx_NAMESTR("coll_parse")("coll_parse"), (PyCFunction)__pyx_pw_9xmmsvalue_1coll_parse, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_coll_parse)(__pyx_doc_9xmmsvalue_coll_parse)}; |
| 21538 | static PyObject *__pyx_pw_9xmmsvalue_1coll_parse(PyObject *__pyx_self, PyObject *__pyx_v_pattern) { |
| 21539 | PyObject *__pyx_r = 0; |
| 21540 | __Pyx_RefNannyDeclarations |
| 21541 | __Pyx_RefNannySetupContext("coll_parse (wrapper)", 0); |
| 21542 | __pyx_r = __pyx_pf_9xmmsvalue_coll_parse(__pyx_self, ((PyObject *)__pyx_v_pattern)); |
| 21543 | |
| 21544 | /* function exit code */ |
| 21545 | __Pyx_RefNannyFinishContext(); |
| 21546 | return __pyx_r; |
| 21547 | } |
| 21548 | |
| 21549 | static PyObject *__pyx_pf_9xmmsvalue_coll_parse(CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *__pyx_self, PyObject *__pyx_v_pattern) { |
| 21550 | xmmsv_t *__pyx_v_coll; |
| 21551 | PyObject *__pyx_v__pattern = NULL((void*)0); |
| 21552 | PyObject *__pyx_r = NULL((void*)0); |
| 21553 | __Pyx_RefNannyDeclarations |
| 21554 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 21555 | char *__pyx_t_2; |
| 21556 | int __pyx_t_3; |
| 21557 | int __pyx_lineno = 0; |
| 21558 | const char *__pyx_filename = NULL((void*)0); |
| 21559 | int __pyx_clineno = 0; |
| 21560 | __Pyx_RefNannySetupContext("coll_parse", 0); |
| 21561 | |
| 21562 | /* "xmmsvalue.pyx":1050 |
| 21563 | * |
| 21564 | * def coll_parse(pattern): |
| 21565 | * cdef xmmsv_t *coll = NULL # <<<<<<<<<<<<<< |
| 21566 | * |
| 21567 | * _pattern = from_unicode(pattern) |
| 21568 | */ |
| 21569 | __pyx_v_coll = NULL((void*)0); |
| 21570 | |
| 21571 | /* "xmmsvalue.pyx":1052 |
| 21572 | * cdef xmmsv_t *coll = NULL |
| 21573 | * |
| 21574 | * _pattern = from_unicode(pattern) # <<<<<<<<<<<<<< |
| 21575 | * if not xmmsv_coll_parse(<char *>_pattern, &coll): |
| 21576 | * raise ValueError("Unable to parse the pattern") |
| 21577 | */ |
| 21578 | __pyx_t_1 = __pyx_f_9xmmsutils_from_unicode(__pyx_v_pattern); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1052; __pyx_clineno = __LINE__21578; goto __pyx_L1_error;} |
| 21579 | __Pyx_GOTREF(__pyx_t_1); |
| 21580 | __pyx_v__pattern = __pyx_t_1; |
| 21581 | __pyx_t_1 = 0; |
| 21582 | |
| 21583 | /* "xmmsvalue.pyx":1053 |
| 21584 | * |
| 21585 | * _pattern = from_unicode(pattern) |
| 21586 | * if not xmmsv_coll_parse(<char *>_pattern, &coll): # <<<<<<<<<<<<<< |
| 21587 | * raise ValueError("Unable to parse the pattern") |
| 21588 | * return create_coll(coll) |
| 21589 | */ |
| 21590 | __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v__pattern); if (unlikely((!__pyx_t_2) && PyErr_Occurred())__builtin_expect(!!((!__pyx_t_2) && PyErr_Occurred()) , 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1053; __pyx_clineno = __LINE__21590; goto __pyx_L1_error;} |
| 21591 | __pyx_t_3 = ((!(xmmsv_coll_parse(((char *)__pyx_t_2), (&__pyx_v_coll)) != 0)) != 0); |
| 21592 | if (__pyx_t_3) { |
| 21593 | |
| 21594 | /* "xmmsvalue.pyx":1054 |
| 21595 | * _pattern = from_unicode(pattern) |
| 21596 | * if not xmmsv_coll_parse(<char *>_pattern, &coll): |
| 21597 | * raise ValueError("Unable to parse the pattern") # <<<<<<<<<<<<<< |
| 21598 | * return create_coll(coll) |
| 21599 | * |
| 21600 | */ |
| 21601 | __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__38, NULL((void*)0)); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__21601; goto __pyx_L1_error;} |
| 21602 | __Pyx_GOTREF(__pyx_t_1); |
| 21603 | __Pyx_Raise(__pyx_t_1, 0, 0, 0); |
| 21604 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21605 | {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__21605; goto __pyx_L1_error;} |
| 21606 | } |
| 21607 | |
| 21608 | /* "xmmsvalue.pyx":1055 |
| 21609 | * if not xmmsv_coll_parse(<char *>_pattern, &coll): |
| 21610 | * raise ValueError("Unable to parse the pattern") |
| 21611 | * return create_coll(coll) # <<<<<<<<<<<<<< |
| 21612 | * |
| 21613 | * cdef get_default_source_pref(): |
| 21614 | */ |
| 21615 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 21616 | __pyx_t_1 = __pyx_f_9xmmsvalue_create_coll(__pyx_v_coll); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1055; __pyx_clineno = __LINE__21616; goto __pyx_L1_error;} |
| 21617 | __Pyx_GOTREF(__pyx_t_1); |
| 21618 | __pyx_r = __pyx_t_1; |
| 21619 | __pyx_t_1 = 0; |
| 21620 | goto __pyx_L0; |
| 21621 | |
| 21622 | /* "xmmsvalue.pyx":1049 |
| 21623 | * |
| 21624 | * |
| 21625 | * def coll_parse(pattern): # <<<<<<<<<<<<<< |
| 21626 | * cdef xmmsv_t *coll = NULL |
| 21627 | * |
| 21628 | */ |
| 21629 | |
| 21630 | /* function exit code */ |
| 21631 | __pyx_L1_error:; |
| 21632 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 21633 | __Pyx_AddTraceback("xmmsvalue.coll_parse", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 21634 | __pyx_r = NULL((void*)0); |
| 21635 | __pyx_L0:; |
| 21636 | __Pyx_XDECREF(__pyx_v__pattern)do { if ((__pyx_v__pattern) == ((void*)0)) ; else do { if ( -- ((PyObject*)(__pyx_v__pattern))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(__pyx_v__pattern)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_v__pattern)))); } while (0); } while (0); |
| 21637 | __Pyx_XGIVEREF(__pyx_r); |
| 21638 | __Pyx_RefNannyFinishContext(); |
| 21639 | return __pyx_r; |
| 21640 | } |
| 21641 | |
| 21642 | /* "xmmsvalue.pyx":1057 |
| 21643 | * return create_coll(coll) |
| 21644 | * |
| 21645 | * cdef get_default_source_pref(): # <<<<<<<<<<<<<< |
| 21646 | * cdef int i = 0 |
| 21647 | * sourcepref = [] |
| 21648 | */ |
| 21649 | |
| 21650 | static PyObject *__pyx_f_9xmmsvalue_get_default_source_pref(void) { |
| 21651 | int __pyx_v_i; |
| 21652 | PyObject *__pyx_v_sourcepref = NULL((void*)0); |
| 21653 | PyObject *__pyx_r = NULL((void*)0); |
| 21654 | __Pyx_RefNannyDeclarations |
| 21655 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 21656 | int __pyx_t_2; |
| 21657 | int __pyx_t_3; |
| 21658 | int __pyx_lineno = 0; |
| 21659 | const char *__pyx_filename = NULL((void*)0); |
| 21660 | int __pyx_clineno = 0; |
| 21661 | __Pyx_RefNannySetupContext("get_default_source_pref", 0); |
| 21662 | |
| 21663 | /* "xmmsvalue.pyx":1058 |
| 21664 | * |
| 21665 | * cdef get_default_source_pref(): |
| 21666 | * cdef int i = 0 # <<<<<<<<<<<<<< |
| 21667 | * sourcepref = [] |
| 21668 | * while xmmsv_default_source_pref[i] != NULL: |
| 21669 | */ |
| 21670 | __pyx_v_i = 0; |
| 21671 | |
| 21672 | /* "xmmsvalue.pyx":1059 |
| 21673 | * cdef get_default_source_pref(): |
| 21674 | * cdef int i = 0 |
| 21675 | * sourcepref = [] # <<<<<<<<<<<<<< |
| 21676 | * while xmmsv_default_source_pref[i] != NULL: |
| 21677 | * sourcepref.append(to_unicode(xmmsv_default_source_pref[i])) |
| 21678 | */ |
| 21679 | __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1059; __pyx_clineno = __LINE__21679; goto __pyx_L1_error;} |
| 21680 | __Pyx_GOTREF(__pyx_t_1); |
| 21681 | __pyx_v_sourcepref = ((PyObject*)__pyx_t_1); |
| 21682 | __pyx_t_1 = 0; |
| 21683 | |
| 21684 | /* "xmmsvalue.pyx":1060 |
| 21685 | * cdef int i = 0 |
| 21686 | * sourcepref = [] |
| 21687 | * while xmmsv_default_source_pref[i] != NULL: # <<<<<<<<<<<<<< |
| 21688 | * sourcepref.append(to_unicode(xmmsv_default_source_pref[i])) |
| 21689 | * i += 1 |
| 21690 | */ |
| 21691 | while (1) { |
| 21692 | __pyx_t_2 = (((xmmsv_default_source_pref[__pyx_v_i]) != NULL((void*)0)) != 0); |
| 21693 | if (!__pyx_t_2) break; |
| 21694 | |
| 21695 | /* "xmmsvalue.pyx":1061 |
| 21696 | * sourcepref = [] |
| 21697 | * while xmmsv_default_source_pref[i] != NULL: |
| 21698 | * sourcepref.append(to_unicode(xmmsv_default_source_pref[i])) # <<<<<<<<<<<<<< |
| 21699 | * i += 1 |
| 21700 | * return sourcepref |
| 21701 | */ |
| 21702 | __pyx_t_1 = __pyx_f_9xmmsutils_to_unicode((xmmsv_default_source_pref[__pyx_v_i])); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1061; __pyx_clineno = __LINE__21702; goto __pyx_L1_error;} |
| 21703 | __Pyx_GOTREF(__pyx_t_1); |
| 21704 | __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_sourcepref, __pyx_t_1); if (unlikely(__pyx_t_3 == -1)__builtin_expect(!!(__pyx_t_3 == -1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1061; __pyx_clineno = __LINE__21704; goto __pyx_L1_error;} |
| 21705 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 21706 | |
| 21707 | /* "xmmsvalue.pyx":1062 |
| 21708 | * while xmmsv_default_source_pref[i] != NULL: |
| 21709 | * sourcepref.append(to_unicode(xmmsv_default_source_pref[i])) |
| 21710 | * i += 1 # <<<<<<<<<<<<<< |
| 21711 | * return sourcepref |
| 21712 | */ |
| 21713 | __pyx_v_i = (__pyx_v_i + 1); |
| 21714 | } |
| 21715 | |
| 21716 | /* "xmmsvalue.pyx":1063 |
| 21717 | * sourcepref.append(to_unicode(xmmsv_default_source_pref[i])) |
| 21718 | * i += 1 |
| 21719 | * return sourcepref # <<<<<<<<<<<<<< |
| 21720 | */ |
| 21721 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 21722 | __Pyx_INCREF(__pyx_v_sourcepref)( ((PyObject*)(__pyx_v_sourcepref))->ob_refcnt++); |
| 21723 | __pyx_r = __pyx_v_sourcepref; |
| 21724 | goto __pyx_L0; |
| 21725 | |
| 21726 | /* "xmmsvalue.pyx":1057 |
| 21727 | * return create_coll(coll) |
| 21728 | * |
| 21729 | * cdef get_default_source_pref(): # <<<<<<<<<<<<<< |
| 21730 | * cdef int i = 0 |
| 21731 | * sourcepref = [] |
| 21732 | */ |
| 21733 | |
| 21734 | /* function exit code */ |
| 21735 | __pyx_L1_error:; |
| 21736 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 21737 | __Pyx_AddTraceback("xmmsvalue.get_default_source_pref", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 21738 | __pyx_r = 0; |
| 21739 | __pyx_L0:; |
| 21740 | __Pyx_XDECREF(__pyx_v_sourcepref)do { if ((__pyx_v_sourcepref) == ((void*)0)) ; else do { if ( --((PyObject*)(__pyx_v_sourcepref))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_v_sourcepref)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(__pyx_v_sourcepref )))); } while (0); } while (0); |
| 21741 | __Pyx_XGIVEREF(__pyx_r); |
| 21742 | __Pyx_RefNannyFinishContext(); |
| 21743 | return __pyx_r; |
| 21744 | } |
| 21745 | |
| 21746 | /* "xmmsutils.pxd":4 |
| 21747 | * from libc.string cimport const_char, strlen |
| 21748 | * |
| 21749 | * cdef inline to_unicode(const_char *s): # <<<<<<<<<<<<<< |
| 21750 | * return PyUnicode_DecodeUTF8(s, strlen(s), "replace") |
| 21751 | * |
| 21752 | */ |
| 21753 | |
| 21754 | static CYTHON_INLINE__inline__ PyObject *__pyx_f_9xmmsutils_to_unicode(const char *__pyx_v_s) { |
| 21755 | PyObject *__pyx_r = NULL((void*)0); |
| 21756 | __Pyx_RefNannyDeclarations |
| 21757 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 21758 | int __pyx_lineno = 0; |
| 21759 | const char *__pyx_filename = NULL((void*)0); |
| 21760 | int __pyx_clineno = 0; |
| 21761 | __Pyx_RefNannySetupContext("to_unicode", 0); |
| 21762 | |
| 21763 | /* "xmmsutils.pxd":5 |
| 21764 | * |
| 21765 | * cdef inline to_unicode(const_char *s): |
| 21766 | * return PyUnicode_DecodeUTF8(s, strlen(s), "replace") # <<<<<<<<<<<<<< |
| 21767 | * |
| 21768 | * cdef inline from_unicode(object o): |
| 21769 | */ |
| 21770 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 21771 | __pyx_t_1 = PyUnicode_DecodeUTF8PyUnicodeUCS4_DecodeUTF8(__pyx_v_s, strlen(__pyx_v_s), __pyx_k_replace); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 5; __pyx_clineno = __LINE__21771; goto __pyx_L1_error;} |
| 21772 | __Pyx_GOTREF(__pyx_t_1); |
| 21773 | __pyx_r = __pyx_t_1; |
| 21774 | __pyx_t_1 = 0; |
| 21775 | goto __pyx_L0; |
| 21776 | |
| 21777 | /* "xmmsutils.pxd":4 |
| 21778 | * from libc.string cimport const_char, strlen |
| 21779 | * |
| 21780 | * cdef inline to_unicode(const_char *s): # <<<<<<<<<<<<<< |
| 21781 | * return PyUnicode_DecodeUTF8(s, strlen(s), "replace") |
| 21782 | * |
| 21783 | */ |
| 21784 | |
| 21785 | /* function exit code */ |
| 21786 | __pyx_L1_error:; |
| 21787 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 21788 | __Pyx_AddTraceback("xmmsutils.to_unicode", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 21789 | __pyx_r = 0; |
| 21790 | __pyx_L0:; |
| 21791 | __Pyx_XGIVEREF(__pyx_r); |
| 21792 | __Pyx_RefNannyFinishContext(); |
| 21793 | return __pyx_r; |
| 21794 | } |
| 21795 | |
| 21796 | /* "xmmsutils.pxd":7 |
| 21797 | * return PyUnicode_DecodeUTF8(s, strlen(s), "replace") |
| 21798 | * |
| 21799 | * cdef inline from_unicode(object o): # <<<<<<<<<<<<<< |
| 21800 | * if isinstance(o, unicode): |
| 21801 | * return PyUnicode_AsUTF8String(o) |
| 21802 | */ |
| 21803 | |
| 21804 | static CYTHON_INLINE__inline__ PyObject *__pyx_f_9xmmsutils_from_unicode(PyObject *__pyx_v_o) { |
| 21805 | PyObject *__pyx_r = NULL((void*)0); |
| 21806 | __Pyx_RefNannyDeclarations |
| 21807 | int __pyx_t_1; |
| 21808 | int __pyx_t_2; |
| 21809 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 21810 | int __pyx_lineno = 0; |
| 21811 | const char *__pyx_filename = NULL((void*)0); |
| 21812 | int __pyx_clineno = 0; |
| 21813 | __Pyx_RefNannySetupContext("from_unicode", 0); |
| 21814 | |
| 21815 | /* "xmmsutils.pxd":8 |
| 21816 | * |
| 21817 | * cdef inline from_unicode(object o): |
| 21818 | * if isinstance(o, unicode): # <<<<<<<<<<<<<< |
| 21819 | * return PyUnicode_AsUTF8String(o) |
| 21820 | * else: |
| 21821 | */ |
| 21822 | __pyx_t_1 = PyUnicode_Check(__pyx_v_o)((((((PyObject*)(__pyx_v_o))->ob_type))->tp_flags & ((1L<<28))) != 0); |
| 21823 | __pyx_t_2 = (__pyx_t_1 != 0); |
| 21824 | if (__pyx_t_2) { |
| 21825 | |
| 21826 | /* "xmmsutils.pxd":9 |
| 21827 | * cdef inline from_unicode(object o): |
| 21828 | * if isinstance(o, unicode): |
| 21829 | * return PyUnicode_AsUTF8String(o) # <<<<<<<<<<<<<< |
| 21830 | * else: |
| 21831 | * return o |
| 21832 | */ |
| 21833 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 21834 | __pyx_t_3 = PyUnicode_AsUTF8StringPyUnicodeUCS4_AsUTF8String(__pyx_v_o); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 9; __pyx_clineno = __LINE__21834; goto __pyx_L1_error;} |
| 21835 | __Pyx_GOTREF(__pyx_t_3); |
| 21836 | __pyx_r = __pyx_t_3; |
| 21837 | __pyx_t_3 = 0; |
| 21838 | goto __pyx_L0; |
| 21839 | } |
| 21840 | /*else*/ { |
| 21841 | |
| 21842 | /* "xmmsutils.pxd":11 |
| 21843 | * return PyUnicode_AsUTF8String(o) |
| 21844 | * else: |
| 21845 | * return o # <<<<<<<<<<<<<< |
| 21846 | */ |
| 21847 | __Pyx_XDECREF(__pyx_r)do { if ((__pyx_r) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_r))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_r)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_r)))); } while (0); } while (0); |
| 21848 | __Pyx_INCREF(__pyx_v_o)( ((PyObject*)(__pyx_v_o))->ob_refcnt++); |
| 21849 | __pyx_r = __pyx_v_o; |
| 21850 | goto __pyx_L0; |
| 21851 | } |
| 21852 | |
| 21853 | /* "xmmsutils.pxd":7 |
| 21854 | * return PyUnicode_DecodeUTF8(s, strlen(s), "replace") |
| 21855 | * |
| 21856 | * cdef inline from_unicode(object o): # <<<<<<<<<<<<<< |
| 21857 | * if isinstance(o, unicode): |
| 21858 | * return PyUnicode_AsUTF8String(o) |
| 21859 | */ |
| 21860 | |
| 21861 | /* function exit code */ |
| 21862 | __pyx_L1_error:; |
| 21863 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 21864 | __Pyx_AddTraceback("xmmsutils.from_unicode", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 21865 | __pyx_r = 0; |
| 21866 | __pyx_L0:; |
| 21867 | __Pyx_XGIVEREF(__pyx_r); |
| 21868 | __Pyx_RefNannyFinishContext(); |
| 21869 | return __pyx_r; |
| 21870 | } |
| 21871 | static struct __pyx_vtabstruct_9xmmsvalue_XmmsValue __pyx_vtable_9xmmsvalue_XmmsValue; |
| 21872 | |
| 21873 | static PyObject *__pyx_tp_new_9xmmsvalue_XmmsValue(PyTypeObject *t, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *a, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *k) { |
| 21874 | struct __pyx_obj_9xmmsvalue_XmmsValue *p; |
| 21875 | PyObject *o; |
| 21876 | if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)__builtin_expect(!!((t->tp_flags & (1L<<20)) == 0 ), 1)) { |
| 21877 | o = (*t->tp_alloc)(t, 0); |
| 21878 | } else { |
| 21879 | o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); |
| 21880 | } |
| 21881 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 21882 | p = ((struct __pyx_obj_9xmmsvalue_XmmsValue *)o); |
| 21883 | p->__pyx_vtab = __pyx_vtabptr_9xmmsvalue_XmmsValue; |
| 21884 | p->sourcepref = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 21885 | if (unlikely(__pyx_pw_9xmmsvalue_9XmmsValue_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)__builtin_expect(!!(__pyx_pw_9xmmsvalue_9XmmsValue_1__cinit__ (o, __pyx_empty_tuple, ((void*)0)) < 0), 0)) { |
| 21886 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); o = 0; |
| 21887 | } |
| 21888 | return o; |
| 21889 | } |
| 21890 | |
| 21891 | static void __pyx_tp_dealloc_9xmmsvalue_XmmsValue(PyObject *o) { |
| 21892 | struct __pyx_obj_9xmmsvalue_XmmsValue *p = (struct __pyx_obj_9xmmsvalue_XmmsValue *)o; |
| 21893 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 21894 | if (unlikely(Py_TYPE(o)->tp_finalize)__builtin_expect(!!((((PyObject*)(o))->ob_type)->tp_finalize ), 0) && !_PyGC_FINALIZED(o)) { |
| 21895 | if (PyObject_CallFinalizerFromDealloc(o)) return; |
| 21896 | } |
| 21897 | #endif |
| 21898 | PyObject_GC_UnTrack(o); |
| 21899 | { |
| 21900 | PyObject *etype, *eval, *etb; |
| 21901 | PyErr_Fetch(&etype, &eval, &etb); |
| 21902 | ++Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 21903 | __pyx_pw_9xmmsvalue_9XmmsValue_5__dealloc__(o); |
| 21904 | --Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 21905 | PyErr_Restore(etype, eval, etb); |
| 21906 | } |
| 21907 | Py_CLEAR(p->sourcepref)do { if (p->sourcepref) { PyObject *_py_tmp = (PyObject *) (p->sourcepref); (p->sourcepref) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 21908 | (*Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_free)(o); |
| 21909 | } |
| 21910 | |
| 21911 | static int __pyx_tp_traverse_9xmmsvalue_XmmsValue(PyObject *o, visitproc v, void *a) { |
| 21912 | int e; |
| 21913 | struct __pyx_obj_9xmmsvalue_XmmsValue *p = (struct __pyx_obj_9xmmsvalue_XmmsValue *)o; |
| 21914 | if (p->sourcepref) { |
| 21915 | e = (*v)(p->sourcepref, a); if (e) return e; |
| 21916 | } |
| 21917 | return 0; |
| 21918 | } |
| 21919 | |
| 21920 | static int __pyx_tp_clear_9xmmsvalue_XmmsValue(PyObject *o) { |
| 21921 | PyObject* tmp; |
| 21922 | struct __pyx_obj_9xmmsvalue_XmmsValue *p = (struct __pyx_obj_9xmmsvalue_XmmsValue *)o; |
| 21923 | tmp = ((PyObject*)p->sourcepref); |
| 21924 | p->sourcepref = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 21925 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 21926 | return 0; |
| 21927 | } |
| 21928 | |
| 21929 | static PyMethodDef __pyx_methods_9xmmsvalue_XmmsValue[] = { |
| 21930 | {__Pyx_NAMESTR("set_pyval")("set_pyval"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_7set_pyval, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_6set_pyval)(__pyx_doc_9xmmsvalue_9XmmsValue_6set_pyval)}, |
| 21931 | {__Pyx_NAMESTR("get_type")("get_type"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_9get_type, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_8get_type)(__pyx_doc_9xmmsvalue_9XmmsValue_8get_type)}, |
| 21932 | {__Pyx_NAMESTR("iserror")("iserror"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_11iserror, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_10iserror)(__pyx_doc_9xmmsvalue_9XmmsValue_10iserror)}, |
| 21933 | {__Pyx_NAMESTR("is_error")("is_error"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_13is_error, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_12is_error)(__pyx_doc_9xmmsvalue_9XmmsValue_12is_error)}, |
| 21934 | {__Pyx_NAMESTR("get_error")("get_error"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_15get_error, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_14get_error)(__pyx_doc_9xmmsvalue_9XmmsValue_14get_error)}, |
| 21935 | {__Pyx_NAMESTR("get_int")("get_int"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_17get_int, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_16get_int)(__pyx_doc_9xmmsvalue_9XmmsValue_16get_int)}, |
| 21936 | {__Pyx_NAMESTR("get_float")("get_float"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_19get_float, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_18get_float)(__pyx_doc_9xmmsvalue_9XmmsValue_18get_float)}, |
| 21937 | {__Pyx_NAMESTR("get_string")("get_string"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_21get_string, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_20get_string)(__pyx_doc_9xmmsvalue_9XmmsValue_20get_string)}, |
| 21938 | {__Pyx_NAMESTR("get_bin")("get_bin"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_23get_bin, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_22get_bin)(__pyx_doc_9xmmsvalue_9XmmsValue_22get_bin)}, |
| 21939 | {__Pyx_NAMESTR("get_coll")("get_coll"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_25get_coll, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_24get_coll)(__pyx_doc_9xmmsvalue_9XmmsValue_24get_coll)}, |
| 21940 | {__Pyx_NAMESTR("get_dict")("get_dict"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_27get_dict, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_26get_dict)(__pyx_doc_9xmmsvalue_9XmmsValue_26get_dict)}, |
| 21941 | {__Pyx_NAMESTR("get_dict_iter")("get_dict_iter"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_29get_dict_iter, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_28get_dict_iter)(__pyx_doc_9xmmsvalue_9XmmsValue_28get_dict_iter)}, |
| 21942 | {__Pyx_NAMESTR("get_propdict")("get_propdict"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_31get_propdict, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_30get_propdict)(__pyx_doc_9xmmsvalue_9XmmsValue_30get_propdict)}, |
| 21943 | {__Pyx_NAMESTR("get_list")("get_list"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_33get_list, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_32get_list)(__pyx_doc_9xmmsvalue_9XmmsValue_32get_list)}, |
| 21944 | {__Pyx_NAMESTR("get_list_iter")("get_list_iter"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_35get_list_iter, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_34get_list_iter)(__pyx_doc_9xmmsvalue_9XmmsValue_34get_list_iter)}, |
| 21945 | {__Pyx_NAMESTR("value")("value"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_37value, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_36value)(__pyx_doc_9xmmsvalue_9XmmsValue_36value)}, |
| 21946 | {__Pyx_NAMESTR("copy")("copy"), (PyCFunction)__pyx_pw_9xmmsvalue_9XmmsValue_39copy, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_9XmmsValue_38copy)(__pyx_doc_9xmmsvalue_9XmmsValue_38copy)}, |
| 21947 | {0, 0, 0, 0} |
| 21948 | }; |
| 21949 | |
| 21950 | static PyTypeObject __pyx_type_9xmmsvalue_XmmsValue = { |
| 21951 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 21952 | __Pyx_NAMESTR("xmmsvalue.XmmsValue")("xmmsvalue.XmmsValue"), /*tp_name*/ |
| 21953 | sizeof(struct __pyx_obj_9xmmsvalue_XmmsValue), /*tp_basicsize*/ |
| 21954 | 0, /*tp_itemsize*/ |
| 21955 | __pyx_tp_dealloc_9xmmsvalue_XmmsValue, /*tp_dealloc*/ |
| 21956 | 0, /*tp_print*/ |
| 21957 | 0, /*tp_getattr*/ |
| 21958 | 0, /*tp_setattr*/ |
| 21959 | #if PY_MAJOR_VERSION2 < 3 |
| 21960 | 0, /*tp_compare*/ |
| 21961 | #else |
| 21962 | 0, /*reserved*/ |
| 21963 | #endif |
| 21964 | 0, /*tp_repr*/ |
| 21965 | 0, /*tp_as_number*/ |
| 21966 | 0, /*tp_as_sequence*/ |
| 21967 | 0, /*tp_as_mapping*/ |
| 21968 | 0, /*tp_hash*/ |
| 21969 | 0, /*tp_call*/ |
| 21970 | 0, /*tp_str*/ |
| 21971 | 0, /*tp_getattro*/ |
| 21972 | 0, /*tp_setattro*/ |
| 21973 | 0, /*tp_as_buffer*/ |
| 21974 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10)|Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/ |
| 21975 | __Pyx_DOCSTR("XmmsValue(sourcepref=None, pyval=None)")("XmmsValue(sourcepref=None, pyval=None)"), /*tp_doc*/ |
| 21976 | __pyx_tp_traverse_9xmmsvalue_XmmsValue, /*tp_traverse*/ |
| 21977 | __pyx_tp_clear_9xmmsvalue_XmmsValue, /*tp_clear*/ |
| 21978 | 0, /*tp_richcompare*/ |
| 21979 | 0, /*tp_weaklistoffset*/ |
| 21980 | __pyx_pw_9xmmsvalue_9XmmsValue_41__iter__, /*tp_iter*/ |
| 21981 | 0, /*tp_iternext*/ |
| 21982 | __pyx_methods_9xmmsvalue_XmmsValue, /*tp_methods*/ |
| 21983 | 0, /*tp_members*/ |
| 21984 | 0, /*tp_getset*/ |
| 21985 | 0, /*tp_base*/ |
| 21986 | 0, /*tp_dict*/ |
| 21987 | 0, /*tp_descr_get*/ |
| 21988 | 0, /*tp_descr_set*/ |
| 21989 | 0, /*tp_dictoffset*/ |
| 21990 | __pyx_pw_9xmmsvalue_9XmmsValue_3__init__, /*tp_init*/ |
| 21991 | 0, /*tp_alloc*/ |
| 21992 | __pyx_tp_new_9xmmsvalue_XmmsValue, /*tp_new*/ |
| 21993 | 0, /*tp_free*/ |
| 21994 | 0, /*tp_is_gc*/ |
| 21995 | 0, /*tp_bases*/ |
| 21996 | 0, /*tp_mro*/ |
| 21997 | 0, /*tp_cache*/ |
| 21998 | 0, /*tp_subclasses*/ |
| 21999 | 0, /*tp_weaklist*/ |
| 22000 | 0, /*tp_del*/ |
| 22001 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 22002 | 0, /*tp_version_tag*/ |
| 22003 | #endif |
| 22004 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22005 | 0, /*tp_finalize*/ |
| 22006 | #endif |
| 22007 | }; |
| 22008 | static struct __pyx_vtabstruct_9xmmsvalue_XmmsValueC2C __pyx_vtable_9xmmsvalue_XmmsValueC2C; |
| 22009 | |
| 22010 | static PyObject *__pyx_tp_new_9xmmsvalue_XmmsValueC2C(PyTypeObject *t, PyObject *a, PyObject *k) { |
| 22011 | struct __pyx_obj_9xmmsvalue_XmmsValueC2C *p; |
| 22012 | PyObject *o = __pyx_tp_new_9xmmsvalue_XmmsValue(t, a, k); |
| 22013 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 22014 | p = ((struct __pyx_obj_9xmmsvalue_XmmsValueC2C *)o); |
| 22015 | p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9xmmsvalue_XmmsValue*)__pyx_vtabptr_9xmmsvalue_XmmsValueC2C; |
| 22016 | return o; |
| 22017 | } |
| 22018 | |
| 22019 | static PyObject *__pyx_getprop_9xmmsvalue_12XmmsValueC2C_sender(PyObject *o, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22020 | return __pyx_pw_9xmmsvalue_12XmmsValueC2C_6sender_1__get__(o); |
| 22021 | } |
| 22022 | |
| 22023 | static PyObject *__pyx_getprop_9xmmsvalue_12XmmsValueC2C_id(PyObject *o, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22024 | return __pyx_pw_9xmmsvalue_12XmmsValueC2C_2id_1__get__(o); |
| 22025 | } |
| 22026 | |
| 22027 | static PyObject *__pyx_getprop_9xmmsvalue_12XmmsValueC2C_destination(PyObject *o, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22028 | return __pyx_pw_9xmmsvalue_12XmmsValueC2C_11destination_1__get__(o); |
| 22029 | } |
| 22030 | |
| 22031 | static PyObject *__pyx_getprop_9xmmsvalue_12XmmsValueC2C_payload(PyObject *o, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22032 | return __pyx_pw_9xmmsvalue_12XmmsValueC2C_7payload_1__get__(o); |
| 22033 | } |
| 22034 | |
| 22035 | static struct PyGetSetDef __pyx_getsets_9xmmsvalue_XmmsValueC2C[] = { |
| 22036 | {(char *)"sender", __pyx_getprop_9xmmsvalue_12XmmsValueC2C_sender, 0, 0, 0}, |
| 22037 | {(char *)"id", __pyx_getprop_9xmmsvalue_12XmmsValueC2C_id, 0, 0, 0}, |
| 22038 | {(char *)"destination", __pyx_getprop_9xmmsvalue_12XmmsValueC2C_destination, 0, 0, 0}, |
| 22039 | {(char *)"payload", __pyx_getprop_9xmmsvalue_12XmmsValueC2C_payload, 0, 0, 0}, |
| 22040 | {0, 0, 0, 0, 0} |
| 22041 | }; |
| 22042 | |
| 22043 | static PyTypeObject __pyx_type_9xmmsvalue_XmmsValueC2C = { |
| 22044 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 22045 | __Pyx_NAMESTR("xmmsvalue.XmmsValueC2C")("xmmsvalue.XmmsValueC2C"), /*tp_name*/ |
| 22046 | sizeof(struct __pyx_obj_9xmmsvalue_XmmsValueC2C), /*tp_basicsize*/ |
| 22047 | 0, /*tp_itemsize*/ |
| 22048 | __pyx_tp_dealloc_9xmmsvalue_XmmsValue, /*tp_dealloc*/ |
| 22049 | 0, /*tp_print*/ |
| 22050 | 0, /*tp_getattr*/ |
| 22051 | 0, /*tp_setattr*/ |
| 22052 | #if PY_MAJOR_VERSION2 < 3 |
| 22053 | 0, /*tp_compare*/ |
| 22054 | #else |
| 22055 | 0, /*reserved*/ |
| 22056 | #endif |
| 22057 | 0, /*tp_repr*/ |
| 22058 | 0, /*tp_as_number*/ |
| 22059 | 0, /*tp_as_sequence*/ |
| 22060 | 0, /*tp_as_mapping*/ |
| 22061 | 0, /*tp_hash*/ |
| 22062 | 0, /*tp_call*/ |
| 22063 | 0, /*tp_str*/ |
| 22064 | 0, /*tp_getattro*/ |
| 22065 | 0, /*tp_setattro*/ |
| 22066 | 0, /*tp_as_buffer*/ |
| 22067 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10)|Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/ |
| 22068 | 0, /*tp_doc*/ |
| 22069 | __pyx_tp_traverse_9xmmsvalue_XmmsValue, /*tp_traverse*/ |
| 22070 | __pyx_tp_clear_9xmmsvalue_XmmsValue, /*tp_clear*/ |
| 22071 | 0, /*tp_richcompare*/ |
| 22072 | 0, /*tp_weaklistoffset*/ |
| 22073 | #if CYTHON_COMPILING_IN_PYPY0 |
| 22074 | __pyx_pw_9xmmsvalue_9XmmsValue_41__iter__, /*tp_iter*/ |
| 22075 | #else |
| 22076 | 0, /*tp_iter*/ |
| 22077 | #endif |
| 22078 | 0, /*tp_iternext*/ |
| 22079 | 0, /*tp_methods*/ |
| 22080 | 0, /*tp_members*/ |
| 22081 | __pyx_getsets_9xmmsvalue_XmmsValueC2C, /*tp_getset*/ |
| 22082 | 0, /*tp_base*/ |
| 22083 | 0, /*tp_dict*/ |
| 22084 | 0, /*tp_descr_get*/ |
| 22085 | 0, /*tp_descr_set*/ |
| 22086 | 0, /*tp_dictoffset*/ |
| 22087 | #if CYTHON_COMPILING_IN_PYPY0 |
| 22088 | __pyx_pw_9xmmsvalue_9XmmsValue_3__init__, /*tp_init*/ |
| 22089 | #else |
| 22090 | 0, /*tp_init*/ |
| 22091 | #endif |
| 22092 | 0, /*tp_alloc*/ |
| 22093 | __pyx_tp_new_9xmmsvalue_XmmsValueC2C, /*tp_new*/ |
| 22094 | 0, /*tp_free*/ |
| 22095 | 0, /*tp_is_gc*/ |
| 22096 | 0, /*tp_bases*/ |
| 22097 | 0, /*tp_mro*/ |
| 22098 | 0, /*tp_cache*/ |
| 22099 | 0, /*tp_subclasses*/ |
| 22100 | 0, /*tp_weaklist*/ |
| 22101 | 0, /*tp_del*/ |
| 22102 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 22103 | 0, /*tp_version_tag*/ |
| 22104 | #endif |
| 22105 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22106 | 0, /*tp_finalize*/ |
| 22107 | #endif |
| 22108 | }; |
| 22109 | |
| 22110 | static PyObject *__pyx_tp_new_9xmmsvalue_XmmsListIter(PyTypeObject *t, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *a, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *k) { |
| 22111 | struct __pyx_obj_9xmmsvalue_XmmsListIter *p; |
| 22112 | PyObject *o; |
| 22113 | if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)__builtin_expect(!!((t->tp_flags & (1L<<20)) == 0 ), 1)) { |
| 22114 | o = (*t->tp_alloc)(t, 0); |
| 22115 | } else { |
| 22116 | o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); |
| 22117 | } |
| 22118 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 22119 | p = ((struct __pyx_obj_9xmmsvalue_XmmsListIter *)o); |
| 22120 | p->sourcepref = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22121 | if (unlikely(__pyx_pw_9xmmsvalue_12XmmsListIter_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)__builtin_expect(!!(__pyx_pw_9xmmsvalue_12XmmsListIter_1__cinit__ (o, __pyx_empty_tuple, ((void*)0)) < 0), 0)) { |
| 22122 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); o = 0; |
| 22123 | } |
| 22124 | return o; |
| 22125 | } |
| 22126 | |
| 22127 | static void __pyx_tp_dealloc_9xmmsvalue_XmmsListIter(PyObject *o) { |
| 22128 | struct __pyx_obj_9xmmsvalue_XmmsListIter *p = (struct __pyx_obj_9xmmsvalue_XmmsListIter *)o; |
| 22129 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22130 | if (unlikely(Py_TYPE(o)->tp_finalize)__builtin_expect(!!((((PyObject*)(o))->ob_type)->tp_finalize ), 0) && !_PyGC_FINALIZED(o)) { |
| 22131 | if (PyObject_CallFinalizerFromDealloc(o)) return; |
| 22132 | } |
| 22133 | #endif |
| 22134 | PyObject_GC_UnTrack(o); |
| 22135 | { |
| 22136 | PyObject *etype, *eval, *etb; |
| 22137 | PyErr_Fetch(&etype, &eval, &etb); |
| 22138 | ++Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 22139 | __pyx_pw_9xmmsvalue_12XmmsListIter_3__dealloc__(o); |
| 22140 | --Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 22141 | PyErr_Restore(etype, eval, etb); |
| 22142 | } |
| 22143 | Py_CLEAR(p->sourcepref)do { if (p->sourcepref) { PyObject *_py_tmp = (PyObject *) (p->sourcepref); (p->sourcepref) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 22144 | (*Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_free)(o); |
| 22145 | } |
| 22146 | |
| 22147 | static int __pyx_tp_traverse_9xmmsvalue_XmmsListIter(PyObject *o, visitproc v, void *a) { |
| 22148 | int e; |
| 22149 | struct __pyx_obj_9xmmsvalue_XmmsListIter *p = (struct __pyx_obj_9xmmsvalue_XmmsListIter *)o; |
| 22150 | if (p->sourcepref) { |
| 22151 | e = (*v)(p->sourcepref, a); if (e) return e; |
| 22152 | } |
| 22153 | return 0; |
| 22154 | } |
| 22155 | |
| 22156 | static int __pyx_tp_clear_9xmmsvalue_XmmsListIter(PyObject *o) { |
| 22157 | PyObject* tmp; |
| 22158 | struct __pyx_obj_9xmmsvalue_XmmsListIter *p = (struct __pyx_obj_9xmmsvalue_XmmsListIter *)o; |
| 22159 | tmp = ((PyObject*)p->sourcepref); |
| 22160 | p->sourcepref = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22161 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 22162 | return 0; |
| 22163 | } |
| 22164 | |
| 22165 | static PyMethodDef __pyx_methods_9xmmsvalue_XmmsListIter[] = { |
| 22166 | {__Pyx_NAMESTR("__next__")("__next__"), (PyCFunction)__pyx_pw_9xmmsvalue_12XmmsListIter_9__next__, METH_NOARGS0x0004|METH_COEXIST0x0040, __Pyx_DOCSTR(0)(0)}, |
| 22167 | {0, 0, 0, 0} |
| 22168 | }; |
| 22169 | |
| 22170 | static PyTypeObject __pyx_type_9xmmsvalue_XmmsListIter = { |
| 22171 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 22172 | __Pyx_NAMESTR("xmmsvalue.XmmsListIter")("xmmsvalue.XmmsListIter"), /*tp_name*/ |
| 22173 | sizeof(struct __pyx_obj_9xmmsvalue_XmmsListIter), /*tp_basicsize*/ |
| 22174 | 0, /*tp_itemsize*/ |
| 22175 | __pyx_tp_dealloc_9xmmsvalue_XmmsListIter, /*tp_dealloc*/ |
| 22176 | 0, /*tp_print*/ |
| 22177 | 0, /*tp_getattr*/ |
| 22178 | 0, /*tp_setattr*/ |
| 22179 | #if PY_MAJOR_VERSION2 < 3 |
| 22180 | 0, /*tp_compare*/ |
| 22181 | #else |
| 22182 | 0, /*reserved*/ |
| 22183 | #endif |
| 22184 | 0, /*tp_repr*/ |
| 22185 | 0, /*tp_as_number*/ |
| 22186 | 0, /*tp_as_sequence*/ |
| 22187 | 0, /*tp_as_mapping*/ |
| 22188 | 0, /*tp_hash*/ |
| 22189 | 0, /*tp_call*/ |
| 22190 | 0, /*tp_str*/ |
| 22191 | 0, /*tp_getattro*/ |
| 22192 | 0, /*tp_setattro*/ |
| 22193 | 0, /*tp_as_buffer*/ |
| 22194 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10)|Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/ |
| 22195 | __Pyx_DOCSTR("XmmsListIter(XmmsValue value)")("XmmsListIter(XmmsValue value)"), /*tp_doc*/ |
| 22196 | __pyx_tp_traverse_9xmmsvalue_XmmsListIter, /*tp_traverse*/ |
| 22197 | __pyx_tp_clear_9xmmsvalue_XmmsListIter, /*tp_clear*/ |
| 22198 | 0, /*tp_richcompare*/ |
| 22199 | 0, /*tp_weaklistoffset*/ |
| 22200 | __pyx_pw_9xmmsvalue_12XmmsListIter_7__iter__, /*tp_iter*/ |
| 22201 | __pyx_pw_9xmmsvalue_12XmmsListIter_9__next__, /*tp_iternext*/ |
| 22202 | __pyx_methods_9xmmsvalue_XmmsListIter, /*tp_methods*/ |
| 22203 | 0, /*tp_members*/ |
| 22204 | 0, /*tp_getset*/ |
| 22205 | 0, /*tp_base*/ |
| 22206 | 0, /*tp_dict*/ |
| 22207 | 0, /*tp_descr_get*/ |
| 22208 | 0, /*tp_descr_set*/ |
| 22209 | 0, /*tp_dictoffset*/ |
| 22210 | __pyx_pw_9xmmsvalue_12XmmsListIter_5__init__, /*tp_init*/ |
| 22211 | 0, /*tp_alloc*/ |
| 22212 | __pyx_tp_new_9xmmsvalue_XmmsListIter, /*tp_new*/ |
| 22213 | 0, /*tp_free*/ |
| 22214 | 0, /*tp_is_gc*/ |
| 22215 | 0, /*tp_bases*/ |
| 22216 | 0, /*tp_mro*/ |
| 22217 | 0, /*tp_cache*/ |
| 22218 | 0, /*tp_subclasses*/ |
| 22219 | 0, /*tp_weaklist*/ |
| 22220 | 0, /*tp_del*/ |
| 22221 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 22222 | 0, /*tp_version_tag*/ |
| 22223 | #endif |
| 22224 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22225 | 0, /*tp_finalize*/ |
| 22226 | #endif |
| 22227 | }; |
| 22228 | |
| 22229 | static PyObject *__pyx_tp_new_9xmmsvalue_XmmsDictIter(PyTypeObject *t, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *a, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *k) { |
| 22230 | struct __pyx_obj_9xmmsvalue_XmmsDictIter *p; |
| 22231 | PyObject *o; |
| 22232 | if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)__builtin_expect(!!((t->tp_flags & (1L<<20)) == 0 ), 1)) { |
| 22233 | o = (*t->tp_alloc)(t, 0); |
| 22234 | } else { |
| 22235 | o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); |
| 22236 | } |
| 22237 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 22238 | p = ((struct __pyx_obj_9xmmsvalue_XmmsDictIter *)o); |
| 22239 | p->sourcepref = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22240 | if (unlikely(__pyx_pw_9xmmsvalue_12XmmsDictIter_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)__builtin_expect(!!(__pyx_pw_9xmmsvalue_12XmmsDictIter_1__cinit__ (o, __pyx_empty_tuple, ((void*)0)) < 0), 0)) { |
| 22241 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); o = 0; |
| 22242 | } |
| 22243 | return o; |
| 22244 | } |
| 22245 | |
| 22246 | static void __pyx_tp_dealloc_9xmmsvalue_XmmsDictIter(PyObject *o) { |
| 22247 | struct __pyx_obj_9xmmsvalue_XmmsDictIter *p = (struct __pyx_obj_9xmmsvalue_XmmsDictIter *)o; |
| 22248 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22249 | if (unlikely(Py_TYPE(o)->tp_finalize)__builtin_expect(!!((((PyObject*)(o))->ob_type)->tp_finalize ), 0) && !_PyGC_FINALIZED(o)) { |
| 22250 | if (PyObject_CallFinalizerFromDealloc(o)) return; |
| 22251 | } |
| 22252 | #endif |
| 22253 | PyObject_GC_UnTrack(o); |
| 22254 | { |
| 22255 | PyObject *etype, *eval, *etb; |
| 22256 | PyErr_Fetch(&etype, &eval, &etb); |
| 22257 | ++Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 22258 | __pyx_pw_9xmmsvalue_12XmmsDictIter_3__dealloc__(o); |
| 22259 | --Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 22260 | PyErr_Restore(etype, eval, etb); |
| 22261 | } |
| 22262 | Py_CLEAR(p->sourcepref)do { if (p->sourcepref) { PyObject *_py_tmp = (PyObject *) (p->sourcepref); (p->sourcepref) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 22263 | (*Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_free)(o); |
| 22264 | } |
| 22265 | |
| 22266 | static int __pyx_tp_traverse_9xmmsvalue_XmmsDictIter(PyObject *o, visitproc v, void *a) { |
| 22267 | int e; |
| 22268 | struct __pyx_obj_9xmmsvalue_XmmsDictIter *p = (struct __pyx_obj_9xmmsvalue_XmmsDictIter *)o; |
| 22269 | if (p->sourcepref) { |
| 22270 | e = (*v)(p->sourcepref, a); if (e) return e; |
| 22271 | } |
| 22272 | return 0; |
| 22273 | } |
| 22274 | |
| 22275 | static int __pyx_tp_clear_9xmmsvalue_XmmsDictIter(PyObject *o) { |
| 22276 | PyObject* tmp; |
| 22277 | struct __pyx_obj_9xmmsvalue_XmmsDictIter *p = (struct __pyx_obj_9xmmsvalue_XmmsDictIter *)o; |
| 22278 | tmp = ((PyObject*)p->sourcepref); |
| 22279 | p->sourcepref = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22280 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 22281 | return 0; |
| 22282 | } |
| 22283 | |
| 22284 | static PyMethodDef __pyx_methods_9xmmsvalue_XmmsDictIter[] = { |
| 22285 | {__Pyx_NAMESTR("__next__")("__next__"), (PyCFunction)__pyx_pw_9xmmsvalue_12XmmsDictIter_9__next__, METH_NOARGS0x0004|METH_COEXIST0x0040, __Pyx_DOCSTR(0)(0)}, |
| 22286 | {0, 0, 0, 0} |
| 22287 | }; |
| 22288 | |
| 22289 | static PyTypeObject __pyx_type_9xmmsvalue_XmmsDictIter = { |
| 22290 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 22291 | __Pyx_NAMESTR("xmmsvalue.XmmsDictIter")("xmmsvalue.XmmsDictIter"), /*tp_name*/ |
| 22292 | sizeof(struct __pyx_obj_9xmmsvalue_XmmsDictIter), /*tp_basicsize*/ |
| 22293 | 0, /*tp_itemsize*/ |
| 22294 | __pyx_tp_dealloc_9xmmsvalue_XmmsDictIter, /*tp_dealloc*/ |
| 22295 | 0, /*tp_print*/ |
| 22296 | 0, /*tp_getattr*/ |
| 22297 | 0, /*tp_setattr*/ |
| 22298 | #if PY_MAJOR_VERSION2 < 3 |
| 22299 | 0, /*tp_compare*/ |
| 22300 | #else |
| 22301 | 0, /*reserved*/ |
| 22302 | #endif |
| 22303 | 0, /*tp_repr*/ |
| 22304 | 0, /*tp_as_number*/ |
| 22305 | 0, /*tp_as_sequence*/ |
| 22306 | 0, /*tp_as_mapping*/ |
| 22307 | 0, /*tp_hash*/ |
| 22308 | 0, /*tp_call*/ |
| 22309 | 0, /*tp_str*/ |
| 22310 | 0, /*tp_getattro*/ |
| 22311 | 0, /*tp_setattro*/ |
| 22312 | 0, /*tp_as_buffer*/ |
| 22313 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10)|Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/ |
| 22314 | __Pyx_DOCSTR("XmmsDictIter(XmmsValue value)")("XmmsDictIter(XmmsValue value)"), /*tp_doc*/ |
| 22315 | __pyx_tp_traverse_9xmmsvalue_XmmsDictIter, /*tp_traverse*/ |
| 22316 | __pyx_tp_clear_9xmmsvalue_XmmsDictIter, /*tp_clear*/ |
| 22317 | 0, /*tp_richcompare*/ |
| 22318 | 0, /*tp_weaklistoffset*/ |
| 22319 | __pyx_pw_9xmmsvalue_12XmmsDictIter_7__iter__, /*tp_iter*/ |
| 22320 | __pyx_pw_9xmmsvalue_12XmmsDictIter_9__next__, /*tp_iternext*/ |
| 22321 | __pyx_methods_9xmmsvalue_XmmsDictIter, /*tp_methods*/ |
| 22322 | 0, /*tp_members*/ |
| 22323 | 0, /*tp_getset*/ |
| 22324 | 0, /*tp_base*/ |
| 22325 | 0, /*tp_dict*/ |
| 22326 | 0, /*tp_descr_get*/ |
| 22327 | 0, /*tp_descr_set*/ |
| 22328 | 0, /*tp_dictoffset*/ |
| 22329 | __pyx_pw_9xmmsvalue_12XmmsDictIter_5__init__, /*tp_init*/ |
| 22330 | 0, /*tp_alloc*/ |
| 22331 | __pyx_tp_new_9xmmsvalue_XmmsDictIter, /*tp_new*/ |
| 22332 | 0, /*tp_free*/ |
| 22333 | 0, /*tp_is_gc*/ |
| 22334 | 0, /*tp_bases*/ |
| 22335 | 0, /*tp_mro*/ |
| 22336 | 0, /*tp_cache*/ |
| 22337 | 0, /*tp_subclasses*/ |
| 22338 | 0, /*tp_weaklist*/ |
| 22339 | 0, /*tp_del*/ |
| 22340 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 22341 | 0, /*tp_version_tag*/ |
| 22342 | #endif |
| 22343 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22344 | 0, /*tp_finalize*/ |
| 22345 | #endif |
| 22346 | }; |
| 22347 | static struct __pyx_vtabstruct_9xmmsvalue_CollectionRef __pyx_vtable_9xmmsvalue_CollectionRef; |
| 22348 | |
| 22349 | static PyObject *__pyx_tp_new_9xmmsvalue_CollectionRef(PyTypeObject *t, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *a, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *k) { |
| 22350 | struct __pyx_obj_9xmmsvalue_CollectionRef *p; |
| 22351 | PyObject *o; |
| 22352 | if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)__builtin_expect(!!((t->tp_flags & (1L<<20)) == 0 ), 1)) { |
| 22353 | o = (*t->tp_alloc)(t, 0); |
| 22354 | } else { |
| 22355 | o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); |
| 22356 | } |
| 22357 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 22358 | p = ((struct __pyx_obj_9xmmsvalue_CollectionRef *)o); |
| 22359 | p->__pyx_vtab = __pyx_vtabptr_9xmmsvalue_CollectionRef; |
| 22360 | if (unlikely(__pyx_pw_9xmmsvalue_13CollectionRef_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)__builtin_expect(!!(__pyx_pw_9xmmsvalue_13CollectionRef_1__cinit__ (o, __pyx_empty_tuple, ((void*)0)) < 0), 0)) { |
| 22361 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); o = 0; |
| 22362 | } |
| 22363 | return o; |
| 22364 | } |
| 22365 | |
| 22366 | static void __pyx_tp_dealloc_9xmmsvalue_CollectionRef(PyObject *o) { |
| 22367 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22368 | if (unlikely(Py_TYPE(o)->tp_finalize)__builtin_expect(!!((((PyObject*)(o))->ob_type)->tp_finalize ), 0) && (!PyType_IS_GC(Py_TYPE(o))(((((((PyObject*)(o))->ob_type)))->tp_flags & ((1L<< 14))) != 0) || !_PyGC_FINALIZED(o))) { |
| 22369 | if (PyObject_CallFinalizerFromDealloc(o)) return; |
| 22370 | } |
| 22371 | #endif |
| 22372 | { |
| 22373 | PyObject *etype, *eval, *etb; |
| 22374 | PyErr_Fetch(&etype, &eval, &etb); |
| 22375 | ++Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 22376 | __pyx_pw_9xmmsvalue_13CollectionRef_3__dealloc__(o); |
| 22377 | --Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 22378 | PyErr_Restore(etype, eval, etb); |
| 22379 | } |
| 22380 | (*Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_free)(o); |
| 22381 | } |
| 22382 | |
| 22383 | static PyMethodDef __pyx_methods_9xmmsvalue_CollectionRef[] = { |
| 22384 | {0, 0, 0, 0} |
| 22385 | }; |
| 22386 | |
| 22387 | static PyTypeObject __pyx_type_9xmmsvalue_CollectionRef = { |
| 22388 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 22389 | __Pyx_NAMESTR("xmmsvalue.CollectionRef")("xmmsvalue.CollectionRef"), /*tp_name*/ |
| 22390 | sizeof(struct __pyx_obj_9xmmsvalue_CollectionRef), /*tp_basicsize*/ |
| 22391 | 0, /*tp_itemsize*/ |
| 22392 | __pyx_tp_dealloc_9xmmsvalue_CollectionRef, /*tp_dealloc*/ |
| 22393 | 0, /*tp_print*/ |
| 22394 | 0, /*tp_getattr*/ |
| 22395 | 0, /*tp_setattr*/ |
| 22396 | #if PY_MAJOR_VERSION2 < 3 |
| 22397 | 0, /*tp_compare*/ |
| 22398 | #else |
| 22399 | 0, /*reserved*/ |
| 22400 | #endif |
| 22401 | 0, /*tp_repr*/ |
| 22402 | 0, /*tp_as_number*/ |
| 22403 | 0, /*tp_as_sequence*/ |
| 22404 | 0, /*tp_as_mapping*/ |
| 22405 | 0, /*tp_hash*/ |
| 22406 | 0, /*tp_call*/ |
| 22407 | 0, /*tp_str*/ |
| 22408 | 0, /*tp_getattro*/ |
| 22409 | 0, /*tp_setattro*/ |
| 22410 | 0, /*tp_as_buffer*/ |
| 22411 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10), /*tp_flags*/ |
| 22412 | 0, /*tp_doc*/ |
| 22413 | 0, /*tp_traverse*/ |
| 22414 | 0, /*tp_clear*/ |
| 22415 | 0, /*tp_richcompare*/ |
| 22416 | 0, /*tp_weaklistoffset*/ |
| 22417 | 0, /*tp_iter*/ |
| 22418 | 0, /*tp_iternext*/ |
| 22419 | __pyx_methods_9xmmsvalue_CollectionRef, /*tp_methods*/ |
| 22420 | 0, /*tp_members*/ |
| 22421 | 0, /*tp_getset*/ |
| 22422 | 0, /*tp_base*/ |
| 22423 | 0, /*tp_dict*/ |
| 22424 | 0, /*tp_descr_get*/ |
| 22425 | 0, /*tp_descr_set*/ |
| 22426 | 0, /*tp_dictoffset*/ |
| 22427 | 0, /*tp_init*/ |
| 22428 | 0, /*tp_alloc*/ |
| 22429 | __pyx_tp_new_9xmmsvalue_CollectionRef, /*tp_new*/ |
| 22430 | 0, /*tp_free*/ |
| 22431 | 0, /*tp_is_gc*/ |
| 22432 | 0, /*tp_bases*/ |
| 22433 | 0, /*tp_mro*/ |
| 22434 | 0, /*tp_cache*/ |
| 22435 | 0, /*tp_subclasses*/ |
| 22436 | 0, /*tp_weaklist*/ |
| 22437 | 0, /*tp_del*/ |
| 22438 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 22439 | 0, /*tp_version_tag*/ |
| 22440 | #endif |
| 22441 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22442 | 0, /*tp_finalize*/ |
| 22443 | #endif |
| 22444 | }; |
| 22445 | static struct __pyx_vtabstruct_9xmmsvalue_Collection __pyx_vtable_9xmmsvalue_Collection; |
| 22446 | |
| 22447 | static PyObject *__pyx_tp_new_9xmmsvalue_Collection(PyTypeObject *t, PyObject *a, PyObject *k) { |
| 22448 | struct __pyx_obj_9xmmsvalue_Collection *p; |
| 22449 | PyObject *o = __pyx_tp_new_9xmmsvalue_CollectionRef(t, a, k); |
| 22450 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 22451 | p = ((struct __pyx_obj_9xmmsvalue_Collection *)o); |
| 22452 | p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9xmmsvalue_CollectionRef*)__pyx_vtabptr_9xmmsvalue_Collection; |
| 22453 | p->_attributes = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22454 | p->_operands = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22455 | p->_idlist = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22456 | return o; |
| 22457 | } |
| 22458 | |
| 22459 | static void __pyx_tp_dealloc_9xmmsvalue_Collection(PyObject *o) { |
| 22460 | struct __pyx_obj_9xmmsvalue_Collection *p = (struct __pyx_obj_9xmmsvalue_Collection *)o; |
| 22461 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22462 | if (unlikely(Py_TYPE(o)->tp_finalize)__builtin_expect(!!((((PyObject*)(o))->ob_type)->tp_finalize ), 0) && !_PyGC_FINALIZED(o)) { |
| 22463 | if (PyObject_CallFinalizerFromDealloc(o)) return; |
| 22464 | } |
| 22465 | #endif |
| 22466 | PyObject_GC_UnTrack(o); |
| 22467 | Py_CLEAR(p->_attributes)do { if (p->_attributes) { PyObject *_py_tmp = (PyObject * )(p->_attributes); (p->_attributes) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(( (PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 22468 | Py_CLEAR(p->_operands)do { if (p->_operands) { PyObject *_py_tmp = (PyObject *)( p->_operands); (p->_operands) = ((void*)0); do { if ( -- ((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 22469 | Py_CLEAR(p->_idlist)do { if (p->_idlist) { PyObject *_py_tmp = (PyObject *)(p-> _idlist); (p->_idlist) = ((void*)0); do { if ( --((PyObject *)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 22470 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 22471 | if (PyType_IS_GC(Py_TYPE(o)->tp_base)(((((((PyObject*)(o))->ob_type)->tp_base))->tp_flags & ((1L<<14))) != 0)) |
| 22472 | #endif |
| 22473 | PyObject_GC_Track(o); |
| 22474 | __pyx_tp_dealloc_9xmmsvalue_CollectionRef(o); |
| 22475 | } |
| 22476 | |
| 22477 | static int __pyx_tp_traverse_9xmmsvalue_Collection(PyObject *o, visitproc v, void *a) { |
| 22478 | int e; |
| 22479 | struct __pyx_obj_9xmmsvalue_Collection *p = (struct __pyx_obj_9xmmsvalue_Collection *)o; |
| 22480 | e = ((likely(__pyx_ptype_9xmmsvalue_CollectionRef)__builtin_expect(!!(__pyx_ptype_9xmmsvalue_CollectionRef), 1)) ? ((__pyx_ptype_9xmmsvalue_CollectionRef->tp_traverse) ? __pyx_ptype_9xmmsvalue_CollectionRef->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9xmmsvalue_Collection)); if (e) return e; |
| 22481 | if (p->_attributes) { |
| 22482 | e = (*v)(p->_attributes, a); if (e) return e; |
| 22483 | } |
| 22484 | if (p->_operands) { |
| 22485 | e = (*v)(p->_operands, a); if (e) return e; |
| 22486 | } |
| 22487 | if (p->_idlist) { |
| 22488 | e = (*v)(p->_idlist, a); if (e) return e; |
| 22489 | } |
| 22490 | return 0; |
| 22491 | } |
| 22492 | |
| 22493 | static int __pyx_tp_clear_9xmmsvalue_Collection(PyObject *o) { |
| 22494 | PyObject* tmp; |
| 22495 | struct __pyx_obj_9xmmsvalue_Collection *p = (struct __pyx_obj_9xmmsvalue_Collection *)o; |
| 22496 | if (likely(__pyx_ptype_9xmmsvalue_CollectionRef)__builtin_expect(!!(__pyx_ptype_9xmmsvalue_CollectionRef), 1)) { if (__pyx_ptype_9xmmsvalue_CollectionRef->tp_clear) __pyx_ptype_9xmmsvalue_CollectionRef->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9xmmsvalue_Collection); |
| 22497 | tmp = ((PyObject*)p->_attributes); |
| 22498 | p->_attributes = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22499 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 22500 | tmp = ((PyObject*)p->_operands); |
| 22501 | p->_operands = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22502 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 22503 | tmp = ((PyObject*)p->_idlist); |
| 22504 | p->_idlist = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22505 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 22506 | return 0; |
| 22507 | } |
| 22508 | |
| 22509 | static PyObject *__pyx_getprop_9xmmsvalue_10Collection_attributes(PyObject *o, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22510 | return __pyx_pw_9xmmsvalue_10Collection_10attributes_1__get__(o); |
| 22511 | } |
| 22512 | |
| 22513 | static int __pyx_setprop_9xmmsvalue_10Collection_attributes(PyObject *o, PyObject *v, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22514 | if (v) { |
| 22515 | return __pyx_pw_9xmmsvalue_10Collection_10attributes_3__set__(o, v); |
| 22516 | } |
| 22517 | else { |
| 22518 | PyErr_SetString(PyExc_NotImplementedError, "__del__"); |
| 22519 | return -1; |
| 22520 | } |
| 22521 | } |
| 22522 | |
| 22523 | static PyObject *__pyx_getprop_9xmmsvalue_10Collection_operands(PyObject *o, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22524 | return __pyx_pw_9xmmsvalue_10Collection_8operands_1__get__(o); |
| 22525 | } |
| 22526 | |
| 22527 | static int __pyx_setprop_9xmmsvalue_10Collection_operands(PyObject *o, PyObject *v, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22528 | if (v) { |
| 22529 | return __pyx_pw_9xmmsvalue_10Collection_8operands_3__set__(o, v); |
| 22530 | } |
| 22531 | else { |
| 22532 | PyErr_SetString(PyExc_NotImplementedError, "__del__"); |
| 22533 | return -1; |
| 22534 | } |
| 22535 | } |
| 22536 | |
| 22537 | static PyObject *__pyx_getprop_9xmmsvalue_10Collection_ids(PyObject *o, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22538 | return __pyx_pw_9xmmsvalue_10Collection_3ids_1__get__(o); |
| 22539 | } |
| 22540 | |
| 22541 | static int __pyx_setprop_9xmmsvalue_10Collection_ids(PyObject *o, PyObject *v, CYTHON_UNUSED__attribute__ ((__unused__)) void *x) { |
| 22542 | if (v) { |
| 22543 | return __pyx_pw_9xmmsvalue_10Collection_3ids_3__set__(o, v); |
| 22544 | } |
| 22545 | else { |
| 22546 | PyErr_SetString(PyExc_NotImplementedError, "__del__"); |
| 22547 | return -1; |
| 22548 | } |
| 22549 | } |
| 22550 | |
| 22551 | static PyMethodDef __pyx_methods_9xmmsvalue_Collection[] = { |
| 22552 | {__Pyx_NAMESTR("copy")("copy"), (PyCFunction)__pyx_pw_9xmmsvalue_10Collection_1copy, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_10Collection_copy)(__pyx_doc_9xmmsvalue_10Collection_copy)}, |
| 22553 | {0, 0, 0, 0} |
| 22554 | }; |
| 22555 | |
| 22556 | static struct PyGetSetDef __pyx_getsets_9xmmsvalue_Collection[] = { |
| 22557 | {(char *)"attributes", __pyx_getprop_9xmmsvalue_10Collection_attributes, __pyx_setprop_9xmmsvalue_10Collection_attributes, 0, 0}, |
| 22558 | {(char *)"operands", __pyx_getprop_9xmmsvalue_10Collection_operands, __pyx_setprop_9xmmsvalue_10Collection_operands, 0, 0}, |
| 22559 | {(char *)"ids", __pyx_getprop_9xmmsvalue_10Collection_ids, __pyx_setprop_9xmmsvalue_10Collection_ids, 0, 0}, |
| 22560 | {0, 0, 0, 0, 0} |
| 22561 | }; |
| 22562 | |
| 22563 | static PyNumberMethods __pyx_tp_as_number_Collection = { |
| 22564 | 0, /*nb_add*/ |
| 22565 | 0, /*nb_subtract*/ |
| 22566 | 0, /*nb_multiply*/ |
| 22567 | #if PY_MAJOR_VERSION2 < 3 |
| 22568 | 0, /*nb_divide*/ |
| 22569 | #endif |
| 22570 | 0, /*nb_remainder*/ |
| 22571 | 0, /*nb_divmod*/ |
| 22572 | 0, /*nb_power*/ |
| 22573 | 0, /*nb_negative*/ |
| 22574 | 0, /*nb_positive*/ |
| 22575 | 0, /*nb_absolute*/ |
| 22576 | 0, /*nb_nonzero*/ |
| 22577 | __pyx_pw_9xmmsvalue_10Collection_9__invert__, /*nb_invert*/ |
| 22578 | 0, /*nb_lshift*/ |
| 22579 | 0, /*nb_rshift*/ |
| 22580 | __pyx_pw_9xmmsvalue_10Collection_7__and__, /*nb_and*/ |
| 22581 | 0, /*nb_xor*/ |
| 22582 | __pyx_pw_9xmmsvalue_10Collection_5__or__, /*nb_or*/ |
| 22583 | #if PY_MAJOR_VERSION2 < 3 |
| 22584 | 0, /*nb_coerce*/ |
| 22585 | #endif |
| 22586 | 0, /*nb_int*/ |
| 22587 | #if PY_MAJOR_VERSION2 < 3 |
| 22588 | 0, /*nb_long*/ |
| 22589 | #else |
| 22590 | 0, /*reserved*/ |
| 22591 | #endif |
| 22592 | 0, /*nb_float*/ |
| 22593 | #if PY_MAJOR_VERSION2 < 3 |
| 22594 | 0, /*nb_oct*/ |
| 22595 | #endif |
| 22596 | #if PY_MAJOR_VERSION2 < 3 |
| 22597 | 0, /*nb_hex*/ |
| 22598 | #endif |
| 22599 | 0, /*nb_inplace_add*/ |
| 22600 | 0, /*nb_inplace_subtract*/ |
| 22601 | 0, /*nb_inplace_multiply*/ |
| 22602 | #if PY_MAJOR_VERSION2 < 3 |
| 22603 | 0, /*nb_inplace_divide*/ |
| 22604 | #endif |
| 22605 | 0, /*nb_inplace_remainder*/ |
| 22606 | 0, /*nb_inplace_power*/ |
| 22607 | 0, /*nb_inplace_lshift*/ |
| 22608 | 0, /*nb_inplace_rshift*/ |
| 22609 | 0, /*nb_inplace_and*/ |
| 22610 | 0, /*nb_inplace_xor*/ |
| 22611 | 0, /*nb_inplace_or*/ |
| 22612 | 0, /*nb_floor_divide*/ |
| 22613 | 0, /*nb_true_divide*/ |
| 22614 | 0, /*nb_inplace_floor_divide*/ |
| 22615 | 0, /*nb_inplace_true_divide*/ |
| 22616 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 |
| 22617 | 0, /*nb_index*/ |
| 22618 | #endif |
| 22619 | }; |
| 22620 | |
| 22621 | static PyTypeObject __pyx_type_9xmmsvalue_Collection = { |
| 22622 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 22623 | __Pyx_NAMESTR("xmmsvalue.Collection")("xmmsvalue.Collection"), /*tp_name*/ |
| 22624 | sizeof(struct __pyx_obj_9xmmsvalue_Collection), /*tp_basicsize*/ |
| 22625 | 0, /*tp_itemsize*/ |
| 22626 | __pyx_tp_dealloc_9xmmsvalue_Collection, /*tp_dealloc*/ |
| 22627 | 0, /*tp_print*/ |
| 22628 | 0, /*tp_getattr*/ |
| 22629 | 0, /*tp_setattr*/ |
| 22630 | #if PY_MAJOR_VERSION2 < 3 |
| 22631 | 0, /*tp_compare*/ |
| 22632 | #else |
| 22633 | 0, /*reserved*/ |
| 22634 | #endif |
| 22635 | __pyx_pw_9xmmsvalue_10Collection_3__repr__, /*tp_repr*/ |
| 22636 | &__pyx_tp_as_number_Collection, /*tp_as_number*/ |
| 22637 | 0, /*tp_as_sequence*/ |
| 22638 | 0, /*tp_as_mapping*/ |
| 22639 | 0, /*tp_hash*/ |
| 22640 | 0, /*tp_call*/ |
| 22641 | 0, /*tp_str*/ |
| 22642 | 0, /*tp_getattro*/ |
| 22643 | 0, /*tp_setattro*/ |
| 22644 | 0, /*tp_as_buffer*/ |
| 22645 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10)|Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/ |
| 22646 | 0, /*tp_doc*/ |
| 22647 | __pyx_tp_traverse_9xmmsvalue_Collection, /*tp_traverse*/ |
| 22648 | __pyx_tp_clear_9xmmsvalue_Collection, /*tp_clear*/ |
| 22649 | 0, /*tp_richcompare*/ |
| 22650 | 0, /*tp_weaklistoffset*/ |
| 22651 | 0, /*tp_iter*/ |
| 22652 | 0, /*tp_iternext*/ |
| 22653 | __pyx_methods_9xmmsvalue_Collection, /*tp_methods*/ |
| 22654 | 0, /*tp_members*/ |
| 22655 | __pyx_getsets_9xmmsvalue_Collection, /*tp_getset*/ |
| 22656 | 0, /*tp_base*/ |
| 22657 | 0, /*tp_dict*/ |
| 22658 | 0, /*tp_descr_get*/ |
| 22659 | 0, /*tp_descr_set*/ |
| 22660 | 0, /*tp_dictoffset*/ |
| 22661 | 0, /*tp_init*/ |
| 22662 | 0, /*tp_alloc*/ |
| 22663 | __pyx_tp_new_9xmmsvalue_Collection, /*tp_new*/ |
| 22664 | 0, /*tp_free*/ |
| 22665 | 0, /*tp_is_gc*/ |
| 22666 | 0, /*tp_bases*/ |
| 22667 | 0, /*tp_mro*/ |
| 22668 | 0, /*tp_cache*/ |
| 22669 | 0, /*tp_subclasses*/ |
| 22670 | 0, /*tp_weaklist*/ |
| 22671 | 0, /*tp_del*/ |
| 22672 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 22673 | 0, /*tp_version_tag*/ |
| 22674 | #endif |
| 22675 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22676 | 0, /*tp_finalize*/ |
| 22677 | #endif |
| 22678 | }; |
| 22679 | static struct __pyx_vtabstruct_9xmmsvalue_CollectionAttributes __pyx_vtable_9xmmsvalue_CollectionAttributes; |
| 22680 | |
| 22681 | static PyObject *__pyx_tp_new_9xmmsvalue_CollectionAttributes(PyTypeObject *t, PyObject *a, PyObject *k) { |
| 22682 | struct __pyx_obj_9xmmsvalue_CollectionAttributes *p; |
| 22683 | PyObject *o = __pyx_tp_new_9xmmsvalue_CollectionRef(t, a, k); |
| 22684 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 22685 | p = ((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)o); |
| 22686 | p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9xmmsvalue_CollectionRef*)__pyx_vtabptr_9xmmsvalue_CollectionAttributes; |
| 22687 | return o; |
| 22688 | } |
| 22689 | static PyObject *__pyx_sq_item_9xmmsvalue_CollectionAttributes(PyObject *o, Py_ssize_t i) { |
| 22690 | PyObject *r; |
| 22691 | PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; |
| 22692 | r = Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_as_mapping->mp_subscript(o, x); |
| 22693 | Py_DECREF(x)do { if ( --((PyObject*)(x))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(x)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(x)))); } while (0); |
| 22694 | return r; |
| 22695 | } |
| 22696 | |
| 22697 | static int __pyx_mp_ass_subscript_9xmmsvalue_CollectionAttributes(PyObject *o, PyObject *i, PyObject *v) { |
| 22698 | if (v) { |
| 22699 | return __pyx_pw_9xmmsvalue_20CollectionAttributes_35__setitem__(o, i, v); |
| 22700 | } |
| 22701 | else { |
| 22702 | return __pyx_pw_9xmmsvalue_20CollectionAttributes_37__delitem__(o, i); |
| 22703 | } |
| 22704 | } |
| 22705 | |
| 22706 | static PyMethodDef __pyx_methods_9xmmsvalue_CollectionAttributes[] = { |
| 22707 | {__Pyx_NAMESTR("get_dict")("get_dict"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_3get_dict, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_2get_dict)(__pyx_doc_9xmmsvalue_20CollectionAttributes_2get_dict)}, |
| 22708 | {__Pyx_NAMESTR("iterkeys")("iterkeys"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_5iterkeys, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_4iterkeys)(__pyx_doc_9xmmsvalue_20CollectionAttributes_4iterkeys)}, |
| 22709 | {__Pyx_NAMESTR("keys")("keys"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_7keys, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_6keys)(__pyx_doc_9xmmsvalue_20CollectionAttributes_6keys)}, |
| 22710 | {__Pyx_NAMESTR("itervalues")("itervalues"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_9itervalues, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_8itervalues)(__pyx_doc_9xmmsvalue_20CollectionAttributes_8itervalues)}, |
| 22711 | {__Pyx_NAMESTR("iterxvalues")("iterxvalues"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_11iterxvalues, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_10iterxvalues)(__pyx_doc_9xmmsvalue_20CollectionAttributes_10iterxvalues)}, |
| 22712 | {__Pyx_NAMESTR("values")("values"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_13values, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_12values)(__pyx_doc_9xmmsvalue_20CollectionAttributes_12values)}, |
| 22713 | {__Pyx_NAMESTR("xvalues")("xvalues"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_15xvalues, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_14xvalues)(__pyx_doc_9xmmsvalue_20CollectionAttributes_14xvalues)}, |
| 22714 | {__Pyx_NAMESTR("iteritems")("iteritems"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_17iteritems, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_16iteritems)(__pyx_doc_9xmmsvalue_20CollectionAttributes_16iteritems)}, |
| 22715 | {__Pyx_NAMESTR("iterxitems")("iterxitems"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_19iterxitems, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_18iterxitems)(__pyx_doc_9xmmsvalue_20CollectionAttributes_18iterxitems)}, |
| 22716 | {__Pyx_NAMESTR("items")("items"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_21items, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_20items)(__pyx_doc_9xmmsvalue_20CollectionAttributes_20items)}, |
| 22717 | {__Pyx_NAMESTR("xitems")("xitems"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_23xitems, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_22xitems)(__pyx_doc_9xmmsvalue_20CollectionAttributes_22xitems)}, |
| 22718 | {__Pyx_NAMESTR("get")("get"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_39get, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_38get)(__pyx_doc_9xmmsvalue_20CollectionAttributes_38get)}, |
| 22719 | {__Pyx_NAMESTR("xget")("xget"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_41xget, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_40xget)(__pyx_doc_9xmmsvalue_20CollectionAttributes_40xget)}, |
| 22720 | {__Pyx_NAMESTR("clear")("clear"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_43clear, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_42clear)(__pyx_doc_9xmmsvalue_20CollectionAttributes_42clear)}, |
| 22721 | {__Pyx_NAMESTR("update")("update"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_45update, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_44update)(__pyx_doc_9xmmsvalue_20CollectionAttributes_44update)}, |
| 22722 | {__Pyx_NAMESTR("copy")("copy"), (PyCFunction)__pyx_pw_9xmmsvalue_20CollectionAttributes_47copy, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_20CollectionAttributes_46copy)(__pyx_doc_9xmmsvalue_20CollectionAttributes_46copy)}, |
| 22723 | {0, 0, 0, 0} |
| 22724 | }; |
| 22725 | |
| 22726 | static PySequenceMethods __pyx_tp_as_sequence_CollectionAttributes = { |
| 22727 | 0, /*sq_length*/ |
| 22728 | 0, /*sq_concat*/ |
| 22729 | 0, /*sq_repeat*/ |
| 22730 | __pyx_sq_item_9xmmsvalue_CollectionAttributes, /*sq_item*/ |
| 22731 | 0, /*sq_slice*/ |
| 22732 | 0, /*sq_ass_item*/ |
| 22733 | 0, /*sq_ass_slice*/ |
| 22734 | __pyx_pw_9xmmsvalue_20CollectionAttributes_25__contains__, /*sq_contains*/ |
| 22735 | 0, /*sq_inplace_concat*/ |
| 22736 | 0, /*sq_inplace_repeat*/ |
| 22737 | }; |
| 22738 | |
| 22739 | static PyMappingMethods __pyx_tp_as_mapping_CollectionAttributes = { |
| 22740 | 0, /*mp_length*/ |
| 22741 | __pyx_pw_9xmmsvalue_20CollectionAttributes_33__getitem__, /*mp_subscript*/ |
| 22742 | __pyx_mp_ass_subscript_9xmmsvalue_CollectionAttributes, /*mp_ass_subscript*/ |
| 22743 | }; |
| 22744 | |
| 22745 | static PyTypeObject __pyx_type_9xmmsvalue_CollectionAttributes = { |
| 22746 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 22747 | __Pyx_NAMESTR("xmmsvalue.CollectionAttributes")("xmmsvalue.CollectionAttributes"), /*tp_name*/ |
| 22748 | sizeof(struct __pyx_obj_9xmmsvalue_CollectionAttributes), /*tp_basicsize*/ |
| 22749 | 0, /*tp_itemsize*/ |
| 22750 | __pyx_tp_dealloc_9xmmsvalue_CollectionRef, /*tp_dealloc*/ |
| 22751 | 0, /*tp_print*/ |
| 22752 | 0, /*tp_getattr*/ |
| 22753 | 0, /*tp_setattr*/ |
| 22754 | #if PY_MAJOR_VERSION2 < 3 |
| 22755 | 0, /*tp_compare*/ |
| 22756 | #else |
| 22757 | 0, /*reserved*/ |
| 22758 | #endif |
| 22759 | __pyx_pw_9xmmsvalue_20CollectionAttributes_29__repr__, /*tp_repr*/ |
| 22760 | 0, /*tp_as_number*/ |
| 22761 | &__pyx_tp_as_sequence_CollectionAttributes, /*tp_as_sequence*/ |
| 22762 | &__pyx_tp_as_mapping_CollectionAttributes, /*tp_as_mapping*/ |
| 22763 | 0, /*tp_hash*/ |
| 22764 | 0, /*tp_call*/ |
| 22765 | __pyx_pw_9xmmsvalue_20CollectionAttributes_31__str__, /*tp_str*/ |
| 22766 | 0, /*tp_getattro*/ |
| 22767 | 0, /*tp_setattro*/ |
| 22768 | 0, /*tp_as_buffer*/ |
| 22769 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10), /*tp_flags*/ |
| 22770 | __Pyx_DOCSTR("CollectionAttributes(Collection c)")("CollectionAttributes(Collection c)"), /*tp_doc*/ |
| 22771 | 0, /*tp_traverse*/ |
| 22772 | 0, /*tp_clear*/ |
| 22773 | 0, /*tp_richcompare*/ |
| 22774 | 0, /*tp_weaklistoffset*/ |
| 22775 | __pyx_pw_9xmmsvalue_20CollectionAttributes_27__iter__, /*tp_iter*/ |
| 22776 | 0, /*tp_iternext*/ |
| 22777 | __pyx_methods_9xmmsvalue_CollectionAttributes, /*tp_methods*/ |
| 22778 | 0, /*tp_members*/ |
| 22779 | 0, /*tp_getset*/ |
| 22780 | 0, /*tp_base*/ |
| 22781 | 0, /*tp_dict*/ |
| 22782 | 0, /*tp_descr_get*/ |
| 22783 | 0, /*tp_descr_set*/ |
| 22784 | 0, /*tp_dictoffset*/ |
| 22785 | __pyx_pw_9xmmsvalue_20CollectionAttributes_1__init__, /*tp_init*/ |
| 22786 | 0, /*tp_alloc*/ |
| 22787 | __pyx_tp_new_9xmmsvalue_CollectionAttributes, /*tp_new*/ |
| 22788 | 0, /*tp_free*/ |
| 22789 | 0, /*tp_is_gc*/ |
| 22790 | 0, /*tp_bases*/ |
| 22791 | 0, /*tp_mro*/ |
| 22792 | 0, /*tp_cache*/ |
| 22793 | 0, /*tp_subclasses*/ |
| 22794 | 0, /*tp_weaklist*/ |
| 22795 | 0, /*tp_del*/ |
| 22796 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 22797 | 0, /*tp_version_tag*/ |
| 22798 | #endif |
| 22799 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22800 | 0, /*tp_finalize*/ |
| 22801 | #endif |
| 22802 | }; |
| 22803 | static struct __pyx_vtabstruct_9xmmsvalue_AttributesIterator __pyx_vtable_9xmmsvalue_AttributesIterator; |
| 22804 | |
| 22805 | static PyObject *__pyx_tp_new_9xmmsvalue_AttributesIterator(PyTypeObject *t, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *a, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *k) { |
| 22806 | struct __pyx_obj_9xmmsvalue_AttributesIterator *p; |
| 22807 | PyObject *o; |
| 22808 | if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)__builtin_expect(!!((t->tp_flags & (1L<<20)) == 0 ), 1)) { |
| 22809 | o = (*t->tp_alloc)(t, 0); |
| 22810 | } else { |
| 22811 | o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); |
| 22812 | } |
| 22813 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 22814 | p = ((struct __pyx_obj_9xmmsvalue_AttributesIterator *)o); |
| 22815 | p->__pyx_vtab = __pyx_vtabptr_9xmmsvalue_AttributesIterator; |
| 22816 | p->attr = ((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)Py_None(&_Py_NoneStruct)); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22817 | if (unlikely(__pyx_pw_9xmmsvalue_18AttributesIterator_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)__builtin_expect(!!(__pyx_pw_9xmmsvalue_18AttributesIterator_1__cinit__ (o, __pyx_empty_tuple, ((void*)0)) < 0), 0)) { |
| 22818 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); o = 0; |
| 22819 | } |
| 22820 | return o; |
| 22821 | } |
| 22822 | |
| 22823 | static void __pyx_tp_dealloc_9xmmsvalue_AttributesIterator(PyObject *o) { |
| 22824 | struct __pyx_obj_9xmmsvalue_AttributesIterator *p = (struct __pyx_obj_9xmmsvalue_AttributesIterator *)o; |
| 22825 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22826 | if (unlikely(Py_TYPE(o)->tp_finalize)__builtin_expect(!!((((PyObject*)(o))->ob_type)->tp_finalize ), 0) && !_PyGC_FINALIZED(o)) { |
| 22827 | if (PyObject_CallFinalizerFromDealloc(o)) return; |
| 22828 | } |
| 22829 | #endif |
| 22830 | PyObject_GC_UnTrack(o); |
| 22831 | { |
| 22832 | PyObject *etype, *eval, *etb; |
| 22833 | PyErr_Fetch(&etype, &eval, &etb); |
| 22834 | ++Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 22835 | __pyx_pw_9xmmsvalue_18AttributesIterator_3__dealloc__(o); |
| 22836 | --Py_REFCNT(o)(((PyObject*)(o))->ob_refcnt); |
| 22837 | PyErr_Restore(etype, eval, etb); |
| 22838 | } |
| 22839 | Py_CLEAR(p->attr)do { if (p->attr) { PyObject *_py_tmp = (PyObject *)(p-> attr); (p->attr) = ((void*)0); do { if ( --((PyObject*)(_py_tmp ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 22840 | (*Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_free)(o); |
| 22841 | } |
| 22842 | |
| 22843 | static int __pyx_tp_traverse_9xmmsvalue_AttributesIterator(PyObject *o, visitproc v, void *a) { |
| 22844 | int e; |
| 22845 | struct __pyx_obj_9xmmsvalue_AttributesIterator *p = (struct __pyx_obj_9xmmsvalue_AttributesIterator *)o; |
| 22846 | if (p->attr) { |
| 22847 | e = (*v)(((PyObject*)p->attr), a); if (e) return e; |
| 22848 | } |
| 22849 | return 0; |
| 22850 | } |
| 22851 | |
| 22852 | static int __pyx_tp_clear_9xmmsvalue_AttributesIterator(PyObject *o) { |
| 22853 | PyObject* tmp; |
| 22854 | struct __pyx_obj_9xmmsvalue_AttributesIterator *p = (struct __pyx_obj_9xmmsvalue_AttributesIterator *)o; |
| 22855 | tmp = ((PyObject*)p->attr); |
| 22856 | p->attr = ((struct __pyx_obj_9xmmsvalue_CollectionAttributes *)Py_None(&_Py_NoneStruct)); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22857 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 22858 | return 0; |
| 22859 | } |
| 22860 | |
| 22861 | static PyMethodDef __pyx_methods_9xmmsvalue_AttributesIterator[] = { |
| 22862 | {__Pyx_NAMESTR("__next__")("__next__"), (PyCFunction)__pyx_pw_9xmmsvalue_18AttributesIterator_9__next__, METH_NOARGS0x0004|METH_COEXIST0x0040, __Pyx_DOCSTR(0)(0)}, |
| 22863 | {__Pyx_NAMESTR("reset")("reset"), (PyCFunction)__pyx_pw_9xmmsvalue_18AttributesIterator_11reset, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_18AttributesIterator_10reset)(__pyx_doc_9xmmsvalue_18AttributesIterator_10reset)}, |
| 22864 | {0, 0, 0, 0} |
| 22865 | }; |
| 22866 | |
| 22867 | static PyTypeObject __pyx_type_9xmmsvalue_AttributesIterator = { |
| 22868 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 22869 | __Pyx_NAMESTR("xmmsvalue.AttributesIterator")("xmmsvalue.AttributesIterator"), /*tp_name*/ |
| 22870 | sizeof(struct __pyx_obj_9xmmsvalue_AttributesIterator), /*tp_basicsize*/ |
| 22871 | 0, /*tp_itemsize*/ |
| 22872 | __pyx_tp_dealloc_9xmmsvalue_AttributesIterator, /*tp_dealloc*/ |
| 22873 | 0, /*tp_print*/ |
| 22874 | 0, /*tp_getattr*/ |
| 22875 | 0, /*tp_setattr*/ |
| 22876 | #if PY_MAJOR_VERSION2 < 3 |
| 22877 | 0, /*tp_compare*/ |
| 22878 | #else |
| 22879 | 0, /*reserved*/ |
| 22880 | #endif |
| 22881 | 0, /*tp_repr*/ |
| 22882 | 0, /*tp_as_number*/ |
| 22883 | 0, /*tp_as_sequence*/ |
| 22884 | 0, /*tp_as_mapping*/ |
| 22885 | 0, /*tp_hash*/ |
| 22886 | 0, /*tp_call*/ |
| 22887 | 0, /*tp_str*/ |
| 22888 | 0, /*tp_getattro*/ |
| 22889 | 0, /*tp_setattro*/ |
| 22890 | 0, /*tp_as_buffer*/ |
| 22891 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10)|Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/ |
| 22892 | __Pyx_DOCSTR("AttributesIterator(CollectionAttributes attributes, AttributesIterType itertype)")("AttributesIterator(CollectionAttributes attributes, AttributesIterType itertype)" ), /*tp_doc*/ |
| 22893 | __pyx_tp_traverse_9xmmsvalue_AttributesIterator, /*tp_traverse*/ |
| 22894 | __pyx_tp_clear_9xmmsvalue_AttributesIterator, /*tp_clear*/ |
| 22895 | 0, /*tp_richcompare*/ |
| 22896 | 0, /*tp_weaklistoffset*/ |
| 22897 | __pyx_pw_9xmmsvalue_18AttributesIterator_7__iter__, /*tp_iter*/ |
| 22898 | __pyx_pw_9xmmsvalue_18AttributesIterator_9__next__, /*tp_iternext*/ |
| 22899 | __pyx_methods_9xmmsvalue_AttributesIterator, /*tp_methods*/ |
| 22900 | 0, /*tp_members*/ |
| 22901 | 0, /*tp_getset*/ |
| 22902 | 0, /*tp_base*/ |
| 22903 | 0, /*tp_dict*/ |
| 22904 | 0, /*tp_descr_get*/ |
| 22905 | 0, /*tp_descr_set*/ |
| 22906 | 0, /*tp_dictoffset*/ |
| 22907 | __pyx_pw_9xmmsvalue_18AttributesIterator_5__init__, /*tp_init*/ |
| 22908 | 0, /*tp_alloc*/ |
| 22909 | __pyx_tp_new_9xmmsvalue_AttributesIterator, /*tp_new*/ |
| 22910 | 0, /*tp_free*/ |
| 22911 | 0, /*tp_is_gc*/ |
| 22912 | 0, /*tp_bases*/ |
| 22913 | 0, /*tp_mro*/ |
| 22914 | 0, /*tp_cache*/ |
| 22915 | 0, /*tp_subclasses*/ |
| 22916 | 0, /*tp_weaklist*/ |
| 22917 | 0, /*tp_del*/ |
| 22918 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 22919 | 0, /*tp_version_tag*/ |
| 22920 | #endif |
| 22921 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22922 | 0, /*tp_finalize*/ |
| 22923 | #endif |
| 22924 | }; |
| 22925 | static struct __pyx_vtabstruct_9xmmsvalue_CollectionOperands __pyx_vtable_9xmmsvalue_CollectionOperands; |
| 22926 | |
| 22927 | static PyObject *__pyx_tp_new_9xmmsvalue_CollectionOperands(PyTypeObject *t, PyObject *a, PyObject *k) { |
| 22928 | struct __pyx_obj_9xmmsvalue_CollectionOperands *p; |
| 22929 | PyObject *o = __pyx_tp_new_9xmmsvalue_CollectionRef(t, a, k); |
| 22930 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 22931 | p = ((struct __pyx_obj_9xmmsvalue_CollectionOperands *)o); |
| 22932 | p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9xmmsvalue_CollectionRef*)__pyx_vtabptr_9xmmsvalue_CollectionOperands; |
| 22933 | p->pylist = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22934 | return o; |
| 22935 | } |
| 22936 | |
| 22937 | static void __pyx_tp_dealloc_9xmmsvalue_CollectionOperands(PyObject *o) { |
| 22938 | struct __pyx_obj_9xmmsvalue_CollectionOperands *p = (struct __pyx_obj_9xmmsvalue_CollectionOperands *)o; |
| 22939 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 22940 | if (unlikely(Py_TYPE(o)->tp_finalize)__builtin_expect(!!((((PyObject*)(o))->ob_type)->tp_finalize ), 0) && !_PyGC_FINALIZED(o)) { |
| 22941 | if (PyObject_CallFinalizerFromDealloc(o)) return; |
| 22942 | } |
| 22943 | #endif |
| 22944 | PyObject_GC_UnTrack(o); |
| 22945 | Py_CLEAR(p->pylist)do { if (p->pylist) { PyObject *_py_tmp = (PyObject *)(p-> pylist); (p->pylist) = ((void*)0); do { if ( --((PyObject* )(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 22946 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 22947 | if (PyType_IS_GC(Py_TYPE(o)->tp_base)(((((((PyObject*)(o))->ob_type)->tp_base))->tp_flags & ((1L<<14))) != 0)) |
| 22948 | #endif |
| 22949 | PyObject_GC_Track(o); |
| 22950 | __pyx_tp_dealloc_9xmmsvalue_CollectionRef(o); |
| 22951 | } |
| 22952 | |
| 22953 | static int __pyx_tp_traverse_9xmmsvalue_CollectionOperands(PyObject *o, visitproc v, void *a) { |
| 22954 | int e; |
| 22955 | struct __pyx_obj_9xmmsvalue_CollectionOperands *p = (struct __pyx_obj_9xmmsvalue_CollectionOperands *)o; |
| 22956 | e = ((likely(__pyx_ptype_9xmmsvalue_CollectionRef)__builtin_expect(!!(__pyx_ptype_9xmmsvalue_CollectionRef), 1)) ? ((__pyx_ptype_9xmmsvalue_CollectionRef->tp_traverse) ? __pyx_ptype_9xmmsvalue_CollectionRef->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_9xmmsvalue_CollectionOperands)); if (e) return e; |
| 22957 | if (p->pylist) { |
| 22958 | e = (*v)(p->pylist, a); if (e) return e; |
| 22959 | } |
| 22960 | return 0; |
| 22961 | } |
| 22962 | |
| 22963 | static int __pyx_tp_clear_9xmmsvalue_CollectionOperands(PyObject *o) { |
| 22964 | PyObject* tmp; |
| 22965 | struct __pyx_obj_9xmmsvalue_CollectionOperands *p = (struct __pyx_obj_9xmmsvalue_CollectionOperands *)o; |
| 22966 | if (likely(__pyx_ptype_9xmmsvalue_CollectionRef)__builtin_expect(!!(__pyx_ptype_9xmmsvalue_CollectionRef), 1)) { if (__pyx_ptype_9xmmsvalue_CollectionRef->tp_clear) __pyx_ptype_9xmmsvalue_CollectionRef->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_9xmmsvalue_CollectionOperands); |
| 22967 | tmp = ((PyObject*)p->pylist); |
| 22968 | p->pylist = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 22969 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 22970 | return 0; |
| 22971 | } |
| 22972 | static PyObject *__pyx_sq_item_9xmmsvalue_CollectionOperands(PyObject *o, Py_ssize_t i) { |
| 22973 | PyObject *r; |
| 22974 | PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; |
| 22975 | r = Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_as_mapping->mp_subscript(o, x); |
| 22976 | Py_DECREF(x)do { if ( --((PyObject*)(x))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(x)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(x)))); } while (0); |
| 22977 | return r; |
| 22978 | } |
| 22979 | |
| 22980 | static int __pyx_mp_ass_subscript_9xmmsvalue_CollectionOperands(PyObject *o, PyObject *i, PyObject *v) { |
| 22981 | if (v) { |
| 22982 | if (__pyx_ptype_9xmmsvalue_CollectionRef->tp_as_mapping && __pyx_ptype_9xmmsvalue_CollectionRef->tp_as_mapping->mp_ass_subscript) |
| 22983 | return __pyx_ptype_9xmmsvalue_CollectionRef->tp_as_mapping->mp_ass_subscript(o, i, v); |
| 22984 | PyErr_Format(PyExc_NotImplementedError, |
| 22985 | "Subscript assignment not supported by %.200s", Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_name); |
| 22986 | return -1; |
| 22987 | } |
| 22988 | else { |
| 22989 | return __pyx_pw_9xmmsvalue_18CollectionOperands_11__delitem__(o, i); |
| 22990 | } |
| 22991 | } |
| 22992 | |
| 22993 | static PyMethodDef __pyx_methods_9xmmsvalue_CollectionOperands[] = { |
| 22994 | {__Pyx_NAMESTR("append")("append"), (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_15append, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_18CollectionOperands_14append)(__pyx_doc_9xmmsvalue_18CollectionOperands_14append)}, |
| 22995 | {__Pyx_NAMESTR("extend")("extend"), (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_17extend, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_18CollectionOperands_16extend)(__pyx_doc_9xmmsvalue_18CollectionOperands_16extend)}, |
| 22996 | {__Pyx_NAMESTR("remove")("remove"), (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_19remove, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_18CollectionOperands_18remove)(__pyx_doc_9xmmsvalue_18CollectionOperands_18remove)}, |
| 22997 | {__Pyx_NAMESTR("clear")("clear"), (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_21clear, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_18CollectionOperands_20clear)(__pyx_doc_9xmmsvalue_18CollectionOperands_20clear)}, |
| 22998 | {__Pyx_NAMESTR("list")("list"), (PyCFunction)__pyx_pw_9xmmsvalue_18CollectionOperands_23list, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_18CollectionOperands_22list)(__pyx_doc_9xmmsvalue_18CollectionOperands_22list)}, |
| 22999 | {0, 0, 0, 0} |
| 23000 | }; |
| 23001 | |
| 23002 | static PySequenceMethods __pyx_tp_as_sequence_CollectionOperands = { |
| 23003 | __pyx_pw_9xmmsvalue_18CollectionOperands_7__len__, /*sq_length*/ |
| 23004 | 0, /*sq_concat*/ |
| 23005 | 0, /*sq_repeat*/ |
| 23006 | __pyx_sq_item_9xmmsvalue_CollectionOperands, /*sq_item*/ |
| 23007 | 0, /*sq_slice*/ |
| 23008 | 0, /*sq_ass_item*/ |
| 23009 | 0, /*sq_ass_slice*/ |
| 23010 | 0, /*sq_contains*/ |
| 23011 | 0, /*sq_inplace_concat*/ |
| 23012 | 0, /*sq_inplace_repeat*/ |
| 23013 | }; |
| 23014 | |
| 23015 | static PyMappingMethods __pyx_tp_as_mapping_CollectionOperands = { |
| 23016 | __pyx_pw_9xmmsvalue_18CollectionOperands_7__len__, /*mp_length*/ |
| 23017 | __pyx_pw_9xmmsvalue_18CollectionOperands_9__getitem__, /*mp_subscript*/ |
| 23018 | __pyx_mp_ass_subscript_9xmmsvalue_CollectionOperands, /*mp_ass_subscript*/ |
| 23019 | }; |
| 23020 | |
| 23021 | static PyTypeObject __pyx_type_9xmmsvalue_CollectionOperands = { |
| 23022 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 23023 | __Pyx_NAMESTR("xmmsvalue.CollectionOperands")("xmmsvalue.CollectionOperands"), /*tp_name*/ |
| 23024 | sizeof(struct __pyx_obj_9xmmsvalue_CollectionOperands), /*tp_basicsize*/ |
| 23025 | 0, /*tp_itemsize*/ |
| 23026 | __pyx_tp_dealloc_9xmmsvalue_CollectionOperands, /*tp_dealloc*/ |
| 23027 | 0, /*tp_print*/ |
| 23028 | 0, /*tp_getattr*/ |
| 23029 | 0, /*tp_setattr*/ |
| 23030 | #if PY_MAJOR_VERSION2 < 3 |
| 23031 | 0, /*tp_compare*/ |
| 23032 | #else |
| 23033 | 0, /*reserved*/ |
| 23034 | #endif |
| 23035 | __pyx_pw_9xmmsvalue_18CollectionOperands_3__repr__, /*tp_repr*/ |
| 23036 | 0, /*tp_as_number*/ |
| 23037 | &__pyx_tp_as_sequence_CollectionOperands, /*tp_as_sequence*/ |
| 23038 | &__pyx_tp_as_mapping_CollectionOperands, /*tp_as_mapping*/ |
| 23039 | 0, /*tp_hash*/ |
| 23040 | 0, /*tp_call*/ |
| 23041 | __pyx_pw_9xmmsvalue_18CollectionOperands_5__str__, /*tp_str*/ |
| 23042 | 0, /*tp_getattro*/ |
| 23043 | 0, /*tp_setattro*/ |
| 23044 | 0, /*tp_as_buffer*/ |
| 23045 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10)|Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/ |
| 23046 | __Pyx_DOCSTR("CollectionOperands(Collection c)")("CollectionOperands(Collection c)"), /*tp_doc*/ |
| 23047 | __pyx_tp_traverse_9xmmsvalue_CollectionOperands, /*tp_traverse*/ |
| 23048 | __pyx_tp_clear_9xmmsvalue_CollectionOperands, /*tp_clear*/ |
| 23049 | 0, /*tp_richcompare*/ |
| 23050 | 0, /*tp_weaklistoffset*/ |
| 23051 | __pyx_pw_9xmmsvalue_18CollectionOperands_13__iter__, /*tp_iter*/ |
| 23052 | 0, /*tp_iternext*/ |
| 23053 | __pyx_methods_9xmmsvalue_CollectionOperands, /*tp_methods*/ |
| 23054 | 0, /*tp_members*/ |
| 23055 | 0, /*tp_getset*/ |
| 23056 | 0, /*tp_base*/ |
| 23057 | 0, /*tp_dict*/ |
| 23058 | 0, /*tp_descr_get*/ |
| 23059 | 0, /*tp_descr_set*/ |
| 23060 | 0, /*tp_dictoffset*/ |
| 23061 | __pyx_pw_9xmmsvalue_18CollectionOperands_1__init__, /*tp_init*/ |
| 23062 | 0, /*tp_alloc*/ |
| 23063 | __pyx_tp_new_9xmmsvalue_CollectionOperands, /*tp_new*/ |
| 23064 | 0, /*tp_free*/ |
| 23065 | 0, /*tp_is_gc*/ |
| 23066 | 0, /*tp_bases*/ |
| 23067 | 0, /*tp_mro*/ |
| 23068 | 0, /*tp_cache*/ |
| 23069 | 0, /*tp_subclasses*/ |
| 23070 | 0, /*tp_weaklist*/ |
| 23071 | 0, /*tp_del*/ |
| 23072 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 23073 | 0, /*tp_version_tag*/ |
| 23074 | #endif |
| 23075 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 23076 | 0, /*tp_finalize*/ |
| 23077 | #endif |
| 23078 | }; |
| 23079 | static struct __pyx_vtabstruct_9xmmsvalue_CollectionIDList __pyx_vtable_9xmmsvalue_CollectionIDList; |
| 23080 | |
| 23081 | static PyObject *__pyx_tp_new_9xmmsvalue_CollectionIDList(PyTypeObject *t, PyObject *a, PyObject *k) { |
| 23082 | struct __pyx_obj_9xmmsvalue_CollectionIDList *p; |
| 23083 | PyObject *o = __pyx_tp_new_9xmmsvalue_CollectionRef(t, a, k); |
| 23084 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 23085 | p = ((struct __pyx_obj_9xmmsvalue_CollectionIDList *)o); |
| 23086 | p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_9xmmsvalue_CollectionRef*)__pyx_vtabptr_9xmmsvalue_CollectionIDList; |
| 23087 | return o; |
| 23088 | } |
| 23089 | static PyObject *__pyx_sq_item_9xmmsvalue_CollectionIDList(PyObject *o, Py_ssize_t i) { |
| 23090 | PyObject *r; |
| 23091 | PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; |
| 23092 | r = Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_as_mapping->mp_subscript(o, x); |
| 23093 | Py_DECREF(x)do { if ( --((PyObject*)(x))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(x)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(x)))); } while (0); |
| 23094 | return r; |
| 23095 | } |
| 23096 | |
| 23097 | static int __pyx_mp_ass_subscript_9xmmsvalue_CollectionIDList(PyObject *o, PyObject *i, PyObject *v) { |
| 23098 | if (v) { |
| 23099 | return __pyx_pw_9xmmsvalue_16CollectionIDList_28__setitem__(o, i, v); |
| 23100 | } |
| 23101 | else { |
| 23102 | return __pyx_pw_9xmmsvalue_16CollectionIDList_24__delitem__(o, i); |
| 23103 | } |
| 23104 | } |
| 23105 | |
| 23106 | static PyMethodDef __pyx_methods_9xmmsvalue_CollectionIDList[] = { |
| 23107 | {__Pyx_NAMESTR("list")("list"), (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_8list, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_16CollectionIDList_7list)(__pyx_doc_9xmmsvalue_16CollectionIDList_7list)}, |
| 23108 | {__Pyx_NAMESTR("append")("append"), (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_12append, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_16CollectionIDList_11append)(__pyx_doc_9xmmsvalue_16CollectionIDList_11append)}, |
| 23109 | {__Pyx_NAMESTR("extend")("extend"), (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_14extend, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_16CollectionIDList_13extend)(__pyx_doc_9xmmsvalue_16CollectionIDList_13extend)}, |
| 23110 | {__Pyx_NAMESTR("insert")("insert"), (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_18insert, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_16CollectionIDList_17insert)(__pyx_doc_9xmmsvalue_16CollectionIDList_17insert)}, |
| 23111 | {__Pyx_NAMESTR("remove")("remove"), (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_20remove, METH_O0x0008, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_16CollectionIDList_19remove)(__pyx_doc_9xmmsvalue_16CollectionIDList_19remove)}, |
| 23112 | {__Pyx_NAMESTR("pop")("pop"), (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_22pop, METH_VARARGS0x0001|METH_KEYWORDS0x0002, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_16CollectionIDList_21pop)(__pyx_doc_9xmmsvalue_16CollectionIDList_21pop)}, |
| 23113 | {__Pyx_NAMESTR("clear")("clear"), (PyCFunction)__pyx_pw_9xmmsvalue_16CollectionIDList_30clear, METH_NOARGS0x0004, __Pyx_DOCSTR(__pyx_doc_9xmmsvalue_16CollectionIDList_29clear)(__pyx_doc_9xmmsvalue_16CollectionIDList_29clear)}, |
| 23114 | {0, 0, 0, 0} |
| 23115 | }; |
| 23116 | |
| 23117 | static PyNumberMethods __pyx_tp_as_number_CollectionIDList = { |
| 23118 | 0, /*nb_add*/ |
| 23119 | 0, /*nb_subtract*/ |
| 23120 | 0, /*nb_multiply*/ |
| 23121 | #if PY_MAJOR_VERSION2 < 3 |
| 23122 | 0, /*nb_divide*/ |
| 23123 | #endif |
| 23124 | 0, /*nb_remainder*/ |
| 23125 | 0, /*nb_divmod*/ |
| 23126 | 0, /*nb_power*/ |
| 23127 | 0, /*nb_negative*/ |
| 23128 | 0, /*nb_positive*/ |
| 23129 | 0, /*nb_absolute*/ |
| 23130 | 0, /*nb_nonzero*/ |
| 23131 | 0, /*nb_invert*/ |
| 23132 | 0, /*nb_lshift*/ |
| 23133 | 0, /*nb_rshift*/ |
| 23134 | 0, /*nb_and*/ |
| 23135 | 0, /*nb_xor*/ |
| 23136 | 0, /*nb_or*/ |
| 23137 | #if PY_MAJOR_VERSION2 < 3 |
| 23138 | 0, /*nb_coerce*/ |
| 23139 | #endif |
| 23140 | 0, /*nb_int*/ |
| 23141 | #if PY_MAJOR_VERSION2 < 3 |
| 23142 | 0, /*nb_long*/ |
| 23143 | #else |
| 23144 | 0, /*reserved*/ |
| 23145 | #endif |
| 23146 | 0, /*nb_float*/ |
| 23147 | #if PY_MAJOR_VERSION2 < 3 |
| 23148 | 0, /*nb_oct*/ |
| 23149 | #endif |
| 23150 | #if PY_MAJOR_VERSION2 < 3 |
| 23151 | 0, /*nb_hex*/ |
| 23152 | #endif |
| 23153 | __pyx_pw_9xmmsvalue_16CollectionIDList_16__iadd__, /*nb_inplace_add*/ |
| 23154 | 0, /*nb_inplace_subtract*/ |
| 23155 | 0, /*nb_inplace_multiply*/ |
| 23156 | #if PY_MAJOR_VERSION2 < 3 |
| 23157 | 0, /*nb_inplace_divide*/ |
| 23158 | #endif |
| 23159 | 0, /*nb_inplace_remainder*/ |
| 23160 | 0, /*nb_inplace_power*/ |
| 23161 | 0, /*nb_inplace_lshift*/ |
| 23162 | 0, /*nb_inplace_rshift*/ |
| 23163 | 0, /*nb_inplace_and*/ |
| 23164 | 0, /*nb_inplace_xor*/ |
| 23165 | 0, /*nb_inplace_or*/ |
| 23166 | 0, /*nb_floor_divide*/ |
| 23167 | 0, /*nb_true_divide*/ |
| 23168 | 0, /*nb_inplace_floor_divide*/ |
| 23169 | 0, /*nb_inplace_true_divide*/ |
| 23170 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 |
| 23171 | 0, /*nb_index*/ |
| 23172 | #endif |
| 23173 | }; |
| 23174 | |
| 23175 | static PySequenceMethods __pyx_tp_as_sequence_CollectionIDList = { |
| 23176 | __pyx_pw_9xmmsvalue_16CollectionIDList_3__len__, /*sq_length*/ |
| 23177 | 0, /*sq_concat*/ |
| 23178 | 0, /*sq_repeat*/ |
| 23179 | __pyx_sq_item_9xmmsvalue_CollectionIDList, /*sq_item*/ |
| 23180 | 0, /*sq_slice*/ |
| 23181 | 0, /*sq_ass_item*/ |
| 23182 | 0, /*sq_ass_slice*/ |
| 23183 | 0, /*sq_contains*/ |
| 23184 | 0, /*sq_inplace_concat*/ |
| 23185 | 0, /*sq_inplace_repeat*/ |
| 23186 | }; |
| 23187 | |
| 23188 | static PyMappingMethods __pyx_tp_as_mapping_CollectionIDList = { |
| 23189 | __pyx_pw_9xmmsvalue_16CollectionIDList_3__len__, /*mp_length*/ |
| 23190 | __pyx_pw_9xmmsvalue_16CollectionIDList_26__getitem__, /*mp_subscript*/ |
| 23191 | __pyx_mp_ass_subscript_9xmmsvalue_CollectionIDList, /*mp_ass_subscript*/ |
| 23192 | }; |
| 23193 | |
| 23194 | static PyTypeObject __pyx_type_9xmmsvalue_CollectionIDList = { |
| 23195 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 23196 | __Pyx_NAMESTR("xmmsvalue.CollectionIDList")("xmmsvalue.CollectionIDList"), /*tp_name*/ |
| 23197 | sizeof(struct __pyx_obj_9xmmsvalue_CollectionIDList), /*tp_basicsize*/ |
| 23198 | 0, /*tp_itemsize*/ |
| 23199 | __pyx_tp_dealloc_9xmmsvalue_CollectionRef, /*tp_dealloc*/ |
| 23200 | 0, /*tp_print*/ |
| 23201 | 0, /*tp_getattr*/ |
| 23202 | 0, /*tp_setattr*/ |
| 23203 | #if PY_MAJOR_VERSION2 < 3 |
| 23204 | 0, /*tp_compare*/ |
| 23205 | #else |
| 23206 | 0, /*reserved*/ |
| 23207 | #endif |
| 23208 | __pyx_pw_9xmmsvalue_16CollectionIDList_10__repr__, /*tp_repr*/ |
| 23209 | &__pyx_tp_as_number_CollectionIDList, /*tp_as_number*/ |
| 23210 | &__pyx_tp_as_sequence_CollectionIDList, /*tp_as_sequence*/ |
| 23211 | &__pyx_tp_as_mapping_CollectionIDList, /*tp_as_mapping*/ |
| 23212 | 0, /*tp_hash*/ |
| 23213 | 0, /*tp_call*/ |
| 23214 | 0, /*tp_str*/ |
| 23215 | 0, /*tp_getattro*/ |
| 23216 | 0, /*tp_setattro*/ |
| 23217 | 0, /*tp_as_buffer*/ |
| 23218 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_BASETYPE(1L<<10), /*tp_flags*/ |
| 23219 | __Pyx_DOCSTR("CollectionIDList(Collection c)")("CollectionIDList(Collection c)"), /*tp_doc*/ |
| 23220 | 0, /*tp_traverse*/ |
| 23221 | 0, /*tp_clear*/ |
| 23222 | 0, /*tp_richcompare*/ |
| 23223 | 0, /*tp_weaklistoffset*/ |
| 23224 | __pyx_pw_9xmmsvalue_16CollectionIDList_5__iter__, /*tp_iter*/ |
| 23225 | 0, /*tp_iternext*/ |
| 23226 | __pyx_methods_9xmmsvalue_CollectionIDList, /*tp_methods*/ |
| 23227 | 0, /*tp_members*/ |
| 23228 | 0, /*tp_getset*/ |
| 23229 | 0, /*tp_base*/ |
| 23230 | 0, /*tp_dict*/ |
| 23231 | 0, /*tp_descr_get*/ |
| 23232 | 0, /*tp_descr_set*/ |
| 23233 | 0, /*tp_dictoffset*/ |
| 23234 | __pyx_pw_9xmmsvalue_16CollectionIDList_1__init__, /*tp_init*/ |
| 23235 | 0, /*tp_alloc*/ |
| 23236 | __pyx_tp_new_9xmmsvalue_CollectionIDList, /*tp_new*/ |
| 23237 | 0, /*tp_free*/ |
| 23238 | 0, /*tp_is_gc*/ |
| 23239 | 0, /*tp_bases*/ |
| 23240 | 0, /*tp_mro*/ |
| 23241 | 0, /*tp_cache*/ |
| 23242 | 0, /*tp_subclasses*/ |
| 23243 | 0, /*tp_weaklist*/ |
| 23244 | 0, /*tp_del*/ |
| 23245 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 23246 | 0, /*tp_version_tag*/ |
| 23247 | #endif |
| 23248 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 23249 | 0, /*tp_finalize*/ |
| 23250 | #endif |
| 23251 | }; |
| 23252 | |
| 23253 | static struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *__pyx_freelist_9xmmsvalue___pyx_scope_struct____iter__[8]; |
| 23254 | static int __pyx_freecount_9xmmsvalue___pyx_scope_struct____iter__ = 0; |
| 23255 | |
| 23256 | static PyObject *__pyx_tp_new_9xmmsvalue___pyx_scope_struct____iter__(PyTypeObject *t, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *a, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *k) { |
| 23257 | PyObject *o; |
| 23258 | if (CYTHON_COMPILING_IN_CPYTHON1 && likely((__pyx_freecount_9xmmsvalue___pyx_scope_struct____iter__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__)))__builtin_expect(!!((__pyx_freecount_9xmmsvalue___pyx_scope_struct____iter__ > 0) & (t->tp_basicsize == sizeof(struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ ))), 1)) { |
| 23259 | o = (PyObject*)__pyx_freelist_9xmmsvalue___pyx_scope_struct____iter__[--__pyx_freecount_9xmmsvalue___pyx_scope_struct____iter__]; |
| 23260 | memset(o, 0, sizeof(struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__)); |
| 23261 | (void) PyObject_INIT(o, t)( (((PyObject*)(o))->ob_type) = (t), ( (((PyObject*)((PyObject *)(o)))->ob_refcnt) = 1), (o) ); |
| 23262 | PyObject_GC_Track(o); |
| 23263 | } else { |
| 23264 | o = (*t->tp_alloc)(t, 0); |
| 23265 | if (unlikely(!o)__builtin_expect(!!(!o), 0)) return 0; |
| 23266 | } |
| 23267 | return o; |
| 23268 | } |
| 23269 | |
| 23270 | static void __pyx_tp_dealloc_9xmmsvalue___pyx_scope_struct____iter__(PyObject *o) { |
| 23271 | struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *p = (struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *)o; |
| 23272 | PyObject_GC_UnTrack(o); |
| 23273 | Py_CLEAR(p->__pyx_v_self)do { if (p->__pyx_v_self) { PyObject *_py_tmp = (PyObject * )(p->__pyx_v_self); (p->__pyx_v_self) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 23274 | if (CYTHON_COMPILING_IN_CPYTHON1 && ((__pyx_freecount_9xmmsvalue___pyx_scope_struct____iter__ < 8) & (Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_basicsize == sizeof(struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__)))) { |
| 23275 | __pyx_freelist_9xmmsvalue___pyx_scope_struct____iter__[__pyx_freecount_9xmmsvalue___pyx_scope_struct____iter__++] = ((struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *)o); |
| 23276 | } else { |
| 23277 | (*Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_free)(o); |
| 23278 | } |
| 23279 | } |
| 23280 | |
| 23281 | static int __pyx_tp_traverse_9xmmsvalue___pyx_scope_struct____iter__(PyObject *o, visitproc v, void *a) { |
| 23282 | int e; |
| 23283 | struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *p = (struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *)o; |
| 23284 | if (p->__pyx_v_self) { |
| 23285 | e = (*v)(((PyObject*)p->__pyx_v_self), a); if (e) return e; |
| 23286 | } |
| 23287 | return 0; |
| 23288 | } |
| 23289 | |
| 23290 | static int __pyx_tp_clear_9xmmsvalue___pyx_scope_struct____iter__(PyObject *o) { |
| 23291 | PyObject* tmp; |
| 23292 | struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *p = (struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__ *)o; |
| 23293 | tmp = ((PyObject*)p->__pyx_v_self); |
| 23294 | p->__pyx_v_self = ((struct __pyx_obj_9xmmsvalue_CollectionIDList *)Py_None(&_Py_NoneStruct)); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 23295 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 23296 | return 0; |
| 23297 | } |
| 23298 | |
| 23299 | static PyTypeObject __pyx_type_9xmmsvalue___pyx_scope_struct____iter__ = { |
| 23300 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 23301 | __Pyx_NAMESTR("xmmsvalue.__pyx_scope_struct____iter__")("xmmsvalue.__pyx_scope_struct____iter__"), /*tp_name*/ |
| 23302 | sizeof(struct __pyx_obj_9xmmsvalue___pyx_scope_struct____iter__), /*tp_basicsize*/ |
| 23303 | 0, /*tp_itemsize*/ |
| 23304 | __pyx_tp_dealloc_9xmmsvalue___pyx_scope_struct____iter__, /*tp_dealloc*/ |
| 23305 | 0, /*tp_print*/ |
| 23306 | 0, /*tp_getattr*/ |
| 23307 | 0, /*tp_setattr*/ |
| 23308 | #if PY_MAJOR_VERSION2 < 3 |
| 23309 | 0, /*tp_compare*/ |
| 23310 | #else |
| 23311 | 0, /*reserved*/ |
| 23312 | #endif |
| 23313 | 0, /*tp_repr*/ |
| 23314 | 0, /*tp_as_number*/ |
| 23315 | 0, /*tp_as_sequence*/ |
| 23316 | 0, /*tp_as_mapping*/ |
| 23317 | 0, /*tp_hash*/ |
| 23318 | 0, /*tp_call*/ |
| 23319 | 0, /*tp_str*/ |
| 23320 | 0, /*tp_getattro*/ |
| 23321 | 0, /*tp_setattro*/ |
| 23322 | 0, /*tp_as_buffer*/ |
| 23323 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0)|Py_TPFLAGS_HAVE_VERSION_TAG(1L<<18)|Py_TPFLAGS_CHECKTYPES(1L<<4)|Py_TPFLAGS_HAVE_NEWBUFFER(1L<<21)|Py_TPFLAGS_HAVE_GC(1L<<14), /*tp_flags*/ |
| 23324 | 0, /*tp_doc*/ |
| 23325 | __pyx_tp_traverse_9xmmsvalue___pyx_scope_struct____iter__, /*tp_traverse*/ |
| 23326 | __pyx_tp_clear_9xmmsvalue___pyx_scope_struct____iter__, /*tp_clear*/ |
| 23327 | 0, /*tp_richcompare*/ |
| 23328 | 0, /*tp_weaklistoffset*/ |
| 23329 | 0, /*tp_iter*/ |
| 23330 | 0, /*tp_iternext*/ |
| 23331 | 0, /*tp_methods*/ |
| 23332 | 0, /*tp_members*/ |
| 23333 | 0, /*tp_getset*/ |
| 23334 | 0, /*tp_base*/ |
| 23335 | 0, /*tp_dict*/ |
| 23336 | 0, /*tp_descr_get*/ |
| 23337 | 0, /*tp_descr_set*/ |
| 23338 | 0, /*tp_dictoffset*/ |
| 23339 | 0, /*tp_init*/ |
| 23340 | 0, /*tp_alloc*/ |
| 23341 | __pyx_tp_new_9xmmsvalue___pyx_scope_struct____iter__, /*tp_new*/ |
| 23342 | 0, /*tp_free*/ |
| 23343 | 0, /*tp_is_gc*/ |
| 23344 | 0, /*tp_bases*/ |
| 23345 | 0, /*tp_mro*/ |
| 23346 | 0, /*tp_cache*/ |
| 23347 | 0, /*tp_subclasses*/ |
| 23348 | 0, /*tp_weaklist*/ |
| 23349 | 0, /*tp_del*/ |
| 23350 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 23351 | 0, /*tp_version_tag*/ |
| 23352 | #endif |
| 23353 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 23354 | 0, /*tp_finalize*/ |
| 23355 | #endif |
| 23356 | }; |
| 23357 | |
| 23358 | static PyMethodDef __pyx_methods[] = { |
| 23359 | {0, 0, 0, 0} |
| 23360 | }; |
| 23361 | |
| 23362 | #if PY_MAJOR_VERSION2 >= 3 |
| 23363 | static struct PyModuleDef __pyx_moduledef = { |
| 23364 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03020000 |
| 23365 | { PyObject_HEAD_INIT(NULL)1, ((void*)0), NULL((void*)0), 0, NULL((void*)0) }, |
| 23366 | #else |
| 23367 | PyModuleDef_HEAD_INIT, |
| 23368 | #endif |
| 23369 | __Pyx_NAMESTR("xmmsvalue")("xmmsvalue"), |
| 23370 | __Pyx_DOCSTR(__pyx_k_Python_bindings_for_xmmsv_manip)(__pyx_k_Python_bindings_for_xmmsv_manip), /* m_doc */ |
| 23371 | -1, /* m_size */ |
| 23372 | __pyx_methods /* m_methods */, |
| 23373 | NULL((void*)0), /* m_reload */ |
| 23374 | NULL((void*)0), /* m_traverse */ |
| 23375 | NULL((void*)0), /* m_clear */ |
| 23376 | NULL((void*)0) /* m_free */ |
| 23377 | }; |
| 23378 | #endif |
| 23379 | |
| 23380 | static __Pyx_StringTabEntry __pyx_string_tab[] = { |
| 23381 | {&__pyx_n_s_ASC, __pyx_k_ASC, sizeof(__pyx_k_ASC), 0, 0, 1, 1}, |
| 23382 | {&__pyx_kp_s_All_Media, __pyx_k_All_Media, sizeof(__pyx_k_All_Media), 0, 0, 1, 0}, |
| 23383 | {&__pyx_kp_s_Bad_collection, __pyx_k_Bad_collection, sizeof(__pyx_k_Bad_collection), 0, 0, 1, 0}, |
| 23384 | {&__pyx_n_s_BaseCollection, __pyx_k_BaseCollection, sizeof(__pyx_k_BaseCollection), 0, 0, 1, 1}, |
| 23385 | {&__pyx_n_s_BaseCollection___init, __pyx_k_BaseCollection___init, sizeof(__pyx_k_BaseCollection___init), 0, 0, 1, 1}, |
| 23386 | {&__pyx_n_s_COLLECTION_TYPE_COMPLEMENT, __pyx_k_COLLECTION_TYPE_COMPLEMENT, sizeof(__pyx_k_COLLECTION_TYPE_COMPLEMENT), 0, 0, 1, 1}, |
| 23387 | {&__pyx_n_s_COLLECTION_TYPE_EQUALS, __pyx_k_COLLECTION_TYPE_EQUALS, sizeof(__pyx_k_COLLECTION_TYPE_EQUALS), 0, 0, 1, 1}, |
| 23388 | {&__pyx_n_s_COLLECTION_TYPE_GREATER, __pyx_k_COLLECTION_TYPE_GREATER, sizeof(__pyx_k_COLLECTION_TYPE_GREATER), 0, 0, 1, 1}, |
| 23389 | {&__pyx_n_s_COLLECTION_TYPE_GREATEREQ, __pyx_k_COLLECTION_TYPE_GREATEREQ, sizeof(__pyx_k_COLLECTION_TYPE_GREATEREQ), 0, 0, 1, 1}, |
| 23390 | {&__pyx_n_s_COLLECTION_TYPE_HAS, __pyx_k_COLLECTION_TYPE_HAS, sizeof(__pyx_k_COLLECTION_TYPE_HAS), 0, 0, 1, 1}, |
| 23391 | {&__pyx_n_s_COLLECTION_TYPE_IDLIST, __pyx_k_COLLECTION_TYPE_IDLIST, sizeof(__pyx_k_COLLECTION_TYPE_IDLIST), 0, 0, 1, 1}, |
| 23392 | {&__pyx_n_s_COLLECTION_TYPE_INTERSECTION, __pyx_k_COLLECTION_TYPE_INTERSECTION, sizeof(__pyx_k_COLLECTION_TYPE_INTERSECTION), 0, 0, 1, 1}, |
| 23393 | {&__pyx_n_s_COLLECTION_TYPE_LIMIT, __pyx_k_COLLECTION_TYPE_LIMIT, sizeof(__pyx_k_COLLECTION_TYPE_LIMIT), 0, 0, 1, 1}, |
| 23394 | {&__pyx_n_s_COLLECTION_TYPE_MATCH, __pyx_k_COLLECTION_TYPE_MATCH, sizeof(__pyx_k_COLLECTION_TYPE_MATCH), 0, 0, 1, 1}, |
| 23395 | {&__pyx_n_s_COLLECTION_TYPE_MEDIASET, __pyx_k_COLLECTION_TYPE_MEDIASET, sizeof(__pyx_k_COLLECTION_TYPE_MEDIASET), 0, 0, 1, 1}, |
| 23396 | {&__pyx_n_s_COLLECTION_TYPE_NOTEQUAL, __pyx_k_COLLECTION_TYPE_NOTEQUAL, sizeof(__pyx_k_COLLECTION_TYPE_NOTEQUAL), 0, 0, 1, 1}, |
| 23397 | {&__pyx_n_s_COLLECTION_TYPE_ORDER, __pyx_k_COLLECTION_TYPE_ORDER, sizeof(__pyx_k_COLLECTION_TYPE_ORDER), 0, 0, 1, 1}, |
| 23398 | {&__pyx_n_s_COLLECTION_TYPE_REFERENCE, __pyx_k_COLLECTION_TYPE_REFERENCE, sizeof(__pyx_k_COLLECTION_TYPE_REFERENCE), 0, 0, 1, 1}, |
| 23399 | {&__pyx_n_s_COLLECTION_TYPE_SMALLER, __pyx_k_COLLECTION_TYPE_SMALLER, sizeof(__pyx_k_COLLECTION_TYPE_SMALLER), 0, 0, 1, 1}, |
| 23400 | {&__pyx_n_s_COLLECTION_TYPE_SMALLEREQ, __pyx_k_COLLECTION_TYPE_SMALLEREQ, sizeof(__pyx_k_COLLECTION_TYPE_SMALLEREQ), 0, 0, 1, 1}, |
| 23401 | {&__pyx_n_s_COLLECTION_TYPE_TOKEN, __pyx_k_COLLECTION_TYPE_TOKEN, sizeof(__pyx_k_COLLECTION_TYPE_TOKEN), 0, 0, 1, 1}, |
| 23402 | {&__pyx_n_s_COLLECTION_TYPE_UNION, __pyx_k_COLLECTION_TYPE_UNION, sizeof(__pyx_k_COLLECTION_TYPE_UNION), 0, 0, 1, 1}, |
| 23403 | {&__pyx_n_s_COLLECTION_TYPE_UNIVERSE, __pyx_k_COLLECTION_TYPE_UNIVERSE, sizeof(__pyx_k_COLLECTION_TYPE_UNIVERSE), 0, 0, 1, 1}, |
| 23404 | {&__pyx_kp_s_Can_t_set_idlist_for_this_type_o, __pyx_k_Can_t_set_idlist_for_this_type_o, sizeof(__pyx_k_Can_t_set_idlist_for_this_type_o), 0, 0, 1, 0}, |
| 23405 | {&__pyx_n_s_CollectionWrapper, __pyx_k_CollectionWrapper, sizeof(__pyx_k_CollectionWrapper), 0, 0, 1, 1}, |
| 23406 | {&__pyx_n_s_Collections, __pyx_k_Collections, sizeof(__pyx_k_Collections), 0, 0, 1, 1}, |
| 23407 | {&__pyx_n_s_Complement, __pyx_k_Complement, sizeof(__pyx_k_Complement), 0, 0, 1, 1}, |
| 23408 | {&__pyx_n_s_Complement___init, __pyx_k_Complement___init, sizeof(__pyx_k_Complement___init), 0, 0, 1, 1}, |
| 23409 | {&__pyx_kp_s_Custom_class_must_be_a_subclass, __pyx_k_Custom_class_must_be_a_subclass, sizeof(__pyx_k_Custom_class_must_be_a_subclass), 0, 0, 1, 0}, |
| 23410 | {&__pyx_n_s_DESC, __pyx_k_DESC, sizeof(__pyx_k_DESC), 0, 0, 1, 1}, |
| 23411 | {&__pyx_n_s_Equals, __pyx_k_Equals, sizeof(__pyx_k_Equals), 0, 0, 1, 1}, |
| 23412 | {&__pyx_n_s_Equals___init, __pyx_k_Equals___init, sizeof(__pyx_k_Equals___init), 0, 0, 1, 1}, |
| 23413 | {&__pyx_n_s_Exception, __pyx_k_Exception, sizeof(__pyx_k_Exception), 0, 0, 1, 1}, |
| 23414 | {&__pyx_kp_s_Failed_to_append_an_id, __pyx_k_Failed_to_append_an_id, sizeof(__pyx_k_Failed_to_append_an_id), 0, 0, 1, 0}, |
| 23415 | {&__pyx_kp_s_Failed_to_clear_ids, __pyx_k_Failed_to_clear_ids, sizeof(__pyx_k_Failed_to_clear_ids), 0, 0, 1, 0}, |
| 23416 | {&__pyx_kp_s_Failed_to_get_fict_iterator, __pyx_k_Failed_to_get_fict_iterator, sizeof(__pyx_k_Failed_to_get_fict_iterator), 0, 0, 1, 0}, |
| 23417 | {&__pyx_kp_s_Failed_to_initialize_the_iterato, __pyx_k_Failed_to_initialize_the_iterato, sizeof(__pyx_k_Failed_to_initialize_the_iterato), 0, 0, 1, 0}, |
| 23418 | {&__pyx_kp_s_Failed_to_retrieve_dict_item, __pyx_k_Failed_to_retrieve_dict_item, sizeof(__pyx_k_Failed_to_retrieve_dict_item), 0, 0, 1, 0}, |
| 23419 | {&__pyx_kp_s_Failed_to_retrieve_id_at_index_d, __pyx_k_Failed_to_retrieve_id_at_index_d, sizeof(__pyx_k_Failed_to_retrieve_id_at_index_d), 0, 0, 1, 0}, |
| 23420 | {&__pyx_kp_s_Failed_to_retrieve_list_entry, __pyx_k_Failed_to_retrieve_list_entry, sizeof(__pyx_k_Failed_to_retrieve_list_entry), 0, 0, 1, 0}, |
| 23421 | {&__pyx_kp_s_Failed_to_retrieve_value, __pyx_k_Failed_to_retrieve_value, sizeof(__pyx_k_Failed_to_retrieve_value), 0, 0, 1, 0}, |
| 23422 | {&__pyx_n_s_FilterCollection, __pyx_k_FilterCollection, sizeof(__pyx_k_FilterCollection), 0, 0, 1, 1}, |
| 23423 | {&__pyx_n_s_FilterCollection___init, __pyx_k_FilterCollection___init, sizeof(__pyx_k_FilterCollection___init), 0, 0, 1, 1}, |
| 23424 | {&__pyx_n_s_Greater, __pyx_k_Greater, sizeof(__pyx_k_Greater), 0, 0, 1, 1}, |
| 23425 | {&__pyx_n_s_GreaterEqual, __pyx_k_GreaterEqual, sizeof(__pyx_k_GreaterEqual), 0, 0, 1, 1}, |
| 23426 | {&__pyx_n_s_GreaterEqual___init, __pyx_k_GreaterEqual___init, sizeof(__pyx_k_GreaterEqual___init), 0, 0, 1, 1}, |
| 23427 | {&__pyx_n_s_Greater___init, __pyx_k_Greater___init, sizeof(__pyx_k_Greater___init), 0, 0, 1, 1}, |
| 23428 | {&__pyx_n_s_Has, __pyx_k_Has, sizeof(__pyx_k_Has), 0, 0, 1, 1}, |
| 23429 | {&__pyx_n_s_Has___init, __pyx_k_Has___init, sizeof(__pyx_k_Has___init), 0, 0, 1, 1}, |
| 23430 | {&__pyx_n_s_IDList, __pyx_k_IDList, sizeof(__pyx_k_IDList), 0, 0, 1, 1}, |
| 23431 | {&__pyx_n_s_IDList___init, __pyx_k_IDList___init, sizeof(__pyx_k_IDList___init), 0, 0, 1, 1}, |
| 23432 | {&__pyx_n_s_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 0, 0, 1, 1}, |
| 23433 | {&__pyx_kp_s_Index_out_of_range, __pyx_k_Index_out_of_range, sizeof(__pyx_k_Index_out_of_range), 0, 0, 1, 0}, |
| 23434 | {&__pyx_n_s_Intersection, __pyx_k_Intersection, sizeof(__pyx_k_Intersection), 0, 0, 1, 1}, |
| 23435 | {&__pyx_n_s_Intersection___init, __pyx_k_Intersection___init, sizeof(__pyx_k_Intersection___init), 0, 0, 1, 1}, |
| 23436 | {&__pyx_n_s_KeyError, __pyx_k_KeyError, sizeof(__pyx_k_KeyError), 0, 0, 1, 1}, |
| 23437 | {&__pyx_n_s_Limit, __pyx_k_Limit, sizeof(__pyx_k_Limit), 0, 0, 1, 1}, |
| 23438 | {&__pyx_n_s_Limit___init, __pyx_k_Limit___init, sizeof(__pyx_k_Limit___init), 0, 0, 1, 1}, |
| 23439 | {&__pyx_n_s_Match, __pyx_k_Match, sizeof(__pyx_k_Match), 0, 0, 1, 1}, |
| 23440 | {&__pyx_n_s_Match___init, __pyx_k_Match___init, sizeof(__pyx_k_Match___init), 0, 0, 1, 1}, |
| 23441 | {&__pyx_n_s_Mediaset, __pyx_k_Mediaset, sizeof(__pyx_k_Mediaset), 0, 0, 1, 1}, |
| 23442 | {&__pyx_n_s_Mediaset___init, __pyx_k_Mediaset___init, sizeof(__pyx_k_Mediaset___init), 0, 0, 1, 1}, |
| 23443 | {&__pyx_n_s_NotEqual, __pyx_k_NotEqual, sizeof(__pyx_k_NotEqual), 0, 0, 1, 1}, |
| 23444 | {&__pyx_n_s_NotEqual___init, __pyx_k_NotEqual___init, sizeof(__pyx_k_NotEqual___init), 0, 0, 1, 1}, |
| 23445 | {&__pyx_n_s_Order, __pyx_k_Order, sizeof(__pyx_k_Order), 0, 0, 1, 1}, |
| 23446 | {&__pyx_n_s_Order___init, __pyx_k_Order___init, sizeof(__pyx_k_Order___init), 0, 0, 1, 1}, |
| 23447 | {&__pyx_n_s_PShuffle, __pyx_k_PShuffle, sizeof(__pyx_k_PShuffle), 0, 0, 1, 1}, |
| 23448 | {&__pyx_n_s_PShuffle___init, __pyx_k_PShuffle___init, sizeof(__pyx_k_PShuffle___init), 0, 0, 1, 1}, |
| 23449 | {&__pyx_n_s_PropDict, __pyx_k_PropDict, sizeof(__pyx_k_PropDict), 0, 0, 1, 1}, |
| 23450 | {&__pyx_n_s_Queue, __pyx_k_Queue, sizeof(__pyx_k_Queue), 0, 0, 1, 1}, |
| 23451 | {&__pyx_n_s_Queue___init, __pyx_k_Queue___init, sizeof(__pyx_k_Queue___init), 0, 0, 1, 1}, |
| 23452 | {&__pyx_n_s_Reference, __pyx_k_Reference, sizeof(__pyx_k_Reference), 0, 0, 1, 1}, |
| 23453 | {&__pyx_n_s_Reference___init, __pyx_k_Reference___init, sizeof(__pyx_k_Reference___init), 0, 0, 1, 1}, |
| 23454 | {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1}, |
| 23455 | {&__pyx_n_s_Smaller, __pyx_k_Smaller, sizeof(__pyx_k_Smaller), 0, 0, 1, 1}, |
| 23456 | {&__pyx_n_s_SmallerEqual, __pyx_k_SmallerEqual, sizeof(__pyx_k_SmallerEqual), 0, 0, 1, 1}, |
| 23457 | {&__pyx_n_s_SmallerEqual___init, __pyx_k_SmallerEqual___init, sizeof(__pyx_k_SmallerEqual___init), 0, 0, 1, 1}, |
| 23458 | {&__pyx_n_s_Smaller___init, __pyx_k_Smaller___init, sizeof(__pyx_k_Smaller___init), 0, 0, 1, 1}, |
| 23459 | {&__pyx_n_s_StopIteration, __pyx_k_StopIteration, sizeof(__pyx_k_StopIteration), 0, 0, 1, 1}, |
| 23460 | {&__pyx_kp_s_The_attribute_s_doesn_t_exist, __pyx_k_The_attribute_s_doesn_t_exist, sizeof(__pyx_k_The_attribute_s_doesn_t_exist), 0, 0, 1, 0}, |
| 23461 | {&__pyx_kp_s_The_value_is_not_a_collection, __pyx_k_The_value_is_not_a_collection, sizeof(__pyx_k_The_value_is_not_a_collection), 0, 0, 1, 0}, |
| 23462 | {&__pyx_kp_s_The_value_is_not_a_dict, __pyx_k_The_value_is_not_a_dict, sizeof(__pyx_k_The_value_is_not_a_dict), 0, 0, 1, 0}, |
| 23463 | {&__pyx_kp_s_The_value_is_not_a_list, __pyx_k_The_value_is_not_a_list, sizeof(__pyx_k_The_value_is_not_a_list), 0, 0, 1, 0}, |
| 23464 | {&__pyx_n_s_Token, __pyx_k_Token, sizeof(__pyx_k_Token), 0, 0, 1, 1}, |
| 23465 | {&__pyx_n_s_Token___init, __pyx_k_Token___init, sizeof(__pyx_k_Token___init), 0, 0, 1, 1}, |
| 23466 | {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1}, |
| 23467 | {&__pyx_kp_s_Type_s_has_no_corresponding_nati, __pyx_k_Type_s_has_no_corresponding_nati, sizeof(__pyx_k_Type_s_has_no_corresponding_nati), 0, 0, 1, 0}, |
| 23468 | {&__pyx_kp_s_Unable_to_parse_the_pattern, __pyx_k_Unable_to_parse_the_pattern, sizeof(__pyx_k_Unable_to_parse_the_pattern), 0, 0, 1, 0}, |
| 23469 | {&__pyx_kp_s_Uninitialized_collection, __pyx_k_Uninitialized_collection, sizeof(__pyx_k_Uninitialized_collection), 0, 0, 1, 0}, |
| 23470 | {&__pyx_n_s_Union, __pyx_k_Union, sizeof(__pyx_k_Union), 0, 0, 1, 1}, |
| 23471 | {&__pyx_n_s_Union___init, __pyx_k_Union___init, sizeof(__pyx_k_Union___init), 0, 0, 1, 1}, |
| 23472 | {&__pyx_n_s_Universe, __pyx_k_Universe, sizeof(__pyx_k_Universe), 0, 0, 1, 1}, |
| 23473 | {&__pyx_n_s_Universe___init, __pyx_k_Universe___init, sizeof(__pyx_k_Universe___init), 0, 0, 1, 1}, |
| 23474 | {&__pyx_n_s_Universe___repr, __pyx_k_Universe___repr, sizeof(__pyx_k_Universe___repr), 0, 0, 1, 1}, |
| 23475 | {&__pyx_kp_s_Unknown_collection_type, __pyx_k_Unknown_collection_type, sizeof(__pyx_k_Unknown_collection_type), 0, 0, 1, 0}, |
| 23476 | {&__pyx_kp_s_Unknown_iter_type, __pyx_k_Unknown_iter_type, sizeof(__pyx_k_Unknown_iter_type), 0, 0, 1, 0}, |
| 23477 | {&__pyx_kp_s_Unknown_value_type_from_the_serv, __pyx_k_Unknown_value_type_from_the_serv, sizeof(__pyx_k_Unknown_value_type_from_the_serv), 0, 0, 1, 0}, |
| 23478 | {&__pyx_kp_s_Unsupported_operand_type_s_for_r, __pyx_k_Unsupported_operand_type_s_for_r, sizeof(__pyx_k_Unsupported_operand_type_s_for_r), 0, 0, 1, 0}, |
| 23479 | {&__pyx_kp_s_Unsupported_operand_type_s_for_r_2, __pyx_k_Unsupported_operand_type_s_for_r_2, sizeof(__pyx_k_Unsupported_operand_type_s_for_r_2), 0, 0, 1, 0}, |
| 23480 | {&__pyx_n_s_VALUE_TYPE_BIN, __pyx_k_VALUE_TYPE_BIN, sizeof(__pyx_k_VALUE_TYPE_BIN), 0, 0, 1, 1}, |
| 23481 | {&__pyx_n_s_VALUE_TYPE_COLL, __pyx_k_VALUE_TYPE_COLL, sizeof(__pyx_k_VALUE_TYPE_COLL), 0, 0, 1, 1}, |
| 23482 | {&__pyx_n_s_VALUE_TYPE_DICT, __pyx_k_VALUE_TYPE_DICT, sizeof(__pyx_k_VALUE_TYPE_DICT), 0, 0, 1, 1}, |
| 23483 | {&__pyx_n_s_VALUE_TYPE_ERROR, __pyx_k_VALUE_TYPE_ERROR, sizeof(__pyx_k_VALUE_TYPE_ERROR), 0, 0, 1, 1}, |
| 23484 | {&__pyx_n_s_VALUE_TYPE_FLOAT, __pyx_k_VALUE_TYPE_FLOAT, sizeof(__pyx_k_VALUE_TYPE_FLOAT), 0, 0, 1, 1}, |
| 23485 | {&__pyx_n_s_VALUE_TYPE_INT64, __pyx_k_VALUE_TYPE_INT64, sizeof(__pyx_k_VALUE_TYPE_INT64), 0, 0, 1, 1}, |
| 23486 | {&__pyx_n_s_VALUE_TYPE_LIST, __pyx_k_VALUE_TYPE_LIST, sizeof(__pyx_k_VALUE_TYPE_LIST), 0, 0, 1, 1}, |
| 23487 | {&__pyx_n_s_VALUE_TYPE_NONE, __pyx_k_VALUE_TYPE_NONE, sizeof(__pyx_k_VALUE_TYPE_NONE), 0, 0, 1, 1}, |
| 23488 | {&__pyx_n_s_VALUE_TYPE_STRING, __pyx_k_VALUE_TYPE_STRING, sizeof(__pyx_k_VALUE_TYPE_STRING), 0, 0, 1, 1}, |
| 23489 | {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, |
| 23490 | {&__pyx_kp_s_Value_type_not_iterable, __pyx_k_Value_type_not_iterable, sizeof(__pyx_k_Value_type_not_iterable), 0, 0, 1, 0}, |
| 23491 | {&__pyx_n_s_XmmsError, __pyx_k_XmmsError, sizeof(__pyx_k_XmmsError), 0, 0, 1, 1}, |
| 23492 | {&__pyx_kp_s__16, __pyx_k__16, sizeof(__pyx_k__16), 0, 0, 1, 0}, |
| 23493 | {&__pyx_kp_s__36, __pyx_k__36, sizeof(__pyx_k__36), 0, 0, 1, 0}, |
| 23494 | {&__pyx_n_s_a, __pyx_k_a, sizeof(__pyx_k_a), 0, 0, 1, 1}, |
| 23495 | {&__pyx_n_s_append, __pyx_k_append, sizeof(__pyx_k_append), 0, 0, 1, 1}, |
| 23496 | {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, |
| 23497 | {&__pyx_n_s_attributes, __pyx_k_attributes, sizeof(__pyx_k_attributes), 0, 0, 1, 1}, |
| 23498 | {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1}, |
| 23499 | {&__pyx_n_s_call, __pyx_k_call, sizeof(__pyx_k_call), 0, 0, 1, 1}, |
| 23500 | {&__pyx_n_s_class, __pyx_k_class, sizeof(__pyx_k_class), 0, 0, 1, 1}, |
| 23501 | {&__pyx_n_s_clear, __pyx_k_clear, sizeof(__pyx_k_clear), 0, 0, 1, 1}, |
| 23502 | {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1}, |
| 23503 | {&__pyx_n_s_cls, __pyx_k_cls, sizeof(__pyx_k_cls), 0, 0, 1, 1}, |
| 23504 | {&__pyx_n_s_coll, __pyx_k_coll, sizeof(__pyx_k_coll), 0, 0, 1, 1}, |
| 23505 | {&__pyx_n_s_coll_parse, __pyx_k_coll_parse, sizeof(__pyx_k_coll_parse), 0, 0, 1, 1}, |
| 23506 | {&__pyx_n_s_colltype, __pyx_k_colltype, sizeof(__pyx_k_colltype), 0, 0, 1, 1}, |
| 23507 | {&__pyx_n_s_copy, __pyx_k_copy, sizeof(__pyx_k_copy), 0, 0, 1, 1}, |
| 23508 | {&__pyx_n_s_default, __pyx_k_default, sizeof(__pyx_k_default), 0, 0, 1, 1}, |
| 23509 | {&__pyx_n_s_direction, __pyx_k_direction, sizeof(__pyx_k_direction), 0, 0, 1, 1}, |
| 23510 | {&__pyx_kp_s_direction_must_be_an_integer_or, __pyx_k_direction_must_be_an_integer_or, sizeof(__pyx_k_direction_must_be_an_integer_or), 0, 0, 1, 0}, |
| 23511 | {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, |
| 23512 | {&__pyx_n_s_extend, __pyx_k_extend, sizeof(__pyx_k_extend), 0, 0, 1, 1}, |
| 23513 | {&__pyx_n_s_field, __pyx_k_field, sizeof(__pyx_k_field), 0, 0, 1, 1}, |
| 23514 | {&__pyx_n_s_get, __pyx_k_get, sizeof(__pyx_k_get), 0, 0, 1, 1}, |
| 23515 | {&__pyx_n_s_get_bin, __pyx_k_get_bin, sizeof(__pyx_k_get_bin), 0, 0, 1, 1}, |
| 23516 | {&__pyx_n_s_get_coll, __pyx_k_get_coll, sizeof(__pyx_k_get_coll), 0, 0, 1, 1}, |
| 23517 | {&__pyx_n_s_get_dict, __pyx_k_get_dict, sizeof(__pyx_k_get_dict), 0, 0, 1, 1}, |
| 23518 | {&__pyx_n_s_get_dict_iter, __pyx_k_get_dict_iter, sizeof(__pyx_k_get_dict_iter), 0, 0, 1, 1}, |
| 23519 | {&__pyx_n_s_get_error, __pyx_k_get_error, sizeof(__pyx_k_get_error), 0, 0, 1, 1}, |
| 23520 | {&__pyx_n_s_get_float, __pyx_k_get_float, sizeof(__pyx_k_get_float), 0, 0, 1, 1}, |
| 23521 | {&__pyx_n_s_get_int, __pyx_k_get_int, sizeof(__pyx_k_get_int), 0, 0, 1, 1}, |
| 23522 | {&__pyx_n_s_get_list, __pyx_k_get_list, sizeof(__pyx_k_get_list), 0, 0, 1, 1}, |
| 23523 | {&__pyx_n_s_get_list_iter, __pyx_k_get_list_iter, sizeof(__pyx_k_get_list_iter), 0, 0, 1, 1}, |
| 23524 | {&__pyx_n_s_get_propdict, __pyx_k_get_propdict, sizeof(__pyx_k_get_propdict), 0, 0, 1, 1}, |
| 23525 | {&__pyx_n_s_get_string, __pyx_k_get_string, sizeof(__pyx_k_get_string), 0, 0, 1, 1}, |
| 23526 | {&__pyx_n_s_get_type, __pyx_k_get_type, sizeof(__pyx_k_get_type), 0, 0, 1, 1}, |
| 23527 | {&__pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_k_home_travis_build_dsvensson_xmm, sizeof(__pyx_k_home_travis_build_dsvensson_xmm), 0, 0, 1, 0}, |
| 23528 | {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, |
| 23529 | {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1}, |
| 23530 | {&__pyx_n_s_ids, __pyx_k_ids, sizeof(__pyx_k_ids), 0, 0, 1, 1}, |
| 23531 | {&__pyx_kp_s_ids_r, __pyx_k_ids_r, sizeof(__pyx_k_ids_r), 0, 0, 1, 0}, |
| 23532 | {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, |
| 23533 | {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, |
| 23534 | {&__pyx_kp_s_init___argument_must_not_be_No, __pyx_k_init___argument_must_not_be_No, sizeof(__pyx_k_init___argument_must_not_be_No), 0, 0, 1, 0}, |
| 23535 | {&__pyx_n_s_insert, __pyx_k_insert, sizeof(__pyx_k_insert), 0, 0, 1, 1}, |
| 23536 | {&__pyx_n_s_is_error, __pyx_k_is_error, sizeof(__pyx_k_is_error), 0, 0, 1, 1}, |
| 23537 | {&__pyx_n_s_iserror, __pyx_k_iserror, sizeof(__pyx_k_iserror), 0, 0, 1, 1}, |
| 23538 | {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1}, |
| 23539 | {&__pyx_n_s_iteritems, __pyx_k_iteritems, sizeof(__pyx_k_iteritems), 0, 0, 1, 1}, |
| 23540 | {&__pyx_n_s_iterkeys, __pyx_k_iterkeys, sizeof(__pyx_k_iterkeys), 0, 0, 1, 1}, |
| 23541 | {&__pyx_n_s_itertype, __pyx_k_itertype, sizeof(__pyx_k_itertype), 0, 0, 1, 1}, |
| 23542 | {&__pyx_n_s_itervalues, __pyx_k_itervalues, sizeof(__pyx_k_itervalues), 0, 0, 1, 1}, |
| 23543 | {&__pyx_n_s_iterxitems, __pyx_k_iterxitems, sizeof(__pyx_k_iterxitems), 0, 0, 1, 1}, |
| 23544 | {&__pyx_n_s_iterxvalues, __pyx_k_iterxvalues, sizeof(__pyx_k_iterxvalues), 0, 0, 1, 1}, |
| 23545 | {&__pyx_n_s_join, __pyx_k_join, sizeof(__pyx_k_join), 0, 0, 1, 1}, |
| 23546 | {&__pyx_n_s_kargs, __pyx_k_kargs, sizeof(__pyx_k_kargs), 0, 0, 1, 1}, |
| 23547 | {&__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1}, |
| 23548 | {&__pyx_n_s_length, __pyx_k_length, sizeof(__pyx_k_length), 0, 0, 1, 1}, |
| 23549 | {&__pyx_n_s_list, __pyx_k_list, sizeof(__pyx_k_list), 0, 0, 1, 1}, |
| 23550 | {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, |
| 23551 | {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, |
| 23552 | {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, |
| 23553 | {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, |
| 23554 | {&__pyx_n_s_name_2, __pyx_k_name_2, sizeof(__pyx_k_name_2), 0, 0, 1, 1}, |
| 23555 | {&__pyx_n_s_namespace, __pyx_k_namespace, sizeof(__pyx_k_namespace), 0, 0, 1, 1}, |
| 23556 | {&__pyx_n_s_ns, __pyx_k_ns, sizeof(__pyx_k_ns), 0, 0, 1, 1}, |
| 23557 | {&__pyx_n_s_operand, __pyx_k_operand, sizeof(__pyx_k_operand), 0, 0, 1, 1}, |
| 23558 | {&__pyx_n_s_operands, __pyx_k_operands, sizeof(__pyx_k_operands), 0, 0, 1, 1}, |
| 23559 | {&__pyx_kp_s_operands_s, __pyx_k_operands_s, sizeof(__pyx_k_operands_s), 0, 0, 1, 0}, |
| 23560 | {&__pyx_n_s_operation, __pyx_k_operation, sizeof(__pyx_k_operation), 0, 0, 1, 1}, |
| 23561 | {&__pyx_n_s_parent, __pyx_k_parent, sizeof(__pyx_k_parent), 0, 0, 1, 1}, |
| 23562 | {&__pyx_n_s_pattern, __pyx_k_pattern, sizeof(__pyx_k_pattern), 0, 0, 1, 1}, |
| 23563 | {&__pyx_n_s_pattern_2, __pyx_k_pattern_2, sizeof(__pyx_k_pattern_2), 0, 0, 1, 1}, |
| 23564 | {&__pyx_n_s_pop, __pyx_k_pop, sizeof(__pyx_k_pop), 0, 0, 1, 1}, |
| 23565 | {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, |
| 23566 | {&__pyx_n_s_propdict, __pyx_k_propdict, sizeof(__pyx_k_propdict), 0, 0, 1, 1}, |
| 23567 | {&__pyx_n_s_pshuffle, __pyx_k_pshuffle, sizeof(__pyx_k_pshuffle), 0, 0, 1, 1}, |
| 23568 | {&__pyx_n_s_pyval, __pyx_k_pyval, sizeof(__pyx_k_pyval), 0, 0, 1, 1}, |
| 23569 | {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1}, |
| 23570 | {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, |
| 23571 | {&__pyx_n_s_queue, __pyx_k_queue, sizeof(__pyx_k_queue), 0, 0, 1, 1}, |
| 23572 | {&__pyx_n_s_random, __pyx_k_random, sizeof(__pyx_k_random), 0, 0, 1, 1}, |
| 23573 | {&__pyx_n_s_ref, __pyx_k_ref, sizeof(__pyx_k_ref), 0, 0, 1, 1}, |
| 23574 | {&__pyx_n_s_reference, __pyx_k_reference, sizeof(__pyx_k_reference), 0, 0, 1, 1}, |
| 23575 | {&__pyx_n_s_remove, __pyx_k_remove, sizeof(__pyx_k_remove), 0, 0, 1, 1}, |
| 23576 | {&__pyx_n_s_repr, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1}, |
| 23577 | {&__pyx_n_s_reset, __pyx_k_reset, sizeof(__pyx_k_reset), 0, 0, 1, 1}, |
| 23578 | {&__pyx_kp_s_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 0, 1, 0}, |
| 23579 | {&__pyx_kp_s_s_s, __pyx_k_s_s, sizeof(__pyx_k_s_s), 0, 0, 1, 0}, |
| 23580 | {&__pyx_kp_s_s_s_2, __pyx_k_s_s_2, sizeof(__pyx_k_s_s_2), 0, 0, 1, 0}, |
| 23581 | {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, |
| 23582 | {&__pyx_n_s_send, __pyx_k_send, sizeof(__pyx_k_send), 0, 0, 1, 1}, |
| 23583 | {&__pyx_n_s_set_pyval, __pyx_k_set_pyval, sizeof(__pyx_k_set_pyval), 0, 0, 1, 1}, |
| 23584 | {&__pyx_n_s_sourcepref, __pyx_k_sourcepref, sizeof(__pyx_k_sourcepref), 0, 0, 1, 1}, |
| 23585 | {&__pyx_n_s_start, __pyx_k_start, sizeof(__pyx_k_start), 0, 0, 1, 1}, |
| 23586 | {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, |
| 23587 | {&__pyx_n_s_throw, __pyx_k_throw, sizeof(__pyx_k_throw), 0, 0, 1, 1}, |
| 23588 | {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1}, |
| 23589 | {&__pyx_n_s_update, __pyx_k_update, sizeof(__pyx_k_update), 0, 0, 1, 1}, |
| 23590 | {&__pyx_n_s_upper, __pyx_k_upper, sizeof(__pyx_k_upper), 0, 0, 1, 1}, |
| 23591 | {&__pyx_n_s_v, __pyx_k_v, sizeof(__pyx_k_v), 0, 0, 1, 1}, |
| 23592 | {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, |
| 23593 | {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1}, |
| 23594 | {&__pyx_n_s_xget, __pyx_k_xget, sizeof(__pyx_k_xget), 0, 0, 1, 1}, |
| 23595 | {&__pyx_n_s_xitems, __pyx_k_xitems, sizeof(__pyx_k_xitems), 0, 0, 1, 1}, |
| 23596 | {&__pyx_n_s_xmmsvalue, __pyx_k_xmmsvalue, sizeof(__pyx_k_xmmsvalue), 0, 0, 1, 1}, |
| 23597 | {&__pyx_n_s_xvalues, __pyx_k_xvalues, sizeof(__pyx_k_xvalues), 0, 0, 1, 1}, |
| 23598 | {0, 0, 0, 0, 0, 0, 0} |
| 23599 | }; |
| 23600 | static int __Pyx_InitCachedBuiltins(void) { |
| 23601 | __pyx_builtin_Exception = __Pyx_GetBuiltinName(__pyx_n_s_Exception); if (!__pyx_builtin_Exception) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__23601; goto __pyx_L1_error;} |
| 23602 | __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__23602; goto __pyx_L1_error;} |
| 23603 | __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__23603; goto __pyx_L1_error;} |
| 23604 | __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__23604; goto __pyx_L1_error;} |
| 23605 | __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__23605; goto __pyx_L1_error;} |
| 23606 | __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__23606; goto __pyx_L1_error;} |
| 23607 | __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 718; __pyx_clineno = __LINE__23607; goto __pyx_L1_error;} |
| 23608 | return 0; |
| 23609 | __pyx_L1_error:; |
| 23610 | return -1; |
| 23611 | } |
| 23612 | |
| 23613 | static int __Pyx_InitCachedConstants(void) { |
| 23614 | __Pyx_RefNannyDeclarations |
| 23615 | __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); |
| 23616 | |
| 23617 | /* "xmmsvalue.pyx":150 |
| 23618 | * cdef char *ret = NULL |
| 23619 | * if not xmmsv_get_error(self.val, <const_char **>&ret): |
| 23620 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 23621 | * return XmmsError(to_unicode(ret)) |
| 23622 | * |
| 23623 | */ |
| 23624 | __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_Failed_to_retrieve_value); if (unlikely(!__pyx_tuple_)__builtin_expect(!!(!__pyx_tuple_), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__23624; goto __pyx_L1_error;} |
| 23625 | __Pyx_GOTREF(__pyx_tuple_); |
| 23626 | __Pyx_GIVEREF(__pyx_tuple_); |
| 23627 | |
| 23628 | /* "xmmsvalue.pyx":160 |
| 23629 | * cdef int64_t ret = 0 |
| 23630 | * if not xmmsv_get_int64(self.val, &ret): |
| 23631 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 23632 | * return ret |
| 23633 | * |
| 23634 | */ |
| 23635 | __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_retrieve_value); if (unlikely(!__pyx_tuple__2)__builtin_expect(!!(!__pyx_tuple__2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__23635; goto __pyx_L1_error;} |
| 23636 | __Pyx_GOTREF(__pyx_tuple__2); |
| 23637 | __Pyx_GIVEREF(__pyx_tuple__2); |
| 23638 | |
| 23639 | /* "xmmsvalue.pyx":170 |
| 23640 | * cdef float ret = 0 |
| 23641 | * if not xmmsv_get_float(self.val, &ret): |
| 23642 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 23643 | * return ret |
| 23644 | * |
| 23645 | */ |
| 23646 | __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_retrieve_value); if (unlikely(!__pyx_tuple__3)__builtin_expect(!!(!__pyx_tuple__3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__23646; goto __pyx_L1_error;} |
| 23647 | __Pyx_GOTREF(__pyx_tuple__3); |
| 23648 | __Pyx_GIVEREF(__pyx_tuple__3); |
| 23649 | |
| 23650 | /* "xmmsvalue.pyx":180 |
| 23651 | * cdef char *ret = NULL |
| 23652 | * if not xmmsv_get_string(self.val, <const_char **>&ret): |
| 23653 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 23654 | * return to_unicode(ret) |
| 23655 | * |
| 23656 | */ |
| 23657 | __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_retrieve_value); if (unlikely(!__pyx_tuple__4)__builtin_expect(!!(!__pyx_tuple__4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__23657; goto __pyx_L1_error;} |
| 23658 | __Pyx_GOTREF(__pyx_tuple__4); |
| 23659 | __Pyx_GIVEREF(__pyx_tuple__4); |
| 23660 | |
| 23661 | /* "xmmsvalue.pyx":191 |
| 23662 | * cdef unsigned int rlen = 0 |
| 23663 | * if not xmmsv_get_bin(self.val, <const_uchar **>&ret, &rlen): |
| 23664 | * raise ValueError("Failed to retrieve value") # <<<<<<<<<<<<<< |
| 23665 | * return PyBytes_FromStringAndSize(<char *>ret, rlen) |
| 23666 | * |
| 23667 | */ |
| 23668 | __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_retrieve_value); if (unlikely(!__pyx_tuple__5)__builtin_expect(!!(!__pyx_tuple__5), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 191; __pyx_clineno = __LINE__23668; goto __pyx_L1_error;} |
| 23669 | __Pyx_GOTREF(__pyx_tuple__5); |
| 23670 | __Pyx_GIVEREF(__pyx_tuple__5); |
| 23671 | |
| 23672 | /* "xmmsvalue.pyx":200 |
| 23673 | * """ |
| 23674 | * if not xmmsv_is_type(self.val, XMMSV_TYPE_COLL): |
| 23675 | * raise ValueError("The value is not a collection") # <<<<<<<<<<<<<< |
| 23676 | * return create_coll(self.val) |
| 23677 | * |
| 23678 | */ |
| 23679 | __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_The_value_is_not_a_collection); if (unlikely(!__pyx_tuple__6)__builtin_expect(!!(!__pyx_tuple__6), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__23679; goto __pyx_L1_error;} |
| 23680 | __Pyx_GOTREF(__pyx_tuple__6); |
| 23681 | __Pyx_GIVEREF(__pyx_tuple__6); |
| 23682 | |
| 23683 | /* "xmmsvalue.pyx":272 |
| 23684 | * cls = XmmsValue |
| 23685 | * elif not issubclass(cls, XmmsValue): |
| 23686 | * raise TypeError("Custom class must be a subclass of XmmsValue") # <<<<<<<<<<<<<< |
| 23687 | * return cls(sourcepref = self.sourcepref, pyval = self) |
| 23688 | * |
| 23689 | */ |
| 23690 | __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_Custom_class_must_be_a_subclass); if (unlikely(!__pyx_tuple__7)__builtin_expect(!!(!__pyx_tuple__7), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__23690; goto __pyx_L1_error;} |
| 23691 | __Pyx_GOTREF(__pyx_tuple__7); |
| 23692 | __Pyx_GIVEREF(__pyx_tuple__7); |
| 23693 | |
| 23694 | /* "xmmsvalue.pyx":286 |
| 23695 | * elif vtype == XMMSV_TYPE_BIN: |
| 23696 | * return iter(self.get_bin()) |
| 23697 | * raise TypeError("Value type not iterable") # <<<<<<<<<<<<<< |
| 23698 | * |
| 23699 | * |
| 23700 | */ |
| 23701 | __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_s_Value_type_not_iterable); if (unlikely(!__pyx_tuple__8)__builtin_expect(!!(!__pyx_tuple__8), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__23701; goto __pyx_L1_error;} |
| 23702 | __Pyx_GOTREF(__pyx_tuple__8); |
| 23703 | __Pyx_GIVEREF(__pyx_tuple__8); |
| 23704 | |
| 23705 | /* "xmmsvalue.pyx":341 |
| 23706 | * def __init__(self, XmmsValue value): |
| 23707 | * if value.get_type() != XMMSV_TYPE_LIST: |
| 23708 | * raise TypeError("The value is not a list.") # <<<<<<<<<<<<<< |
| 23709 | * self.val = xmmsv_ref(value.val) |
| 23710 | * if not xmmsv_get_list_iter(self.val, &self.it): |
| 23711 | */ |
| 23712 | __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_s_The_value_is_not_a_list); if (unlikely(!__pyx_tuple__9)__builtin_expect(!!(!__pyx_tuple__9), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__23712; goto __pyx_L1_error;} |
| 23713 | __Pyx_GOTREF(__pyx_tuple__9); |
| 23714 | __Pyx_GIVEREF(__pyx_tuple__9); |
| 23715 | |
| 23716 | /* "xmmsvalue.pyx":344 |
| 23717 | * self.val = xmmsv_ref(value.val) |
| 23718 | * if not xmmsv_get_list_iter(self.val, &self.it): |
| 23719 | * raise RuntimeError("Failed to initialize the iterator.") # <<<<<<<<<<<<<< |
| 23720 | * self.sourcepref = value.sourcepref |
| 23721 | * |
| 23722 | */ |
| 23723 | __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_initialize_the_iterato); if (unlikely(!__pyx_tuple__10)__builtin_expect(!!(!__pyx_tuple__10), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 344; __pyx_clineno = __LINE__23723; goto __pyx_L1_error;} |
| 23724 | __Pyx_GOTREF(__pyx_tuple__10); |
| 23725 | __Pyx_GIVEREF(__pyx_tuple__10); |
| 23726 | |
| 23727 | /* "xmmsvalue.pyx":358 |
| 23728 | * |
| 23729 | * if not xmmsv_list_iter_entry(self.it, &val): |
| 23730 | * raise RuntimeError("Failed to retrieve list entry.") # <<<<<<<<<<<<<< |
| 23731 | * v = XmmsValue(self.sourcepref) |
| 23732 | * v.set_value(val) |
| 23733 | */ |
| 23734 | __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_retrieve_list_entry); if (unlikely(!__pyx_tuple__11)__builtin_expect(!!(!__pyx_tuple__11), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__23734; goto __pyx_L1_error;} |
| 23735 | __Pyx_GOTREF(__pyx_tuple__11); |
| 23736 | __Pyx_GIVEREF(__pyx_tuple__11); |
| 23737 | |
| 23738 | /* "xmmsvalue.pyx":383 |
| 23739 | * def __init__(self, XmmsValue value): |
| 23740 | * if value.get_type() != XMMSV_TYPE_DICT: |
| 23741 | * raise TypeError("The value is not a dict.") # <<<<<<<<<<<<<< |
| 23742 | * self.val = xmmsv_ref(value.val) |
| 23743 | * if not xmmsv_get_dict_iter(self.val, &self.it): |
| 23744 | */ |
| 23745 | __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_The_value_is_not_a_dict); if (unlikely(!__pyx_tuple__12)__builtin_expect(!!(!__pyx_tuple__12), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__23745; goto __pyx_L1_error;} |
| 23746 | __Pyx_GOTREF(__pyx_tuple__12); |
| 23747 | __Pyx_GIVEREF(__pyx_tuple__12); |
| 23748 | |
| 23749 | /* "xmmsvalue.pyx":386 |
| 23750 | * self.val = xmmsv_ref(value.val) |
| 23751 | * if not xmmsv_get_dict_iter(self.val, &self.it): |
| 23752 | * raise RuntimeError("Failed to initialize the iterator.") # <<<<<<<<<<<<<< |
| 23753 | * self.sourcepref = value.sourcepref |
| 23754 | * |
| 23755 | */ |
| 23756 | __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_initialize_the_iterato); if (unlikely(!__pyx_tuple__13)__builtin_expect(!!(!__pyx_tuple__13), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__23756; goto __pyx_L1_error;} |
| 23757 | __Pyx_GOTREF(__pyx_tuple__13); |
| 23758 | __Pyx_GIVEREF(__pyx_tuple__13); |
| 23759 | |
| 23760 | /* "xmmsvalue.pyx":401 |
| 23761 | * |
| 23762 | * if not xmmsv_dict_iter_pair(self.it, <const_char **>&key, &val): |
| 23763 | * raise RuntimeError("Failed to retrieve dict item") # <<<<<<<<<<<<<< |
| 23764 | * v = XmmsValue(self.sourcepref) |
| 23765 | * v.set_value(val) |
| 23766 | */ |
| 23767 | __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_retrieve_dict_item); if (unlikely(!__pyx_tuple__14)__builtin_expect(!!(!__pyx_tuple__14), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__23767; goto __pyx_L1_error;} |
| 23768 | __Pyx_GOTREF(__pyx_tuple__14); |
| 23769 | __Pyx_GIVEREF(__pyx_tuple__14); |
| 23770 | |
| 23771 | /* "xmmsvalue.pyx":474 |
| 23772 | * self.init_idlist() |
| 23773 | * if self._idlist is None: |
| 23774 | * raise TypeError("Can't set idlist for this type of collection") # <<<<<<<<<<<<<< |
| 23775 | * elif self._idlist is ids: |
| 23776 | * pass |
| 23777 | */ |
| 23778 | __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_Can_t_set_idlist_for_this_type_o); if (unlikely(!__pyx_tuple__15)__builtin_expect(!!(!__pyx_tuple__15), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__23778; goto __pyx_L1_error;} |
| 23779 | __Pyx_GOTREF(__pyx_tuple__15); |
| 23780 | __Pyx_GIVEREF(__pyx_tuple__15); |
| 23781 | |
| 23782 | /* "xmmsvalue.pyx":546 |
| 23783 | * cdef xmmsv_dict_iter_t *it = NULL |
| 23784 | * if attributes is None: |
| 23785 | * raise TypeError("__init__() argument must not be None") # <<<<<<<<<<<<<< |
| 23786 | * if not xmmsv_get_dict_iter(xmmsv_coll_attributes_get(attributes.coll), &it): |
| 23787 | * raise RuntimeError("Failed to get fict iterator") |
| 23788 | */ |
| 23789 | __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_init___argument_must_not_be_No); if (unlikely(!__pyx_tuple__17)__builtin_expect(!!(!__pyx_tuple__17), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 546; __pyx_clineno = __LINE__23789; goto __pyx_L1_error;} |
| 23790 | __Pyx_GOTREF(__pyx_tuple__17); |
| 23791 | __Pyx_GIVEREF(__pyx_tuple__17); |
| 23792 | |
| 23793 | /* "xmmsvalue.pyx":548 |
| 23794 | * raise TypeError("__init__() argument must not be None") |
| 23795 | * if not xmmsv_get_dict_iter(xmmsv_coll_attributes_get(attributes.coll), &it): |
| 23796 | * raise RuntimeError("Failed to get fict iterator") # <<<<<<<<<<<<<< |
| 23797 | * xmmsv_dict_iter_first(it) |
| 23798 | * self.diter = it |
| 23799 | */ |
| 23800 | __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_get_fict_iterator); if (unlikely(!__pyx_tuple__18)__builtin_expect(!!(!__pyx_tuple__18), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__23800; goto __pyx_L1_error;} |
| 23801 | __Pyx_GOTREF(__pyx_tuple__18); |
| 23802 | __Pyx_GIVEREF(__pyx_tuple__18); |
| 23803 | |
| 23804 | /* "xmmsvalue.pyx":577 |
| 23805 | * else: |
| 23806 | * # Should never be reached |
| 23807 | * raise RuntimeError("Unknown iter type") # <<<<<<<<<<<<<< |
| 23808 | * xmmsv_dict_iter_next(self.diter) |
| 23809 | * return ret |
| 23810 | */ |
| 23811 | __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_Unknown_iter_type); if (unlikely(!__pyx_tuple__19)__builtin_expect(!!(!__pyx_tuple__19), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__23811; goto __pyx_L1_error;} |
| 23812 | __Pyx_GOTREF(__pyx_tuple__19); |
| 23813 | __Pyx_GIVEREF(__pyx_tuple__19); |
| 23814 | |
| 23815 | /* "xmmsvalue.pyx":589 |
| 23816 | * def __init__(self, Collection c): |
| 23817 | * if c.coll == NULL: |
| 23818 | * raise RuntimeError("Uninitialized collection") # <<<<<<<<<<<<<< |
| 23819 | * self.set_collection(c.coll) |
| 23820 | * |
| 23821 | */ |
| 23822 | __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_Uninitialized_collection); if (unlikely(!__pyx_tuple__20)__builtin_expect(!!(!__pyx_tuple__20), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__23822; goto __pyx_L1_error;} |
| 23823 | __Pyx_GOTREF(__pyx_tuple__20); |
| 23824 | __Pyx_GIVEREF(__pyx_tuple__20); |
| 23825 | |
| 23826 | /* "xmmsvalue.pyx":694 |
| 23827 | * def __init__(self, Collection c): |
| 23828 | * if c.coll == NULL: |
| 23829 | * raise RuntimeError("Uninitialized collection") # <<<<<<<<<<<<<< |
| 23830 | * self.set_collection(c.coll) |
| 23831 | * self.init_pylist() |
| 23832 | */ |
| 23833 | __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_Uninitialized_collection); if (unlikely(!__pyx_tuple__21)__builtin_expect(!!(!__pyx_tuple__21), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__23833; goto __pyx_L1_error;} |
| 23834 | __Pyx_GOTREF(__pyx_tuple__21); |
| 23835 | __Pyx_GIVEREF(__pyx_tuple__21); |
| 23836 | |
| 23837 | /* "xmmsvalue.pyx":719 |
| 23838 | * xmmsv_coll_remove_operand(self.coll, op.coll) |
| 23839 | * except IndexError: |
| 23840 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 23841 | * def __iter__(self): |
| 23842 | * return iter(self.pylist) |
| 23843 | */ |
| 23844 | __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_Index_out_of_range); if (unlikely(!__pyx_tuple__22)__builtin_expect(!!(!__pyx_tuple__22), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 719; __pyx_clineno = __LINE__23844; goto __pyx_L1_error;} |
| 23845 | __Pyx_GOTREF(__pyx_tuple__22); |
| 23846 | __Pyx_GIVEREF(__pyx_tuple__22); |
| 23847 | |
| 23848 | /* "xmmsvalue.pyx":746 |
| 23849 | * |
| 23850 | * cpdef list(self): |
| 23851 | * return self.pylist[:] # <<<<<<<<<<<<<< |
| 23852 | * |
| 23853 | * |
| 23854 | */ |
| 23855 | __pyx_slice__23 = PySlice_New(Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct)); if (unlikely(!__pyx_slice__23)__builtin_expect(!!(!__pyx_slice__23), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 746; __pyx_clineno = __LINE__23855; goto __pyx_L1_error;} |
| 23856 | __Pyx_GOTREF(__pyx_slice__23); |
| 23857 | __Pyx_GIVEREF(__pyx_slice__23); |
| 23858 | |
| 23859 | /* "xmmsvalue.pyx":753 |
| 23860 | * def __init__(self, Collection c): |
| 23861 | * if c.coll == NULL: |
| 23862 | * raise RuntimeError("Uninitialized collection") # <<<<<<<<<<<<<< |
| 23863 | * self.set_collection(c.coll) |
| 23864 | * |
| 23865 | */ |
| 23866 | __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_Uninitialized_collection); if (unlikely(!__pyx_tuple__24)__builtin_expect(!!(!__pyx_tuple__24), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 753; __pyx_clineno = __LINE__23866; goto __pyx_L1_error;} |
| 23867 | __Pyx_GOTREF(__pyx_tuple__24); |
| 23868 | __Pyx_GIVEREF(__pyx_tuple__24); |
| 23869 | |
| 23870 | /* "xmmsvalue.pyx":781 |
| 23871 | * """Appends an id to the idlist""" |
| 23872 | * if not xmmsv_coll_idlist_append(self.coll, v): |
| 23873 | * raise RuntimeError("Failed to append an id") # <<<<<<<<<<<<<< |
| 23874 | * |
| 23875 | * cpdef extend(self, v): |
| 23876 | */ |
| 23877 | __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_append_an_id); if (unlikely(!__pyx_tuple__25)__builtin_expect(!!(!__pyx_tuple__25), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 781; __pyx_clineno = __LINE__23877; goto __pyx_L1_error;} |
| 23878 | __Pyx_GOTREF(__pyx_tuple__25); |
| 23879 | __Pyx_GIVEREF(__pyx_tuple__25); |
| 23880 | |
| 23881 | /* "xmmsvalue.pyx":797 |
| 23882 | * i = len(self) + i |
| 23883 | * if not xmmsv_coll_idlist_insert(self.coll, v, i): |
| 23884 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 23885 | * |
| 23886 | * cpdef remove(self, int i): |
| 23887 | */ |
| 23888 | __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_Index_out_of_range); if (unlikely(!__pyx_tuple__26)__builtin_expect(!!(!__pyx_tuple__26), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 797; __pyx_clineno = __LINE__23888; goto __pyx_L1_error;} |
| 23889 | __Pyx_GOTREF(__pyx_tuple__26); |
| 23890 | __Pyx_GIVEREF(__pyx_tuple__26); |
| 23891 | |
| 23892 | /* "xmmsvalue.pyx":804 |
| 23893 | * i = len(self) + i |
| 23894 | * if not xmmsv_coll_idlist_remove(self.coll, i): |
| 23895 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 23896 | * |
| 23897 | * cpdef pop(self, int i = -1): |
| 23898 | */ |
| 23899 | __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_Index_out_of_range); if (unlikely(!__pyx_tuple__27)__builtin_expect(!!(!__pyx_tuple__27), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 804; __pyx_clineno = __LINE__23899; goto __pyx_L1_error;} |
| 23900 | __Pyx_GOTREF(__pyx_tuple__27); |
| 23901 | __Pyx_GIVEREF(__pyx_tuple__27); |
| 23902 | |
| 23903 | /* "xmmsvalue.pyx":822 |
| 23904 | * i = len(self) + i |
| 23905 | * if not xmmsv_coll_idlist_get_index(self.coll, i, &x): |
| 23906 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 23907 | * return x |
| 23908 | * |
| 23909 | */ |
| 23910 | __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_Index_out_of_range); if (unlikely(!__pyx_tuple__28)__builtin_expect(!!(!__pyx_tuple__28), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__23910; goto __pyx_L1_error;} |
| 23911 | __Pyx_GOTREF(__pyx_tuple__28); |
| 23912 | __Pyx_GIVEREF(__pyx_tuple__28); |
| 23913 | |
| 23914 | /* "xmmsvalue.pyx":829 |
| 23915 | * i = len(self) + i |
| 23916 | * if not xmmsv_coll_idlist_set_index(self.coll, i, v): |
| 23917 | * raise IndexError("Index out of range") # <<<<<<<<<<<<<< |
| 23918 | * |
| 23919 | * cpdef clear(self): |
| 23920 | */ |
| 23921 | __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_Index_out_of_range); if (unlikely(!__pyx_tuple__29)__builtin_expect(!!(!__pyx_tuple__29), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 829; __pyx_clineno = __LINE__23921; goto __pyx_L1_error;} |
| 23922 | __Pyx_GOTREF(__pyx_tuple__29); |
| 23923 | __Pyx_GIVEREF(__pyx_tuple__29); |
| 23924 | |
| 23925 | /* "xmmsvalue.pyx":833 |
| 23926 | * cpdef clear(self): |
| 23927 | * if not xmmsv_coll_idlist_clear(self.coll): |
| 23928 | * raise RuntimeError("Failed to clear ids") # <<<<<<<<<<<<<< |
| 23929 | * |
| 23930 | * |
| 23931 | */ |
| 23932 | __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_clear_ids); if (unlikely(!__pyx_tuple__30)__builtin_expect(!!(!__pyx_tuple__30), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 833; __pyx_clineno = __LINE__23932; goto __pyx_L1_error;} |
| 23933 | __Pyx_GOTREF(__pyx_tuple__30); |
| 23934 | __Pyx_GIVEREF(__pyx_tuple__30); |
| 23935 | |
| 23936 | /* "xmmsvalue.pyx":844 |
| 23937 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 23938 | * if self.coll == NULL: |
| 23939 | * raise RuntimeError("Bad collection") # <<<<<<<<<<<<<< |
| 23940 | * |
| 23941 | * operands = kargs.pop("operands", None) |
| 23942 | */ |
| 23943 | __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_Bad_collection); if (unlikely(!__pyx_tuple__31)__builtin_expect(!!(!__pyx_tuple__31), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 844; __pyx_clineno = __LINE__23943; goto __pyx_L1_error;} |
| 23944 | __Pyx_GOTREF(__pyx_tuple__31); |
| 23945 | __Pyx_GIVEREF(__pyx_tuple__31); |
| 23946 | |
| 23947 | /* "xmmsvalue.pyx":846 |
| 23948 | * raise RuntimeError("Bad collection") |
| 23949 | * |
| 23950 | * operands = kargs.pop("operands", None) # <<<<<<<<<<<<<< |
| 23951 | * if operands: |
| 23952 | * self.operands = operands |
| 23953 | */ |
| 23954 | __pyx_tuple__32 = PyTuple_Pack(2, __pyx_n_s_operands, Py_None(&_Py_NoneStruct)); if (unlikely(!__pyx_tuple__32)__builtin_expect(!!(!__pyx_tuple__32), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 846; __pyx_clineno = __LINE__23954; goto __pyx_L1_error;} |
| 23955 | __Pyx_GOTREF(__pyx_tuple__32); |
| 23956 | __Pyx_GIVEREF(__pyx_tuple__32); |
| 23957 | |
| 23958 | /* "xmmsvalue.pyx":850 |
| 23959 | * self.operands = operands |
| 23960 | * |
| 23961 | * ids = kargs.pop("ids", None) # <<<<<<<<<<<<<< |
| 23962 | * if ids: |
| 23963 | * try: |
| 23964 | */ |
| 23965 | __pyx_tuple__33 = PyTuple_Pack(2, __pyx_n_s_ids, Py_None(&_Py_NoneStruct)); if (unlikely(!__pyx_tuple__33)__builtin_expect(!!(!__pyx_tuple__33), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__23965; goto __pyx_L1_error;} |
| 23966 | __Pyx_GOTREF(__pyx_tuple__33); |
| 23967 | __Pyx_GIVEREF(__pyx_tuple__33); |
| 23968 | |
| 23969 | /* "xmmsvalue.pyx":930 |
| 23970 | * direction = str(direction).upper() |
| 23971 | * if direction not in ('ASC', 'DESC'): |
| 23972 | * raise TypeError("'direction' must be an integer or one of 'ASC', 'DESC'") # <<<<<<<<<<<<<< |
| 23973 | * kargs['direction'] = direction |
| 23974 | * |
| 23975 | */ |
| 23976 | __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_direction_must_be_an_integer_or); if (unlikely(!__pyx_tuple__34)__builtin_expect(!!(!__pyx_tuple__34), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 930; __pyx_clineno = __LINE__23976; goto __pyx_L1_error;} |
| 23977 | __Pyx_GOTREF(__pyx_tuple__34); |
| 23978 | __Pyx_GIVEREF(__pyx_tuple__34); |
| 23979 | |
| 23980 | /* "xmmsvalue.pyx":1031 |
| 23981 | * c.__class__ = _collclass[colltype] |
| 23982 | * else: |
| 23983 | * raise RuntimeError("Unknown collection type") # <<<<<<<<<<<<<< |
| 23984 | * |
| 23985 | * c.set_collection(coll) |
| 23986 | */ |
| 23987 | __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_s_Unknown_collection_type); if (unlikely(!__pyx_tuple__35)__builtin_expect(!!(!__pyx_tuple__35), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1031; __pyx_clineno = __LINE__23987; goto __pyx_L1_error;} |
| 23988 | __Pyx_GOTREF(__pyx_tuple__35); |
| 23989 | __Pyx_GIVEREF(__pyx_tuple__35); |
| 23990 | |
| 23991 | /* "xmmsvalue.pyx":1036 |
| 23992 | * |
| 23993 | * if colltype == XMMS_COLLECTION_TYPE_REFERENCE: |
| 23994 | * if c.attributes.get("reference", "") == "All Media": # <<<<<<<<<<<<<< |
| 23995 | * c.__class__ = Universe |
| 23996 | * elif colltype == XMMS_COLLECTION_TYPE_IDLIST: |
| 23997 | */ |
| 23998 | __pyx_tuple__37 = PyTuple_Pack(2, __pyx_n_s_reference, __pyx_kp_s__36); if (unlikely(!__pyx_tuple__37)__builtin_expect(!!(!__pyx_tuple__37), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__23998; goto __pyx_L1_error;} |
| 23999 | __Pyx_GOTREF(__pyx_tuple__37); |
| 24000 | __Pyx_GIVEREF(__pyx_tuple__37); |
| 24001 | |
| 24002 | /* "xmmsvalue.pyx":1054 |
| 24003 | * _pattern = from_unicode(pattern) |
| 24004 | * if not xmmsv_coll_parse(<char *>_pattern, &coll): |
| 24005 | * raise ValueError("Unable to parse the pattern") # <<<<<<<<<<<<<< |
| 24006 | * return create_coll(coll) |
| 24007 | * |
| 24008 | */ |
| 24009 | __pyx_tuple__38 = PyTuple_Pack(1, __pyx_kp_s_Unable_to_parse_the_pattern); if (unlikely(!__pyx_tuple__38)__builtin_expect(!!(!__pyx_tuple__38), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1054; __pyx_clineno = __LINE__24009; goto __pyx_L1_error;} |
| 24010 | __Pyx_GOTREF(__pyx_tuple__38); |
| 24011 | __Pyx_GIVEREF(__pyx_tuple__38); |
| 24012 | |
| 24013 | /* "xmmsvalue.pyx":841 |
| 24014 | * |
| 24015 | * class BaseCollection(CollectionWrapper): |
| 24016 | * def __init__(Collection self, int _colltype, **kargs): # <<<<<<<<<<<<<< |
| 24017 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 24018 | * if self.coll == NULL: |
| 24019 | */ |
| 24020 | __pyx_tuple__39 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_colltype, __pyx_n_s_kargs, __pyx_n_s_operands, __pyx_n_s_ids); if (unlikely(!__pyx_tuple__39)__builtin_expect(!!(!__pyx_tuple__39), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__24020; goto __pyx_L1_error;} |
| 24021 | __Pyx_GOTREF(__pyx_tuple__39); |
| 24022 | __Pyx_GIVEREF(__pyx_tuple__39); |
| 24023 | __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 841, __pyx_empty_bytes)PyCode_New(2 +0, 5, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 841, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)__builtin_expect(!!(!__pyx_codeobj__40), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__24023; goto __pyx_L1_error;} |
| 24024 | |
| 24025 | /* "xmmsvalue.pyx":860 |
| 24026 | * |
| 24027 | * class Reference(BaseCollection): |
| 24028 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): # <<<<<<<<<<<<<< |
| 24029 | * kargs.update( |
| 24030 | * namespace = kargs.get('namespace', ns), |
| 24031 | */ |
| 24032 | __pyx_tuple__41 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_ref, __pyx_n_s_ns, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__41)__builtin_expect(!!(!__pyx_tuple__41), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__24032; goto __pyx_L1_error;} |
| 24033 | __Pyx_GOTREF(__pyx_tuple__41); |
| 24034 | __Pyx_GIVEREF(__pyx_tuple__41); |
| 24035 | __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 860, __pyx_empty_bytes)PyCode_New(3 +0, 4, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__41, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 860, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)__builtin_expect(!!(!__pyx_codeobj__42), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__24035; goto __pyx_L1_error;} |
| 24036 | __pyx_tuple__43 = PyTuple_Pack(2, ((PyObject *)Py_None(&_Py_NoneStruct)), ((PyObject*)__pyx_n_s_Collections)); if (unlikely(!__pyx_tuple__43)__builtin_expect(!!(!__pyx_tuple__43), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__24036; goto __pyx_L1_error;} |
| 24037 | __Pyx_GOTREF(__pyx_tuple__43); |
| 24038 | __Pyx_GIVEREF(__pyx_tuple__43); |
| 24039 | |
| 24040 | /* "xmmsvalue.pyx":868 |
| 24041 | * |
| 24042 | * class Universe(Reference): |
| 24043 | * def __init__(self): # <<<<<<<<<<<<<< |
| 24044 | * Reference.__init__(self, reference = "All Media") |
| 24045 | * |
| 24046 | */ |
| 24047 | __pyx_tuple__44 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__44)__builtin_expect(!!(!__pyx_tuple__44), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__24047; goto __pyx_L1_error;} |
| 24048 | __Pyx_GOTREF(__pyx_tuple__44); |
| 24049 | __Pyx_GIVEREF(__pyx_tuple__44); |
| 24050 | __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__44, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 868, __pyx_empty_bytes)PyCode_New(1 +0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__44, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 868, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)__builtin_expect(!!(!__pyx_codeobj__45), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__24050; goto __pyx_L1_error;} |
| 24051 | |
| 24052 | /* "xmmsvalue.pyx":871 |
| 24053 | * Reference.__init__(self, reference = "All Media") |
| 24054 | * |
| 24055 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 24056 | * return "%s()" % self.__class__.__name__ |
| 24057 | * |
| 24058 | */ |
| 24059 | __pyx_tuple__46 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__46)__builtin_expect(!!(!__pyx_tuple__46), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__24059; goto __pyx_L1_error;} |
| 24060 | __Pyx_GOTREF(__pyx_tuple__46); |
| 24061 | __Pyx_GIVEREF(__pyx_tuple__46); |
| 24062 | __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__46, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_repr, 871, __pyx_empty_bytes)PyCode_New(1 +0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__46, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_repr, 871, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__47)__builtin_expect(!!(!__pyx_codeobj__47), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__24062; goto __pyx_L1_error;} |
| 24063 | |
| 24064 | /* "xmmsvalue.pyx":875 |
| 24065 | * |
| 24066 | * class FilterCollection(BaseCollection): |
| 24067 | * def __init__(Collection self, _operation, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24068 | * if 'operands' in kargs: |
| 24069 | * operands = kargs |
| 24070 | */ |
| 24071 | __pyx_tuple__48 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_operation, __pyx_n_s_parent, __pyx_n_s_kargs, __pyx_n_s_operands); if (unlikely(!__pyx_tuple__48)__builtin_expect(!!(!__pyx_tuple__48), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__24071; goto __pyx_L1_error;} |
| 24072 | __Pyx_GOTREF(__pyx_tuple__48); |
| 24073 | __Pyx_GIVEREF(__pyx_tuple__48); |
| 24074 | __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 875, __pyx_empty_bytes)PyCode_New(3 +0, 5, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 875, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)__builtin_expect(!!(!__pyx_codeobj__49), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__24074; goto __pyx_L1_error;} |
| 24075 | __pyx_tuple__50 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__50)__builtin_expect(!!(!__pyx_tuple__50), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__24075; goto __pyx_L1_error;} |
| 24076 | __Pyx_GOTREF(__pyx_tuple__50); |
| 24077 | __Pyx_GIVEREF(__pyx_tuple__50); |
| 24078 | |
| 24079 | /* "xmmsvalue.pyx":888 |
| 24080 | * |
| 24081 | * class Equals(FilterCollection): |
| 24082 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24083 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) |
| 24084 | * |
| 24085 | */ |
| 24086 | __pyx_tuple__51 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__51)__builtin_expect(!!(!__pyx_tuple__51), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__24086; goto __pyx_L1_error;} |
| 24087 | __Pyx_GOTREF(__pyx_tuple__51); |
| 24088 | __Pyx_GIVEREF(__pyx_tuple__51); |
| 24089 | __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 888, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 888, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)__builtin_expect(!!(!__pyx_codeobj__52), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__24089; goto __pyx_L1_error;} |
| 24090 | __pyx_tuple__53 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__53)__builtin_expect(!!(!__pyx_tuple__53), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__24090; goto __pyx_L1_error;} |
| 24091 | __Pyx_GOTREF(__pyx_tuple__53); |
| 24092 | __Pyx_GIVEREF(__pyx_tuple__53); |
| 24093 | |
| 24094 | /* "xmmsvalue.pyx":892 |
| 24095 | * |
| 24096 | * class NotEqual(FilterCollection): |
| 24097 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24098 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) |
| 24099 | * |
| 24100 | */ |
| 24101 | __pyx_tuple__54 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__54)__builtin_expect(!!(!__pyx_tuple__54), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__24101; goto __pyx_L1_error;} |
| 24102 | __Pyx_GOTREF(__pyx_tuple__54); |
| 24103 | __Pyx_GIVEREF(__pyx_tuple__54); |
| 24104 | __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 892, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 892, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)__builtin_expect(!!(!__pyx_codeobj__55), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__24104; goto __pyx_L1_error;} |
| 24105 | __pyx_tuple__56 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__56)__builtin_expect(!!(!__pyx_tuple__56), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__24105; goto __pyx_L1_error;} |
| 24106 | __Pyx_GOTREF(__pyx_tuple__56); |
| 24107 | __Pyx_GIVEREF(__pyx_tuple__56); |
| 24108 | |
| 24109 | /* "xmmsvalue.pyx":896 |
| 24110 | * |
| 24111 | * class Smaller(FilterCollection): |
| 24112 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24113 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) |
| 24114 | * |
| 24115 | */ |
| 24116 | __pyx_tuple__57 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__57)__builtin_expect(!!(!__pyx_tuple__57), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__24116; goto __pyx_L1_error;} |
| 24117 | __Pyx_GOTREF(__pyx_tuple__57); |
| 24118 | __Pyx_GIVEREF(__pyx_tuple__57); |
| 24119 | __pyx_codeobj__58 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 896, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__57, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 896, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__58)__builtin_expect(!!(!__pyx_codeobj__58), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__24119; goto __pyx_L1_error;} |
| 24120 | __pyx_tuple__59 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__59)__builtin_expect(!!(!__pyx_tuple__59), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__24120; goto __pyx_L1_error;} |
| 24121 | __Pyx_GOTREF(__pyx_tuple__59); |
| 24122 | __Pyx_GIVEREF(__pyx_tuple__59); |
| 24123 | |
| 24124 | /* "xmmsvalue.pyx":900 |
| 24125 | * |
| 24126 | * class SmallerEqual(FilterCollection): |
| 24127 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24128 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) |
| 24129 | * |
| 24130 | */ |
| 24131 | __pyx_tuple__60 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__60)__builtin_expect(!!(!__pyx_tuple__60), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__24131; goto __pyx_L1_error;} |
| 24132 | __Pyx_GOTREF(__pyx_tuple__60); |
| 24133 | __Pyx_GIVEREF(__pyx_tuple__60); |
| 24134 | __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 900, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 900, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)__builtin_expect(!!(!__pyx_codeobj__61), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__24134; goto __pyx_L1_error;} |
| 24135 | __pyx_tuple__62 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__62)__builtin_expect(!!(!__pyx_tuple__62), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__24135; goto __pyx_L1_error;} |
| 24136 | __Pyx_GOTREF(__pyx_tuple__62); |
| 24137 | __Pyx_GIVEREF(__pyx_tuple__62); |
| 24138 | |
| 24139 | /* "xmmsvalue.pyx":904 |
| 24140 | * |
| 24141 | * class Greater(FilterCollection): |
| 24142 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24143 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) |
| 24144 | * |
| 24145 | */ |
| 24146 | __pyx_tuple__63 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__63)__builtin_expect(!!(!__pyx_tuple__63), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__24146; goto __pyx_L1_error;} |
| 24147 | __Pyx_GOTREF(__pyx_tuple__63); |
| 24148 | __Pyx_GIVEREF(__pyx_tuple__63); |
| 24149 | __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 904, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 904, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__64)__builtin_expect(!!(!__pyx_codeobj__64), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__24149; goto __pyx_L1_error;} |
| 24150 | __pyx_tuple__65 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__65)__builtin_expect(!!(!__pyx_tuple__65), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__24150; goto __pyx_L1_error;} |
| 24151 | __Pyx_GOTREF(__pyx_tuple__65); |
| 24152 | __Pyx_GIVEREF(__pyx_tuple__65); |
| 24153 | |
| 24154 | /* "xmmsvalue.pyx":908 |
| 24155 | * |
| 24156 | * class GreaterEqual(FilterCollection): |
| 24157 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24158 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) |
| 24159 | * |
| 24160 | */ |
| 24161 | __pyx_tuple__66 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__66)__builtin_expect(!!(!__pyx_tuple__66), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__24161; goto __pyx_L1_error;} |
| 24162 | __Pyx_GOTREF(__pyx_tuple__66); |
| 24163 | __Pyx_GIVEREF(__pyx_tuple__66); |
| 24164 | __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 908, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 908, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)__builtin_expect(!!(!__pyx_codeobj__67), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__24164; goto __pyx_L1_error;} |
| 24165 | __pyx_tuple__68 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__68)__builtin_expect(!!(!__pyx_tuple__68), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__24165; goto __pyx_L1_error;} |
| 24166 | __Pyx_GOTREF(__pyx_tuple__68); |
| 24167 | __Pyx_GIVEREF(__pyx_tuple__68); |
| 24168 | |
| 24169 | /* "xmmsvalue.pyx":912 |
| 24170 | * |
| 24171 | * class Match(FilterCollection): |
| 24172 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24173 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) |
| 24174 | * |
| 24175 | */ |
| 24176 | __pyx_tuple__69 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__69)__builtin_expect(!!(!__pyx_tuple__69), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__24176; goto __pyx_L1_error;} |
| 24177 | __Pyx_GOTREF(__pyx_tuple__69); |
| 24178 | __Pyx_GIVEREF(__pyx_tuple__69); |
| 24179 | __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 912, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 912, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)__builtin_expect(!!(!__pyx_codeobj__70), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__24179; goto __pyx_L1_error;} |
| 24180 | __pyx_tuple__71 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__71)__builtin_expect(!!(!__pyx_tuple__71), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__24180; goto __pyx_L1_error;} |
| 24181 | __Pyx_GOTREF(__pyx_tuple__71); |
| 24182 | __Pyx_GIVEREF(__pyx_tuple__71); |
| 24183 | |
| 24184 | /* "xmmsvalue.pyx":916 |
| 24185 | * |
| 24186 | * class Token(FilterCollection): |
| 24187 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24188 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) |
| 24189 | * |
| 24190 | */ |
| 24191 | __pyx_tuple__72 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__72)__builtin_expect(!!(!__pyx_tuple__72), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__24191; goto __pyx_L1_error;} |
| 24192 | __Pyx_GOTREF(__pyx_tuple__72); |
| 24193 | __Pyx_GIVEREF(__pyx_tuple__72); |
| 24194 | __pyx_codeobj__73 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__72, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 916, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__72, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 916, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__73)__builtin_expect(!!(!__pyx_codeobj__73), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__24194; goto __pyx_L1_error;} |
| 24195 | __pyx_tuple__74 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__74)__builtin_expect(!!(!__pyx_tuple__74), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__24195; goto __pyx_L1_error;} |
| 24196 | __Pyx_GOTREF(__pyx_tuple__74); |
| 24197 | __Pyx_GIVEREF(__pyx_tuple__74); |
| 24198 | |
| 24199 | /* "xmmsvalue.pyx":920 |
| 24200 | * |
| 24201 | * class Has(FilterCollection): |
| 24202 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24203 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) |
| 24204 | * |
| 24205 | */ |
| 24206 | __pyx_tuple__75 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__75)__builtin_expect(!!(!__pyx_tuple__75), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__24206; goto __pyx_L1_error;} |
| 24207 | __Pyx_GOTREF(__pyx_tuple__75); |
| 24208 | __Pyx_GIVEREF(__pyx_tuple__75); |
| 24209 | __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 920, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 920, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)__builtin_expect(!!(!__pyx_codeobj__76), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__24209; goto __pyx_L1_error;} |
| 24210 | __pyx_tuple__77 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__77)__builtin_expect(!!(!__pyx_tuple__77), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__24210; goto __pyx_L1_error;} |
| 24211 | __Pyx_GOTREF(__pyx_tuple__77); |
| 24212 | __Pyx_GIVEREF(__pyx_tuple__77); |
| 24213 | |
| 24214 | /* "xmmsvalue.pyx":924 |
| 24215 | * |
| 24216 | * class Order(BaseCollection): |
| 24217 | * def __init__(Collection self, operand = None, field = None, direction = 0, **kargs): # <<<<<<<<<<<<<< |
| 24218 | * if isinstance(direction, int): |
| 24219 | * kargs['direction'] = 'ASC' if direction >= 0 else 'DESC' |
| 24220 | */ |
| 24221 | __pyx_tuple__78 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_operand, __pyx_n_s_field, __pyx_n_s_direction, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__78)__builtin_expect(!!(!__pyx_tuple__78), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__24221; goto __pyx_L1_error;} |
| 24222 | __Pyx_GOTREF(__pyx_tuple__78); |
| 24223 | __Pyx_GIVEREF(__pyx_tuple__78); |
| 24224 | __pyx_codeobj__79 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__78, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 924, __pyx_empty_bytes)PyCode_New(4 +0, 5, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__78, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 924, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__79)__builtin_expect(!!(!__pyx_codeobj__79), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__24224; goto __pyx_L1_error;} |
| 24225 | __pyx_tuple__80 = PyTuple_Pack(3, ((PyObject *)Py_None(&_Py_NoneStruct)), ((PyObject *)Py_None(&_Py_NoneStruct)), ((PyObject *)__pyx_int_0)); if (unlikely(!__pyx_tuple__80)__builtin_expect(!!(!__pyx_tuple__80), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__24225; goto __pyx_L1_error;} |
| 24226 | __Pyx_GOTREF(__pyx_tuple__80); |
| 24227 | __Pyx_GIVEREF(__pyx_tuple__80); |
| 24228 | |
| 24229 | /* "xmmsvalue.pyx":949 |
| 24230 | * |
| 24231 | * class Mediaset(BaseCollection): |
| 24232 | * def __init__(Collection self, operand = None, **kargs): # <<<<<<<<<<<<<< |
| 24233 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 24234 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_MEDIASET, **kargs) |
| 24235 | */ |
| 24236 | __pyx_tuple__81 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_operand, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__81)__builtin_expect(!!(!__pyx_tuple__81), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__24236; goto __pyx_L1_error;} |
| 24237 | __Pyx_GOTREF(__pyx_tuple__81); |
| 24238 | __Pyx_GIVEREF(__pyx_tuple__81); |
| 24239 | __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 949, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 949, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)__builtin_expect(!!(!__pyx_codeobj__82), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__24239; goto __pyx_L1_error;} |
| 24240 | __pyx_tuple__83 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__83)__builtin_expect(!!(!__pyx_tuple__83), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__24240; goto __pyx_L1_error;} |
| 24241 | __Pyx_GOTREF(__pyx_tuple__83); |
| 24242 | __Pyx_GIVEREF(__pyx_tuple__83); |
| 24243 | |
| 24244 | /* "xmmsvalue.pyx":954 |
| 24245 | * |
| 24246 | * class Limit(BaseCollection): |
| 24247 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): # <<<<<<<<<<<<<< |
| 24248 | * kargs.update( |
| 24249 | * operands = kargs.get('operands', [operand or Universe()]), |
| 24250 | */ |
| 24251 | __pyx_tuple__84 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_operand, __pyx_n_s_start, __pyx_n_s_length, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__84)__builtin_expect(!!(!__pyx_tuple__84), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__24251; goto __pyx_L1_error;} |
| 24252 | __Pyx_GOTREF(__pyx_tuple__84); |
| 24253 | __Pyx_GIVEREF(__pyx_tuple__84); |
| 24254 | __pyx_codeobj__85 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 954, __pyx_empty_bytes)PyCode_New(4 +0, 5, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__84, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 954, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__85)__builtin_expect(!!(!__pyx_codeobj__85), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__24254; goto __pyx_L1_error;} |
| 24255 | __pyx_tuple__86 = PyTuple_Pack(3, ((PyObject *)Py_None(&_Py_NoneStruct)), ((PyObject *)__pyx_int_0), ((PyObject *)__pyx_int_0)); if (unlikely(!__pyx_tuple__86)__builtin_expect(!!(!__pyx_tuple__86), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__24255; goto __pyx_L1_error;} |
| 24256 | __Pyx_GOTREF(__pyx_tuple__86); |
| 24257 | __Pyx_GIVEREF(__pyx_tuple__86); |
| 24258 | |
| 24259 | /* "xmmsvalue.pyx":963 |
| 24260 | * |
| 24261 | * class IDList(BaseCollection): |
| 24262 | * def __init__(Collection self, ids = None, **kargs): # <<<<<<<<<<<<<< |
| 24263 | * kargs.update( |
| 24264 | * type = kargs.get('type', 'list'), |
| 24265 | */ |
| 24266 | __pyx_tuple__87 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ids, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__87)__builtin_expect(!!(!__pyx_tuple__87), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__24266; goto __pyx_L1_error;} |
| 24267 | __Pyx_GOTREF(__pyx_tuple__87); |
| 24268 | __Pyx_GIVEREF(__pyx_tuple__87); |
| 24269 | __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 963, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 963, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)__builtin_expect(!!(!__pyx_codeobj__88), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__24269; goto __pyx_L1_error;} |
| 24270 | __pyx_tuple__89 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__89)__builtin_expect(!!(!__pyx_tuple__89), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__24270; goto __pyx_L1_error;} |
| 24271 | __Pyx_GOTREF(__pyx_tuple__89); |
| 24272 | __Pyx_GIVEREF(__pyx_tuple__89); |
| 24273 | |
| 24274 | /* "xmmsvalue.pyx":971 |
| 24275 | * |
| 24276 | * class Queue(IDList): |
| 24277 | * def __init__(Collection self, ids = None, **kargs): # <<<<<<<<<<<<<< |
| 24278 | * kargs.update( |
| 24279 | * type = kargs.get('type', 'queue') |
| 24280 | */ |
| 24281 | __pyx_tuple__90 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ids, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__90)__builtin_expect(!!(!__pyx_tuple__90), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__24281; goto __pyx_L1_error;} |
| 24282 | __Pyx_GOTREF(__pyx_tuple__90); |
| 24283 | __Pyx_GIVEREF(__pyx_tuple__90); |
| 24284 | __pyx_codeobj__91 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__90, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 971, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__90, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 971, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__91)__builtin_expect(!!(!__pyx_codeobj__91), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__24284; goto __pyx_L1_error;} |
| 24285 | __pyx_tuple__92 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__92)__builtin_expect(!!(!__pyx_tuple__92), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__24285; goto __pyx_L1_error;} |
| 24286 | __Pyx_GOTREF(__pyx_tuple__92); |
| 24287 | __Pyx_GIVEREF(__pyx_tuple__92); |
| 24288 | |
| 24289 | /* "xmmsvalue.pyx":978 |
| 24290 | * |
| 24291 | * class PShuffle(IDList): |
| 24292 | * def __init__(Collection self, ids = None, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 24293 | * kargs.update( |
| 24294 | * type = kargs.get('type', 'pshuffle'), |
| 24295 | */ |
| 24296 | __pyx_tuple__93 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_ids, __pyx_n_s_parent, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__93)__builtin_expect(!!(!__pyx_tuple__93), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__24296; goto __pyx_L1_error;} |
| 24297 | __Pyx_GOTREF(__pyx_tuple__93); |
| 24298 | __Pyx_GIVEREF(__pyx_tuple__93); |
| 24299 | __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 978, __pyx_empty_bytes)PyCode_New(3 +0, 4, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 978, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)__builtin_expect(!!(!__pyx_codeobj__94), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__24299; goto __pyx_L1_error;} |
| 24300 | __pyx_tuple__95 = PyTuple_Pack(2, ((PyObject *)Py_None(&_Py_NoneStruct)), ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__95)__builtin_expect(!!(!__pyx_tuple__95), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__24300; goto __pyx_L1_error;} |
| 24301 | __Pyx_GOTREF(__pyx_tuple__95); |
| 24302 | __Pyx_GIVEREF(__pyx_tuple__95); |
| 24303 | |
| 24304 | /* "xmmsvalue.pyx":986 |
| 24305 | * |
| 24306 | * class Union(BaseCollection): |
| 24307 | * def __init__(Collection self, *a, **kargs): # <<<<<<<<<<<<<< |
| 24308 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 24309 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_UNION, **kargs) |
| 24310 | */ |
| 24311 | __pyx_tuple__96 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_a, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__96)__builtin_expect(!!(!__pyx_tuple__96), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__24311; goto __pyx_L1_error;} |
| 24312 | __Pyx_GOTREF(__pyx_tuple__96); |
| 24313 | __Pyx_GIVEREF(__pyx_tuple__96); |
| 24314 | __pyx_codeobj__97 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__96, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 986, __pyx_empty_bytes)PyCode_New(1 +0, 3, 0, 0x0004|0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__96, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 986, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__97)__builtin_expect(!!(!__pyx_codeobj__97), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__24314; goto __pyx_L1_error;} |
| 24315 | |
| 24316 | /* "xmmsvalue.pyx":991 |
| 24317 | * |
| 24318 | * class Intersection(BaseCollection): |
| 24319 | * def __init__(Collection self, *a, **kargs): # <<<<<<<<<<<<<< |
| 24320 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 24321 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_INTERSECTION, **kargs) |
| 24322 | */ |
| 24323 | __pyx_tuple__98 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_a, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__98)__builtin_expect(!!(!__pyx_tuple__98), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__24323; goto __pyx_L1_error;} |
| 24324 | __Pyx_GOTREF(__pyx_tuple__98); |
| 24325 | __Pyx_GIVEREF(__pyx_tuple__98); |
| 24326 | __pyx_codeobj__99 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__98, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 991, __pyx_empty_bytes)PyCode_New(1 +0, 3, 0, 0x0004|0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__98, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 991, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__99)__builtin_expect(!!(!__pyx_codeobj__99), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__24326; goto __pyx_L1_error;} |
| 24327 | |
| 24328 | /* "xmmsvalue.pyx":996 |
| 24329 | * |
| 24330 | * class Complement(BaseCollection): |
| 24331 | * def __init__(Collection self, operand = None, **kargs): # <<<<<<<<<<<<<< |
| 24332 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 24333 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_COMPLEMENT, **kargs) |
| 24334 | */ |
| 24335 | __pyx_tuple__100 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_operand, __pyx_n_s_kargs); if (unlikely(!__pyx_tuple__100)__builtin_expect(!!(!__pyx_tuple__100), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__24335; goto __pyx_L1_error;} |
| 24336 | __Pyx_GOTREF(__pyx_tuple__100); |
| 24337 | __Pyx_GIVEREF(__pyx_tuple__100); |
| 24338 | __pyx_codeobj__101 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__100, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 996, __pyx_empty_bytes)PyCode_New(2 +0, 3, 0, 0x0008, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__100, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_init, 996, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__101)__builtin_expect(!!(!__pyx_codeobj__101), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__24338; goto __pyx_L1_error;} |
| 24339 | __pyx_tuple__102 = PyTuple_Pack(1, ((PyObject *)Py_None(&_Py_NoneStruct))); if (unlikely(!__pyx_tuple__102)__builtin_expect(!!(!__pyx_tuple__102), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__24339; goto __pyx_L1_error;} |
| 24340 | __Pyx_GOTREF(__pyx_tuple__102); |
| 24341 | __Pyx_GIVEREF(__pyx_tuple__102); |
| 24342 | |
| 24343 | /* "xmmsvalue.pyx":1049 |
| 24344 | * |
| 24345 | * |
| 24346 | * def coll_parse(pattern): # <<<<<<<<<<<<<< |
| 24347 | * cdef xmmsv_t *coll = NULL |
| 24348 | * |
| 24349 | */ |
| 24350 | __pyx_tuple__103 = PyTuple_Pack(3, __pyx_n_s_pattern, __pyx_n_s_coll, __pyx_n_s_pattern_2); if (unlikely(!__pyx_tuple__103)__builtin_expect(!!(!__pyx_tuple__103), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; __pyx_clineno = __LINE__24350; goto __pyx_L1_error;} |
| 24351 | __Pyx_GOTREF(__pyx_tuple__103); |
| 24352 | __Pyx_GIVEREF(__pyx_tuple__103); |
| 24353 | __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_coll_parse, 1049, __pyx_empty_bytes)PyCode_New(1 +0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple , __pyx_kp_s_home_travis_build_dsvensson_xmm, __pyx_n_s_coll_parse , 1049, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)__builtin_expect(!!(!__pyx_codeobj__104), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; __pyx_clineno = __LINE__24353; goto __pyx_L1_error;} |
| 24354 | __Pyx_RefNannyFinishContext(); |
| 24355 | return 0; |
| 24356 | __pyx_L1_error:; |
| 24357 | __Pyx_RefNannyFinishContext(); |
| 24358 | return -1; |
| 24359 | } |
| 24360 | |
| 24361 | static int __Pyx_InitGlobals(void) { |
| 24362 | if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24362; goto __pyx_L1_error;}; |
| 24363 | __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)__builtin_expect(!!(!__pyx_int_0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24363; goto __pyx_L1_error;} |
| 24364 | __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)__builtin_expect(!!(!__pyx_int_neg_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24364; goto __pyx_L1_error;} |
| 24365 | return 0; |
| 24366 | __pyx_L1_error:; |
| 24367 | return -1; |
| 24368 | } |
| 24369 | |
| 24370 | #if PY_MAJOR_VERSION2 < 3 |
| 24371 | PyMODINIT_FUNCvoid initxmmsvalue(void); /*proto*/ |
| 24372 | PyMODINIT_FUNCvoid initxmmsvalue(void) |
| 24373 | #else |
| 24374 | PyMODINIT_FUNCvoid PyInit_xmmsvalue(void); /*proto*/ |
| 24375 | PyMODINIT_FUNCvoid PyInit_xmmsvalue(void) |
| 24376 | #endif |
| 24377 | { |
| 24378 | PyObject *__pyx_t_1 = NULL((void*)0); |
| 24379 | PyObject *__pyx_t_2 = NULL((void*)0); |
| 24380 | PyObject *__pyx_t_3 = NULL((void*)0); |
| 24381 | PyObject *__pyx_t_4 = NULL((void*)0); |
| 24382 | int __pyx_lineno = 0; |
| 24383 | const char *__pyx_filename = NULL((void*)0); |
| 24384 | int __pyx_clineno = 0; |
| 24385 | __Pyx_RefNannyDeclarations |
| 24386 | #if CYTHON_REFNANNY0 |
| 24387 | __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny"); |
| 24388 | if (!__Pyx_RefNanny) { |
| 24389 | PyErr_Clear(); |
| 24390 | __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny"); |
| 24391 | if (!__Pyx_RefNanny) |
| 24392 | Py_FatalError("failed to import 'refnanny' module"); |
| 24393 | } |
| 24394 | #endif |
| 24395 | __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_xmmsvalue(void)", 0); |
| 24396 | if ( __Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24396; goto __pyx_L1_error;} |
| 24397 | __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)__builtin_expect(!!(!__pyx_empty_tuple), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24397; goto __pyx_L1_error;} |
| 24398 | __pyx_empty_bytes = PyBytes_FromStringAndSizePyString_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)__builtin_expect(!!(!__pyx_empty_bytes), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24398; goto __pyx_L1_error;} |
| 24399 | #ifdef __Pyx_CyFunction_USED1 |
| 24400 | if (__Pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24400; goto __pyx_L1_error;} |
| 24401 | #endif |
| 24402 | #ifdef __Pyx_FusedFunction_USED |
| 24403 | if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24403; goto __pyx_L1_error;} |
| 24404 | #endif |
| 24405 | #ifdef __Pyx_Generator_USED |
| 24406 | if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24406; goto __pyx_L1_error;} |
| 24407 | #endif |
| 24408 | /*--- Library function declarations ---*/ |
| 24409 | /*--- Threads initialization code ---*/ |
| 24410 | #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS |
| 24411 | #ifdef WITH_THREAD1 /* Python build with threading support? */ |
| 24412 | PyEval_InitThreads(); |
| 24413 | #endif |
| 24414 | #endif |
| 24415 | /*--- Module creation code ---*/ |
| 24416 | #if PY_MAJOR_VERSION2 < 3 |
| 24417 | __pyx_m = Py_InitModule4Py_InitModule4_64(__Pyx_NAMESTR("xmmsvalue")("xmmsvalue"), __pyx_methods, __Pyx_DOCSTR(__pyx_k_Python_bindings_for_xmmsv_manip)(__pyx_k_Python_bindings_for_xmmsv_manip), 0, PYTHON_API_VERSION1013); Py_XINCREF(__pyx_m)do { if ((__pyx_m) == ((void*)0)) ; else ( ((PyObject*)(__pyx_m ))->ob_refcnt++); } while (0); |
| 24418 | #else |
| 24419 | __pyx_m = PyModule_Create(&__pyx_moduledef); |
| 24420 | #endif |
| 24421 | if (unlikely(!__pyx_m)__builtin_expect(!!(!__pyx_m), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24421; goto __pyx_L1_error;} |
| 24422 | __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)__builtin_expect(!!(!__pyx_d), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24422; goto __pyx_L1_error;} |
| 24423 | Py_INCREF(__pyx_d)( ((PyObject*)(__pyx_d))->ob_refcnt++); |
| 24424 | __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME)("__builtin__")); if (unlikely(!__pyx_b)__builtin_expect(!!(!__pyx_b), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24424; goto __pyx_L1_error;} |
| 24425 | #if CYTHON_COMPILING_IN_PYPY0 |
| 24426 | Py_INCREF(__pyx_b)( ((PyObject*)(__pyx_b))->ob_refcnt++); |
| 24427 | #endif |
| 24428 | if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b)PyObject_SetAttrString((__pyx_m),("__builtins__"),(__pyx_b)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24428; goto __pyx_L1_error;}; |
| 24429 | /*--- Initialize various global constants etc. ---*/ |
| 24430 | if (unlikely(__Pyx_InitGlobals() < 0)__builtin_expect(!!(__Pyx_InitGlobals() < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24430; goto __pyx_L1_error;} |
| 24431 | #if PY_MAJOR_VERSION2 < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT0) |
| 24432 | if (__Pyx_init_sys_getdefaultencoding_params() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24432; goto __pyx_L1_error;} |
| 24433 | #endif |
| 24434 | if (__pyx_module_is_main_xmmsvalue) { |
| 24435 | if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main)PyObject_SetAttrString((__pyx_m),("__name__"),(__pyx_n_s_main )) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24435; goto __pyx_L1_error;}; |
| 24436 | } |
| 24437 | #if PY_MAJOR_VERSION2 >= 3 |
| 24438 | { |
| 24439 | PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)__builtin_expect(!!(!modules), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24439; goto __pyx_L1_error;} |
| 24440 | if (!PyDict_GetItemString(modules, "xmmsvalue")) { |
| 24441 | if (unlikely(PyDict_SetItemString(modules, "xmmsvalue", __pyx_m) < 0)__builtin_expect(!!(PyDict_SetItemString(modules, "xmmsvalue" , __pyx_m) < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24441; goto __pyx_L1_error;} |
| 24442 | } |
| 24443 | } |
| 24444 | #endif |
| 24445 | /*--- Builtin init code ---*/ |
| 24446 | if (unlikely(__Pyx_InitCachedBuiltins() < 0)__builtin_expect(!!(__Pyx_InitCachedBuiltins() < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24446; goto __pyx_L1_error;} |
| 24447 | /*--- Constants init code ---*/ |
| 24448 | if (unlikely(__Pyx_InitCachedConstants() < 0)__builtin_expect(!!(__Pyx_InitCachedConstants() < 0), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24448; goto __pyx_L1_error;} |
| 24449 | /*--- Global init code ---*/ |
| 24450 | __pyx_v_9xmmsvalue__idlist_types = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 24451 | __pyx_v_9xmmsvalue__collclass = Py_None(&_Py_NoneStruct); Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 24452 | /*--- Variable export code ---*/ |
| 24453 | /*--- Function export code ---*/ |
| 24454 | if (__Pyx_ExportFunction("create_coll", (void (*)(void))__pyx_f_9xmmsvalue_create_coll, "PyObject *(xmmsv_t *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24454; goto __pyx_L1_error;} |
| 24455 | if (__Pyx_ExportFunction("create_native_value", (void (*)(void))__pyx_f_9xmmsvalue_create_native_value, "xmmsv_t *(PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24455; goto __pyx_L1_error;} |
| 24456 | if (__Pyx_ExportFunction("get_default_source_pref", (void (*)(void))__pyx_f_9xmmsvalue_get_default_source_pref, "PyObject *(void)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__24456; goto __pyx_L1_error;} |
| 24457 | /*--- Type init code ---*/ |
| 24458 | __pyx_vtabptr_9xmmsvalue_XmmsValue = &__pyx_vtable_9xmmsvalue_XmmsValue; |
| 24459 | __pyx_vtable_9xmmsvalue_XmmsValue.set_value = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, xmmsv_t *, struct __pyx_opt_args_9xmmsvalue_9XmmsValue_set_value *__pyx_optional_args))__pyx_f_9xmmsvalue_9XmmsValue_set_value; |
| 24460 | __pyx_vtable_9xmmsvalue_XmmsValue.set_pyval = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_set_pyval; |
| 24461 | __pyx_vtable_9xmmsvalue_XmmsValue.get_type = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_type; |
| 24462 | __pyx_vtable_9xmmsvalue_XmmsValue.iserror = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_iserror; |
| 24463 | __pyx_vtable_9xmmsvalue_XmmsValue.is_error = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_is_error; |
| 24464 | __pyx_vtable_9xmmsvalue_XmmsValue.get_error = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_error; |
| 24465 | __pyx_vtable_9xmmsvalue_XmmsValue.get_int = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_int; |
| 24466 | __pyx_vtable_9xmmsvalue_XmmsValue.get_float = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_float; |
| 24467 | __pyx_vtable_9xmmsvalue_XmmsValue.get_string = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_string; |
| 24468 | __pyx_vtable_9xmmsvalue_XmmsValue.get_bin = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_bin; |
| 24469 | __pyx_vtable_9xmmsvalue_XmmsValue.get_coll = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_coll; |
| 24470 | __pyx_vtable_9xmmsvalue_XmmsValue.get_dict = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_dict; |
| 24471 | __pyx_vtable_9xmmsvalue_XmmsValue.get_dict_iter = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_dict_iter; |
| 24472 | __pyx_vtable_9xmmsvalue_XmmsValue.get_propdict = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_propdict; |
| 24473 | __pyx_vtable_9xmmsvalue_XmmsValue.get_list = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_list; |
| 24474 | __pyx_vtable_9xmmsvalue_XmmsValue.get_list_iter = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_get_list_iter; |
| 24475 | __pyx_vtable_9xmmsvalue_XmmsValue.value = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_9XmmsValue_value; |
| 24476 | __pyx_vtable_9xmmsvalue_XmmsValue.copy = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_XmmsValue *, int __pyx_skip_dispatch, struct __pyx_opt_args_9xmmsvalue_9XmmsValue_copy *__pyx_optional_args))__pyx_f_9xmmsvalue_9XmmsValue_copy; |
| 24477 | if (PyType_Ready(&__pyx_type_9xmmsvalue_XmmsValue) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__24477; goto __pyx_L1_error;} |
| 24478 | __pyx_type_9xmmsvalue_XmmsValue.tp_print = 0; |
| 24479 | if (__Pyx_SetVtable(__pyx_type_9xmmsvalue_XmmsValue.tp_dict, __pyx_vtabptr_9xmmsvalue_XmmsValue) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__24479; goto __pyx_L1_error;} |
| 24480 | if (__Pyx_SetAttrString(__pyx_m, "XmmsValue", (PyObject *)&__pyx_type_9xmmsvalue_XmmsValue)PyObject_SetAttrString((__pyx_m),("XmmsValue"),((PyObject *)& __pyx_type_9xmmsvalue_XmmsValue)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__24480; goto __pyx_L1_error;} |
| 24481 | __pyx_ptype_9xmmsvalue_XmmsValue = &__pyx_type_9xmmsvalue_XmmsValue; |
| 24482 | __pyx_vtabptr_9xmmsvalue_XmmsValueC2C = &__pyx_vtable_9xmmsvalue_XmmsValueC2C; |
| 24483 | __pyx_vtable_9xmmsvalue_XmmsValueC2C.__pyx_base = *__pyx_vtabptr_9xmmsvalue_XmmsValue; |
| 24484 | __pyx_type_9xmmsvalue_XmmsValueC2C.tp_base = __pyx_ptype_9xmmsvalue_XmmsValue; |
| 24485 | if (PyType_Ready(&__pyx_type_9xmmsvalue_XmmsValueC2C) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__24485; goto __pyx_L1_error;} |
| 24486 | __pyx_type_9xmmsvalue_XmmsValueC2C.tp_print = 0; |
| 24487 | if (__Pyx_SetVtable(__pyx_type_9xmmsvalue_XmmsValueC2C.tp_dict, __pyx_vtabptr_9xmmsvalue_XmmsValueC2C) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__24487; goto __pyx_L1_error;} |
| 24488 | if (__Pyx_SetAttrString(__pyx_m, "XmmsValueC2C", (PyObject *)&__pyx_type_9xmmsvalue_XmmsValueC2C)PyObject_SetAttrString((__pyx_m),("XmmsValueC2C"),((PyObject * )&__pyx_type_9xmmsvalue_XmmsValueC2C)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__24488; goto __pyx_L1_error;} |
| 24489 | __pyx_ptype_9xmmsvalue_XmmsValueC2C = &__pyx_type_9xmmsvalue_XmmsValueC2C; |
| 24490 | if (PyType_Ready(&__pyx_type_9xmmsvalue_XmmsListIter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__24490; goto __pyx_L1_error;} |
| 24491 | __pyx_type_9xmmsvalue_XmmsListIter.tp_print = 0; |
| 24492 | if (__Pyx_SetAttrString(__pyx_m, "XmmsListIter", (PyObject *)&__pyx_type_9xmmsvalue_XmmsListIter)PyObject_SetAttrString((__pyx_m),("XmmsListIter"),((PyObject * )&__pyx_type_9xmmsvalue_XmmsListIter)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 324; __pyx_clineno = __LINE__24492; goto __pyx_L1_error;} |
| 24493 | __pyx_ptype_9xmmsvalue_XmmsListIter = &__pyx_type_9xmmsvalue_XmmsListIter; |
| 24494 | if (PyType_Ready(&__pyx_type_9xmmsvalue_XmmsDictIter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__24494; goto __pyx_L1_error;} |
| 24495 | __pyx_type_9xmmsvalue_XmmsDictIter.tp_print = 0; |
| 24496 | if (__Pyx_SetAttrString(__pyx_m, "XmmsDictIter", (PyObject *)&__pyx_type_9xmmsvalue_XmmsDictIter)PyObject_SetAttrString((__pyx_m),("XmmsDictIter"),((PyObject * )&__pyx_type_9xmmsvalue_XmmsDictIter)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__24496; goto __pyx_L1_error;} |
| 24497 | __pyx_ptype_9xmmsvalue_XmmsDictIter = &__pyx_type_9xmmsvalue_XmmsDictIter; |
| 24498 | __pyx_vtabptr_9xmmsvalue_CollectionRef = &__pyx_vtable_9xmmsvalue_CollectionRef; |
| 24499 | __pyx_vtable_9xmmsvalue_CollectionRef.set_collection = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionRef *, xmmsv_t *))__pyx_f_9xmmsvalue_13CollectionRef_set_collection; |
| 24500 | if (PyType_Ready(&__pyx_type_9xmmsvalue_CollectionRef) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__24500; goto __pyx_L1_error;} |
| 24501 | __pyx_type_9xmmsvalue_CollectionRef.tp_print = 0; |
| 24502 | if (__Pyx_SetVtable(__pyx_type_9xmmsvalue_CollectionRef.tp_dict, __pyx_vtabptr_9xmmsvalue_CollectionRef) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__24502; goto __pyx_L1_error;} |
| 24503 | if (__Pyx_SetAttrString(__pyx_m, "CollectionRef", (PyObject *)&__pyx_type_9xmmsvalue_CollectionRef)PyObject_SetAttrString((__pyx_m),("CollectionRef"),((PyObject *)&__pyx_type_9xmmsvalue_CollectionRef)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__24503; goto __pyx_L1_error;} |
| 24504 | __pyx_ptype_9xmmsvalue_CollectionRef = &__pyx_type_9xmmsvalue_CollectionRef; |
| 24505 | __pyx_vtabptr_9xmmsvalue_Collection = &__pyx_vtable_9xmmsvalue_Collection; |
| 24506 | __pyx_vtable_9xmmsvalue_Collection.__pyx_base = *__pyx_vtabptr_9xmmsvalue_CollectionRef; |
| 24507 | __pyx_vtable_9xmmsvalue_Collection.init_idlist = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_Collection *))__pyx_f_9xmmsvalue_10Collection_init_idlist; |
| 24508 | __pyx_vtable_9xmmsvalue_Collection.init_attributes = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_Collection *))__pyx_f_9xmmsvalue_10Collection_init_attributes; |
| 24509 | __pyx_vtable_9xmmsvalue_Collection.init_operands = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_Collection *))__pyx_f_9xmmsvalue_10Collection_init_operands; |
| 24510 | __pyx_vtable_9xmmsvalue_Collection.copy = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_Collection *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_10Collection_copy; |
| 24511 | __pyx_type_9xmmsvalue_Collection.tp_base = __pyx_ptype_9xmmsvalue_CollectionRef; |
| 24512 | if (PyType_Ready(&__pyx_type_9xmmsvalue_Collection) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__24512; goto __pyx_L1_error;} |
| 24513 | __pyx_type_9xmmsvalue_Collection.tp_print = 0; |
| 24514 | if (__Pyx_SetVtable(__pyx_type_9xmmsvalue_Collection.tp_dict, __pyx_vtabptr_9xmmsvalue_Collection) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__24514; goto __pyx_L1_error;} |
| 24515 | if (__Pyx_SetAttrString(__pyx_m, "Collection", (PyObject *)&__pyx_type_9xmmsvalue_Collection)PyObject_SetAttrString((__pyx_m),("Collection"),((PyObject *) &__pyx_type_9xmmsvalue_Collection)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 428; __pyx_clineno = __LINE__24515; goto __pyx_L1_error;} |
| 24516 | __pyx_ptype_9xmmsvalue_Collection = &__pyx_type_9xmmsvalue_Collection; |
| 24517 | __pyx_vtabptr_9xmmsvalue_CollectionAttributes = &__pyx_vtable_9xmmsvalue_CollectionAttributes; |
| 24518 | __pyx_vtable_9xmmsvalue_CollectionAttributes.__pyx_base = *__pyx_vtabptr_9xmmsvalue_CollectionRef; |
| 24519 | __pyx_vtable_9xmmsvalue_CollectionAttributes.get_dict = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_get_dict; |
| 24520 | __pyx_vtable_9xmmsvalue_CollectionAttributes.iterkeys = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_iterkeys; |
| 24521 | __pyx_vtable_9xmmsvalue_CollectionAttributes.keys = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_keys; |
| 24522 | __pyx_vtable_9xmmsvalue_CollectionAttributes.itervalues = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_itervalues; |
| 24523 | __pyx_vtable_9xmmsvalue_CollectionAttributes.iterxvalues = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_iterxvalues; |
| 24524 | __pyx_vtable_9xmmsvalue_CollectionAttributes.values = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_values; |
| 24525 | __pyx_vtable_9xmmsvalue_CollectionAttributes.xvalues = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_xvalues; |
| 24526 | __pyx_vtable_9xmmsvalue_CollectionAttributes.iteritems = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_iteritems; |
| 24527 | __pyx_vtable_9xmmsvalue_CollectionAttributes.iterxitems = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_iterxitems; |
| 24528 | __pyx_vtable_9xmmsvalue_CollectionAttributes.items = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_items; |
| 24529 | __pyx_vtable_9xmmsvalue_CollectionAttributes.xitems = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_xitems; |
| 24530 | __pyx_vtable_9xmmsvalue_CollectionAttributes.clear = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionAttributes *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_20CollectionAttributes_clear; |
| 24531 | __pyx_type_9xmmsvalue_CollectionAttributes.tp_base = __pyx_ptype_9xmmsvalue_CollectionRef; |
| 24532 | if (PyType_Ready(&__pyx_type_9xmmsvalue_CollectionAttributes) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__24532; goto __pyx_L1_error;} |
| 24533 | __pyx_type_9xmmsvalue_CollectionAttributes.tp_print = 0; |
| 24534 | if (__Pyx_SetVtable(__pyx_type_9xmmsvalue_CollectionAttributes.tp_dict, __pyx_vtabptr_9xmmsvalue_CollectionAttributes) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__24534; goto __pyx_L1_error;} |
| 24535 | if (__Pyx_SetAttrString(__pyx_m, "CollectionAttributes", (PyObject *)&__pyx_type_9xmmsvalue_CollectionAttributes)PyObject_SetAttrString((__pyx_m),("CollectionAttributes"),((PyObject *)&__pyx_type_9xmmsvalue_CollectionAttributes)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__24535; goto __pyx_L1_error;} |
| 24536 | __pyx_ptype_9xmmsvalue_CollectionAttributes = &__pyx_type_9xmmsvalue_CollectionAttributes; |
| 24537 | __pyx_vtabptr_9xmmsvalue_AttributesIterator = &__pyx_vtable_9xmmsvalue_AttributesIterator; |
| 24538 | __pyx_vtable_9xmmsvalue_AttributesIterator.reset = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_AttributesIterator *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_18AttributesIterator_reset; |
| 24539 | if (PyType_Ready(&__pyx_type_9xmmsvalue_AttributesIterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__24539; goto __pyx_L1_error;} |
| 24540 | __pyx_type_9xmmsvalue_AttributesIterator.tp_print = 0; |
| 24541 | if (__Pyx_SetVtable(__pyx_type_9xmmsvalue_AttributesIterator.tp_dict, __pyx_vtabptr_9xmmsvalue_AttributesIterator) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__24541; goto __pyx_L1_error;} |
| 24542 | if (__Pyx_SetAttrString(__pyx_m, "AttributesIterator", (PyObject *)&__pyx_type_9xmmsvalue_AttributesIterator)PyObject_SetAttrString((__pyx_m),("AttributesIterator"),((PyObject *)&__pyx_type_9xmmsvalue_AttributesIterator)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__24542; goto __pyx_L1_error;} |
| 24543 | __pyx_ptype_9xmmsvalue_AttributesIterator = &__pyx_type_9xmmsvalue_AttributesIterator; |
| 24544 | __pyx_vtabptr_9xmmsvalue_CollectionOperands = &__pyx_vtable_9xmmsvalue_CollectionOperands; |
| 24545 | __pyx_vtable_9xmmsvalue_CollectionOperands.__pyx_base = *__pyx_vtabptr_9xmmsvalue_CollectionRef; |
| 24546 | __pyx_vtable_9xmmsvalue_CollectionOperands.init_pylist = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionOperands *))__pyx_f_9xmmsvalue_18CollectionOperands_init_pylist; |
| 24547 | __pyx_vtable_9xmmsvalue_CollectionOperands.append = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, struct __pyx_obj_9xmmsvalue_Collection *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_18CollectionOperands_append; |
| 24548 | __pyx_vtable_9xmmsvalue_CollectionOperands.extend = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_18CollectionOperands_extend; |
| 24549 | __pyx_vtable_9xmmsvalue_CollectionOperands.remove = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, struct __pyx_obj_9xmmsvalue_Collection *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_18CollectionOperands_remove; |
| 24550 | __pyx_vtable_9xmmsvalue_CollectionOperands.clear = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_18CollectionOperands_clear; |
| 24551 | __pyx_vtable_9xmmsvalue_CollectionOperands.list = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionOperands *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_18CollectionOperands_list; |
| 24552 | __pyx_type_9xmmsvalue_CollectionOperands.tp_base = __pyx_ptype_9xmmsvalue_CollectionRef; |
| 24553 | if (PyType_Ready(&__pyx_type_9xmmsvalue_CollectionOperands) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__24553; goto __pyx_L1_error;} |
| 24554 | __pyx_type_9xmmsvalue_CollectionOperands.tp_print = 0; |
| 24555 | if (__Pyx_SetVtable(__pyx_type_9xmmsvalue_CollectionOperands.tp_dict, __pyx_vtabptr_9xmmsvalue_CollectionOperands) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__24555; goto __pyx_L1_error;} |
| 24556 | if (__Pyx_SetAttrString(__pyx_m, "CollectionOperands", (PyObject *)&__pyx_type_9xmmsvalue_CollectionOperands)PyObject_SetAttrString((__pyx_m),("CollectionOperands"),((PyObject *)&__pyx_type_9xmmsvalue_CollectionOperands)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__24556; goto __pyx_L1_error;} |
| 24557 | __pyx_ptype_9xmmsvalue_CollectionOperands = &__pyx_type_9xmmsvalue_CollectionOperands; |
| 24558 | __pyx_vtabptr_9xmmsvalue_CollectionIDList = &__pyx_vtable_9xmmsvalue_CollectionIDList; |
| 24559 | __pyx_vtable_9xmmsvalue_CollectionIDList.__pyx_base = *__pyx_vtabptr_9xmmsvalue_CollectionRef; |
| 24560 | __pyx_vtable_9xmmsvalue_CollectionIDList.append = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_16CollectionIDList_append; |
| 24561 | __pyx_vtable_9xmmsvalue_CollectionIDList.extend = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, PyObject *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_16CollectionIDList_extend; |
| 24562 | __pyx_vtable_9xmmsvalue_CollectionIDList.insert = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int, int, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_16CollectionIDList_insert; |
| 24563 | __pyx_vtable_9xmmsvalue_CollectionIDList.remove = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_16CollectionIDList_remove; |
| 24564 | __pyx_vtable_9xmmsvalue_CollectionIDList.pop = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int __pyx_skip_dispatch, struct __pyx_opt_args_9xmmsvalue_16CollectionIDList_pop *__pyx_optional_args))__pyx_f_9xmmsvalue_16CollectionIDList_pop; |
| 24565 | __pyx_vtable_9xmmsvalue_CollectionIDList.clear = (PyObject *(*)(struct __pyx_obj_9xmmsvalue_CollectionIDList *, int __pyx_skip_dispatch))__pyx_f_9xmmsvalue_16CollectionIDList_clear; |
| 24566 | __pyx_type_9xmmsvalue_CollectionIDList.tp_base = __pyx_ptype_9xmmsvalue_CollectionRef; |
| 24567 | if (PyType_Ready(&__pyx_type_9xmmsvalue_CollectionIDList) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__24567; goto __pyx_L1_error;} |
| 24568 | __pyx_type_9xmmsvalue_CollectionIDList.tp_print = 0; |
| 24569 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 24570 | { |
| 24571 | PyObject *wrapper = __Pyx_GetAttrString((PyObject *)&__pyx_type_9xmmsvalue_CollectionIDList, "__iter__")PyObject_GetAttrString(((PyObject *)&__pyx_type_9xmmsvalue_CollectionIDList ),("__iter__")); if (unlikely(!wrapper)__builtin_expect(!!(!wrapper), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__24571; goto __pyx_L1_error;} |
| 24572 | if (Py_TYPE(wrapper)(((PyObject*)(wrapper))->ob_type) == &PyWrapperDescr_Type) { |
| 24573 | __pyx_wrapperbase_9xmmsvalue_16CollectionIDList_4__iter__ = *((PyWrapperDescrObject *)wrapper)->d_base; |
| 24574 | __pyx_wrapperbase_9xmmsvalue_16CollectionIDList_4__iter__.doc = __pyx_doc_9xmmsvalue_16CollectionIDList_4__iter__; |
| 24575 | ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_9xmmsvalue_16CollectionIDList_4__iter__; |
| 24576 | } |
| 24577 | } |
| 24578 | #endif |
| 24579 | if (__Pyx_SetVtable(__pyx_type_9xmmsvalue_CollectionIDList.tp_dict, __pyx_vtabptr_9xmmsvalue_CollectionIDList) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__24579; goto __pyx_L1_error;} |
| 24580 | if (__Pyx_SetAttrString(__pyx_m, "CollectionIDList", (PyObject *)&__pyx_type_9xmmsvalue_CollectionIDList)PyObject_SetAttrString((__pyx_m),("CollectionIDList"),((PyObject *)&__pyx_type_9xmmsvalue_CollectionIDList)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 750; __pyx_clineno = __LINE__24580; goto __pyx_L1_error;} |
| 24581 | __pyx_ptype_9xmmsvalue_CollectionIDList = &__pyx_type_9xmmsvalue_CollectionIDList; |
| 24582 | if (PyType_Ready(&__pyx_type_9xmmsvalue___pyx_scope_struct____iter__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 759; __pyx_clineno = __LINE__24582; goto __pyx_L1_error;} |
| 24583 | __pyx_type_9xmmsvalue___pyx_scope_struct____iter__.tp_print = 0; |
| 24584 | __pyx_ptype_9xmmsvalue___pyx_scope_struct____iter__ = &__pyx_type_9xmmsvalue___pyx_scope_struct____iter__; |
| 24585 | /*--- Type import code ---*/ |
| 24586 | /*--- Variable import code ---*/ |
| 24587 | /*--- Function import code ---*/ |
| 24588 | /*--- Execution code ---*/ |
| 24589 | |
| 24590 | /* "xmmsvalue.pyx":10 |
| 24591 | * from cxmmsvalue cimport * |
| 24592 | * |
| 24593 | * VALUE_TYPE_NONE = XMMSV_TYPE_NONE # <<<<<<<<<<<<<< |
| 24594 | * VALUE_TYPE_ERROR = XMMSV_TYPE_ERROR |
| 24595 | * VALUE_TYPE_INT64 = XMMSV_TYPE_INT64 |
| 24596 | */ |
| 24597 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_NONE); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__24597; goto __pyx_L1_error;} |
| 24598 | __Pyx_GOTREF(__pyx_t_1); |
| 24599 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_NONE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__24599; goto __pyx_L1_error;} |
| 24600 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24601 | |
| 24602 | /* "xmmsvalue.pyx":11 |
| 24603 | * |
| 24604 | * VALUE_TYPE_NONE = XMMSV_TYPE_NONE |
| 24605 | * VALUE_TYPE_ERROR = XMMSV_TYPE_ERROR # <<<<<<<<<<<<<< |
| 24606 | * VALUE_TYPE_INT64 = XMMSV_TYPE_INT64 |
| 24607 | * VALUE_TYPE_FLOAT = XMMSV_TYPE_FLOAT |
| 24608 | */ |
| 24609 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_ERROR); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__24609; goto __pyx_L1_error;} |
| 24610 | __Pyx_GOTREF(__pyx_t_1); |
| 24611 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_ERROR, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__24611; goto __pyx_L1_error;} |
| 24612 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24613 | |
| 24614 | /* "xmmsvalue.pyx":12 |
| 24615 | * VALUE_TYPE_NONE = XMMSV_TYPE_NONE |
| 24616 | * VALUE_TYPE_ERROR = XMMSV_TYPE_ERROR |
| 24617 | * VALUE_TYPE_INT64 = XMMSV_TYPE_INT64 # <<<<<<<<<<<<<< |
| 24618 | * VALUE_TYPE_FLOAT = XMMSV_TYPE_FLOAT |
| 24619 | * VALUE_TYPE_STRING = XMMSV_TYPE_STRING |
| 24620 | */ |
| 24621 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_INT64); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__24621; goto __pyx_L1_error;} |
| 24622 | __Pyx_GOTREF(__pyx_t_1); |
| 24623 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_INT64, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__24623; goto __pyx_L1_error;} |
| 24624 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24625 | |
| 24626 | /* "xmmsvalue.pyx":13 |
| 24627 | * VALUE_TYPE_ERROR = XMMSV_TYPE_ERROR |
| 24628 | * VALUE_TYPE_INT64 = XMMSV_TYPE_INT64 |
| 24629 | * VALUE_TYPE_FLOAT = XMMSV_TYPE_FLOAT # <<<<<<<<<<<<<< |
| 24630 | * VALUE_TYPE_STRING = XMMSV_TYPE_STRING |
| 24631 | * VALUE_TYPE_COLL = XMMSV_TYPE_COLL |
| 24632 | */ |
| 24633 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_FLOAT); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__24633; goto __pyx_L1_error;} |
| 24634 | __Pyx_GOTREF(__pyx_t_1); |
| 24635 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_FLOAT, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__24635; goto __pyx_L1_error;} |
| 24636 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24637 | |
| 24638 | /* "xmmsvalue.pyx":14 |
| 24639 | * VALUE_TYPE_INT64 = XMMSV_TYPE_INT64 |
| 24640 | * VALUE_TYPE_FLOAT = XMMSV_TYPE_FLOAT |
| 24641 | * VALUE_TYPE_STRING = XMMSV_TYPE_STRING # <<<<<<<<<<<<<< |
| 24642 | * VALUE_TYPE_COLL = XMMSV_TYPE_COLL |
| 24643 | * VALUE_TYPE_BIN = XMMSV_TYPE_BIN |
| 24644 | */ |
| 24645 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_STRING); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; __pyx_clineno = __LINE__24645; goto __pyx_L1_error;} |
| 24646 | __Pyx_GOTREF(__pyx_t_1); |
| 24647 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_STRING, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; __pyx_clineno = __LINE__24647; goto __pyx_L1_error;} |
| 24648 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24649 | |
| 24650 | /* "xmmsvalue.pyx":15 |
| 24651 | * VALUE_TYPE_FLOAT = XMMSV_TYPE_FLOAT |
| 24652 | * VALUE_TYPE_STRING = XMMSV_TYPE_STRING |
| 24653 | * VALUE_TYPE_COLL = XMMSV_TYPE_COLL # <<<<<<<<<<<<<< |
| 24654 | * VALUE_TYPE_BIN = XMMSV_TYPE_BIN |
| 24655 | * VALUE_TYPE_LIST = XMMSV_TYPE_LIST |
| 24656 | */ |
| 24657 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_COLL); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__24657; goto __pyx_L1_error;} |
| 24658 | __Pyx_GOTREF(__pyx_t_1); |
| 24659 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_COLL, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__24659; goto __pyx_L1_error;} |
| 24660 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24661 | |
| 24662 | /* "xmmsvalue.pyx":16 |
| 24663 | * VALUE_TYPE_STRING = XMMSV_TYPE_STRING |
| 24664 | * VALUE_TYPE_COLL = XMMSV_TYPE_COLL |
| 24665 | * VALUE_TYPE_BIN = XMMSV_TYPE_BIN # <<<<<<<<<<<<<< |
| 24666 | * VALUE_TYPE_LIST = XMMSV_TYPE_LIST |
| 24667 | * VALUE_TYPE_DICT = XMMSV_TYPE_DICT |
| 24668 | */ |
| 24669 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_BIN); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__24669; goto __pyx_L1_error;} |
| 24670 | __Pyx_GOTREF(__pyx_t_1); |
| 24671 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_BIN, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__24671; goto __pyx_L1_error;} |
| 24672 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24673 | |
| 24674 | /* "xmmsvalue.pyx":17 |
| 24675 | * VALUE_TYPE_COLL = XMMSV_TYPE_COLL |
| 24676 | * VALUE_TYPE_BIN = XMMSV_TYPE_BIN |
| 24677 | * VALUE_TYPE_LIST = XMMSV_TYPE_LIST # <<<<<<<<<<<<<< |
| 24678 | * VALUE_TYPE_DICT = XMMSV_TYPE_DICT |
| 24679 | * |
| 24680 | */ |
| 24681 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_LIST); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; __pyx_clineno = __LINE__24681; goto __pyx_L1_error;} |
| 24682 | __Pyx_GOTREF(__pyx_t_1); |
| 24683 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_LIST, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 17; __pyx_clineno = __LINE__24683; goto __pyx_L1_error;} |
| 24684 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24685 | |
| 24686 | /* "xmmsvalue.pyx":18 |
| 24687 | * VALUE_TYPE_BIN = XMMSV_TYPE_BIN |
| 24688 | * VALUE_TYPE_LIST = XMMSV_TYPE_LIST |
| 24689 | * VALUE_TYPE_DICT = XMMSV_TYPE_DICT # <<<<<<<<<<<<<< |
| 24690 | * |
| 24691 | * COLLECTION_TYPE_REFERENCE = XMMS_COLLECTION_TYPE_REFERENCE |
| 24692 | */ |
| 24693 | __pyx_t_1 = PyInt_FromLong(XMMSV_TYPE_DICT); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__24693; goto __pyx_L1_error;} |
| 24694 | __Pyx_GOTREF(__pyx_t_1); |
| 24695 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_VALUE_TYPE_DICT, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__24695; goto __pyx_L1_error;} |
| 24696 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24697 | |
| 24698 | /* "xmmsvalue.pyx":20 |
| 24699 | * VALUE_TYPE_DICT = XMMSV_TYPE_DICT |
| 24700 | * |
| 24701 | * COLLECTION_TYPE_REFERENCE = XMMS_COLLECTION_TYPE_REFERENCE # <<<<<<<<<<<<<< |
| 24702 | * COLLECTION_TYPE_UNIVERSE = XMMS_COLLECTION_TYPE_UNIVERSE |
| 24703 | * COLLECTION_TYPE_UNION = XMMS_COLLECTION_TYPE_UNION |
| 24704 | */ |
| 24705 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_REFERENCE); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__24705; goto __pyx_L1_error;} |
| 24706 | __Pyx_GOTREF(__pyx_t_1); |
| 24707 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_REFERENCE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__24707; goto __pyx_L1_error;} |
| 24708 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24709 | |
| 24710 | /* "xmmsvalue.pyx":21 |
| 24711 | * |
| 24712 | * COLLECTION_TYPE_REFERENCE = XMMS_COLLECTION_TYPE_REFERENCE |
| 24713 | * COLLECTION_TYPE_UNIVERSE = XMMS_COLLECTION_TYPE_UNIVERSE # <<<<<<<<<<<<<< |
| 24714 | * COLLECTION_TYPE_UNION = XMMS_COLLECTION_TYPE_UNION |
| 24715 | * COLLECTION_TYPE_INTERSECTION = XMMS_COLLECTION_TYPE_INTERSECTION |
| 24716 | */ |
| 24717 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_UNIVERSE); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__24717; goto __pyx_L1_error;} |
| 24718 | __Pyx_GOTREF(__pyx_t_1); |
| 24719 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_UNIVERSE, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__24719; goto __pyx_L1_error;} |
| 24720 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24721 | |
| 24722 | /* "xmmsvalue.pyx":22 |
| 24723 | * COLLECTION_TYPE_REFERENCE = XMMS_COLLECTION_TYPE_REFERENCE |
| 24724 | * COLLECTION_TYPE_UNIVERSE = XMMS_COLLECTION_TYPE_UNIVERSE |
| 24725 | * COLLECTION_TYPE_UNION = XMMS_COLLECTION_TYPE_UNION # <<<<<<<<<<<<<< |
| 24726 | * COLLECTION_TYPE_INTERSECTION = XMMS_COLLECTION_TYPE_INTERSECTION |
| 24727 | * COLLECTION_TYPE_COMPLEMENT = XMMS_COLLECTION_TYPE_COMPLEMENT |
| 24728 | */ |
| 24729 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_UNION); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__24729; goto __pyx_L1_error;} |
| 24730 | __Pyx_GOTREF(__pyx_t_1); |
| 24731 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_UNION, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 22; __pyx_clineno = __LINE__24731; goto __pyx_L1_error;} |
| 24732 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24733 | |
| 24734 | /* "xmmsvalue.pyx":23 |
| 24735 | * COLLECTION_TYPE_UNIVERSE = XMMS_COLLECTION_TYPE_UNIVERSE |
| 24736 | * COLLECTION_TYPE_UNION = XMMS_COLLECTION_TYPE_UNION |
| 24737 | * COLLECTION_TYPE_INTERSECTION = XMMS_COLLECTION_TYPE_INTERSECTION # <<<<<<<<<<<<<< |
| 24738 | * COLLECTION_TYPE_COMPLEMENT = XMMS_COLLECTION_TYPE_COMPLEMENT |
| 24739 | * COLLECTION_TYPE_HAS = XMMS_COLLECTION_TYPE_HAS |
| 24740 | */ |
| 24741 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_INTERSECTION); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__24741; goto __pyx_L1_error;} |
| 24742 | __Pyx_GOTREF(__pyx_t_1); |
| 24743 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_INTERSECTION, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__24743; goto __pyx_L1_error;} |
| 24744 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24745 | |
| 24746 | /* "xmmsvalue.pyx":24 |
| 24747 | * COLLECTION_TYPE_UNION = XMMS_COLLECTION_TYPE_UNION |
| 24748 | * COLLECTION_TYPE_INTERSECTION = XMMS_COLLECTION_TYPE_INTERSECTION |
| 24749 | * COLLECTION_TYPE_COMPLEMENT = XMMS_COLLECTION_TYPE_COMPLEMENT # <<<<<<<<<<<<<< |
| 24750 | * COLLECTION_TYPE_HAS = XMMS_COLLECTION_TYPE_HAS |
| 24751 | * COLLECTION_TYPE_MATCH = XMMS_COLLECTION_TYPE_MATCH |
| 24752 | */ |
| 24753 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_COMPLEMENT); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__24753; goto __pyx_L1_error;} |
| 24754 | __Pyx_GOTREF(__pyx_t_1); |
| 24755 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_COMPLEMENT, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 24; __pyx_clineno = __LINE__24755; goto __pyx_L1_error;} |
| 24756 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24757 | |
| 24758 | /* "xmmsvalue.pyx":25 |
| 24759 | * COLLECTION_TYPE_INTERSECTION = XMMS_COLLECTION_TYPE_INTERSECTION |
| 24760 | * COLLECTION_TYPE_COMPLEMENT = XMMS_COLLECTION_TYPE_COMPLEMENT |
| 24761 | * COLLECTION_TYPE_HAS = XMMS_COLLECTION_TYPE_HAS # <<<<<<<<<<<<<< |
| 24762 | * COLLECTION_TYPE_MATCH = XMMS_COLLECTION_TYPE_MATCH |
| 24763 | * COLLECTION_TYPE_TOKEN = XMMS_COLLECTION_TYPE_TOKEN |
| 24764 | */ |
| 24765 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_HAS); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__24765; goto __pyx_L1_error;} |
| 24766 | __Pyx_GOTREF(__pyx_t_1); |
| 24767 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_HAS, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__24767; goto __pyx_L1_error;} |
| 24768 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24769 | |
| 24770 | /* "xmmsvalue.pyx":26 |
| 24771 | * COLLECTION_TYPE_COMPLEMENT = XMMS_COLLECTION_TYPE_COMPLEMENT |
| 24772 | * COLLECTION_TYPE_HAS = XMMS_COLLECTION_TYPE_HAS |
| 24773 | * COLLECTION_TYPE_MATCH = XMMS_COLLECTION_TYPE_MATCH # <<<<<<<<<<<<<< |
| 24774 | * COLLECTION_TYPE_TOKEN = XMMS_COLLECTION_TYPE_TOKEN |
| 24775 | * COLLECTION_TYPE_EQUALS = XMMS_COLLECTION_TYPE_EQUALS |
| 24776 | */ |
| 24777 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_MATCH); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__24777; goto __pyx_L1_error;} |
| 24778 | __Pyx_GOTREF(__pyx_t_1); |
| 24779 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_MATCH, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__24779; goto __pyx_L1_error;} |
| 24780 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24781 | |
| 24782 | /* "xmmsvalue.pyx":27 |
| 24783 | * COLLECTION_TYPE_HAS = XMMS_COLLECTION_TYPE_HAS |
| 24784 | * COLLECTION_TYPE_MATCH = XMMS_COLLECTION_TYPE_MATCH |
| 24785 | * COLLECTION_TYPE_TOKEN = XMMS_COLLECTION_TYPE_TOKEN # <<<<<<<<<<<<<< |
| 24786 | * COLLECTION_TYPE_EQUALS = XMMS_COLLECTION_TYPE_EQUALS |
| 24787 | * COLLECTION_TYPE_NOTEQUAL = XMMS_COLLECTION_TYPE_NOTEQUAL |
| 24788 | */ |
| 24789 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_TOKEN); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__24789; goto __pyx_L1_error;} |
| 24790 | __Pyx_GOTREF(__pyx_t_1); |
| 24791 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_TOKEN, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 27; __pyx_clineno = __LINE__24791; goto __pyx_L1_error;} |
| 24792 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24793 | |
| 24794 | /* "xmmsvalue.pyx":28 |
| 24795 | * COLLECTION_TYPE_MATCH = XMMS_COLLECTION_TYPE_MATCH |
| 24796 | * COLLECTION_TYPE_TOKEN = XMMS_COLLECTION_TYPE_TOKEN |
| 24797 | * COLLECTION_TYPE_EQUALS = XMMS_COLLECTION_TYPE_EQUALS # <<<<<<<<<<<<<< |
| 24798 | * COLLECTION_TYPE_NOTEQUAL = XMMS_COLLECTION_TYPE_NOTEQUAL |
| 24799 | * COLLECTION_TYPE_SMALLER = XMMS_COLLECTION_TYPE_SMALLER |
| 24800 | */ |
| 24801 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_EQUALS); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__24801; goto __pyx_L1_error;} |
| 24802 | __Pyx_GOTREF(__pyx_t_1); |
| 24803 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_EQUALS, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__24803; goto __pyx_L1_error;} |
| 24804 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24805 | |
| 24806 | /* "xmmsvalue.pyx":29 |
| 24807 | * COLLECTION_TYPE_TOKEN = XMMS_COLLECTION_TYPE_TOKEN |
| 24808 | * COLLECTION_TYPE_EQUALS = XMMS_COLLECTION_TYPE_EQUALS |
| 24809 | * COLLECTION_TYPE_NOTEQUAL = XMMS_COLLECTION_TYPE_NOTEQUAL # <<<<<<<<<<<<<< |
| 24810 | * COLLECTION_TYPE_SMALLER = XMMS_COLLECTION_TYPE_SMALLER |
| 24811 | * COLLECTION_TYPE_SMALLEREQ = XMMS_COLLECTION_TYPE_SMALLEREQ |
| 24812 | */ |
| 24813 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_NOTEQUAL); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__24813; goto __pyx_L1_error;} |
| 24814 | __Pyx_GOTREF(__pyx_t_1); |
| 24815 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_NOTEQUAL, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 29; __pyx_clineno = __LINE__24815; goto __pyx_L1_error;} |
| 24816 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24817 | |
| 24818 | /* "xmmsvalue.pyx":30 |
| 24819 | * COLLECTION_TYPE_EQUALS = XMMS_COLLECTION_TYPE_EQUALS |
| 24820 | * COLLECTION_TYPE_NOTEQUAL = XMMS_COLLECTION_TYPE_NOTEQUAL |
| 24821 | * COLLECTION_TYPE_SMALLER = XMMS_COLLECTION_TYPE_SMALLER # <<<<<<<<<<<<<< |
| 24822 | * COLLECTION_TYPE_SMALLEREQ = XMMS_COLLECTION_TYPE_SMALLEREQ |
| 24823 | * COLLECTION_TYPE_GREATER = XMMS_COLLECTION_TYPE_GREATER |
| 24824 | */ |
| 24825 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_SMALLER); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__24825; goto __pyx_L1_error;} |
| 24826 | __Pyx_GOTREF(__pyx_t_1); |
| 24827 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_SMALLER, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__24827; goto __pyx_L1_error;} |
| 24828 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24829 | |
| 24830 | /* "xmmsvalue.pyx":31 |
| 24831 | * COLLECTION_TYPE_NOTEQUAL = XMMS_COLLECTION_TYPE_NOTEQUAL |
| 24832 | * COLLECTION_TYPE_SMALLER = XMMS_COLLECTION_TYPE_SMALLER |
| 24833 | * COLLECTION_TYPE_SMALLEREQ = XMMS_COLLECTION_TYPE_SMALLEREQ # <<<<<<<<<<<<<< |
| 24834 | * COLLECTION_TYPE_GREATER = XMMS_COLLECTION_TYPE_GREATER |
| 24835 | * COLLECTION_TYPE_GREATEREQ = XMMS_COLLECTION_TYPE_GREATEREQ |
| 24836 | */ |
| 24837 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_SMALLEREQ); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__24837; goto __pyx_L1_error;} |
| 24838 | __Pyx_GOTREF(__pyx_t_1); |
| 24839 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_SMALLEREQ, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__24839; goto __pyx_L1_error;} |
| 24840 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24841 | |
| 24842 | /* "xmmsvalue.pyx":32 |
| 24843 | * COLLECTION_TYPE_SMALLER = XMMS_COLLECTION_TYPE_SMALLER |
| 24844 | * COLLECTION_TYPE_SMALLEREQ = XMMS_COLLECTION_TYPE_SMALLEREQ |
| 24845 | * COLLECTION_TYPE_GREATER = XMMS_COLLECTION_TYPE_GREATER # <<<<<<<<<<<<<< |
| 24846 | * COLLECTION_TYPE_GREATEREQ = XMMS_COLLECTION_TYPE_GREATEREQ |
| 24847 | * COLLECTION_TYPE_ORDER = XMMS_COLLECTION_TYPE_ORDER |
| 24848 | */ |
| 24849 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_GREATER); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__24849; goto __pyx_L1_error;} |
| 24850 | __Pyx_GOTREF(__pyx_t_1); |
| 24851 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_GREATER, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__24851; goto __pyx_L1_error;} |
| 24852 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24853 | |
| 24854 | /* "xmmsvalue.pyx":33 |
| 24855 | * COLLECTION_TYPE_SMALLEREQ = XMMS_COLLECTION_TYPE_SMALLEREQ |
| 24856 | * COLLECTION_TYPE_GREATER = XMMS_COLLECTION_TYPE_GREATER |
| 24857 | * COLLECTION_TYPE_GREATEREQ = XMMS_COLLECTION_TYPE_GREATEREQ # <<<<<<<<<<<<<< |
| 24858 | * COLLECTION_TYPE_ORDER = XMMS_COLLECTION_TYPE_ORDER |
| 24859 | * COLLECTION_TYPE_LIMIT = XMMS_COLLECTION_TYPE_LIMIT |
| 24860 | */ |
| 24861 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_GREATEREQ); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__24861; goto __pyx_L1_error;} |
| 24862 | __Pyx_GOTREF(__pyx_t_1); |
| 24863 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_GREATEREQ, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__24863; goto __pyx_L1_error;} |
| 24864 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24865 | |
| 24866 | /* "xmmsvalue.pyx":34 |
| 24867 | * COLLECTION_TYPE_GREATER = XMMS_COLLECTION_TYPE_GREATER |
| 24868 | * COLLECTION_TYPE_GREATEREQ = XMMS_COLLECTION_TYPE_GREATEREQ |
| 24869 | * COLLECTION_TYPE_ORDER = XMMS_COLLECTION_TYPE_ORDER # <<<<<<<<<<<<<< |
| 24870 | * COLLECTION_TYPE_LIMIT = XMMS_COLLECTION_TYPE_LIMIT |
| 24871 | * COLLECTION_TYPE_MEDIASET = XMMS_COLLECTION_TYPE_MEDIASET |
| 24872 | */ |
| 24873 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_ORDER); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__24873; goto __pyx_L1_error;} |
| 24874 | __Pyx_GOTREF(__pyx_t_1); |
| 24875 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_ORDER, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__24875; goto __pyx_L1_error;} |
| 24876 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24877 | |
| 24878 | /* "xmmsvalue.pyx":35 |
| 24879 | * COLLECTION_TYPE_GREATEREQ = XMMS_COLLECTION_TYPE_GREATEREQ |
| 24880 | * COLLECTION_TYPE_ORDER = XMMS_COLLECTION_TYPE_ORDER |
| 24881 | * COLLECTION_TYPE_LIMIT = XMMS_COLLECTION_TYPE_LIMIT # <<<<<<<<<<<<<< |
| 24882 | * COLLECTION_TYPE_MEDIASET = XMMS_COLLECTION_TYPE_MEDIASET |
| 24883 | * COLLECTION_TYPE_IDLIST = XMMS_COLLECTION_TYPE_IDLIST |
| 24884 | */ |
| 24885 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_LIMIT); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__24885; goto __pyx_L1_error;} |
| 24886 | __Pyx_GOTREF(__pyx_t_1); |
| 24887 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_LIMIT, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__24887; goto __pyx_L1_error;} |
| 24888 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24889 | |
| 24890 | /* "xmmsvalue.pyx":36 |
| 24891 | * COLLECTION_TYPE_ORDER = XMMS_COLLECTION_TYPE_ORDER |
| 24892 | * COLLECTION_TYPE_LIMIT = XMMS_COLLECTION_TYPE_LIMIT |
| 24893 | * COLLECTION_TYPE_MEDIASET = XMMS_COLLECTION_TYPE_MEDIASET # <<<<<<<<<<<<<< |
| 24894 | * COLLECTION_TYPE_IDLIST = XMMS_COLLECTION_TYPE_IDLIST |
| 24895 | * |
| 24896 | */ |
| 24897 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_MEDIASET); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__24897; goto __pyx_L1_error;} |
| 24898 | __Pyx_GOTREF(__pyx_t_1); |
| 24899 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_MEDIASET, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__24899; goto __pyx_L1_error;} |
| 24900 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24901 | |
| 24902 | /* "xmmsvalue.pyx":37 |
| 24903 | * COLLECTION_TYPE_LIMIT = XMMS_COLLECTION_TYPE_LIMIT |
| 24904 | * COLLECTION_TYPE_MEDIASET = XMMS_COLLECTION_TYPE_MEDIASET |
| 24905 | * COLLECTION_TYPE_IDLIST = XMMS_COLLECTION_TYPE_IDLIST # <<<<<<<<<<<<<< |
| 24906 | * |
| 24907 | * |
| 24908 | */ |
| 24909 | __pyx_t_1 = PyInt_FromLong(XMMS_COLLECTION_TYPE_IDLIST); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__24909; goto __pyx_L1_error;} |
| 24910 | __Pyx_GOTREF(__pyx_t_1); |
| 24911 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_COLLECTION_TYPE_IDLIST, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__24911; goto __pyx_L1_error;} |
| 24912 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24913 | |
| 24914 | /* "xmmsvalue.pyx":40 |
| 24915 | * |
| 24916 | * |
| 24917 | * from propdict import PropDict # xmmsclient.propdict # <<<<<<<<<<<<<< |
| 24918 | * |
| 24919 | * |
| 24920 | */ |
| 24921 | __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__24921; goto __pyx_L1_error;} |
| 24922 | __Pyx_GOTREF(__pyx_t_1); |
| 24923 | __Pyx_INCREF(__pyx_n_s_PropDict)( ((PyObject*)(__pyx_n_s_PropDict))->ob_refcnt++); |
| 24924 | PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_PropDict)(((PyListObject *)(__pyx_t_1))->ob_item[0] = (__pyx_n_s_PropDict )); |
| 24925 | __Pyx_GIVEREF(__pyx_n_s_PropDict); |
| 24926 | __pyx_t_2 = __Pyx_Import(__pyx_n_s_propdict, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__24926; goto __pyx_L1_error;} |
| 24927 | __Pyx_GOTREF(__pyx_t_2); |
| 24928 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24929 | __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_PropDict); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__24929; goto __pyx_L1_error;} |
| 24930 | __Pyx_GOTREF(__pyx_t_1); |
| 24931 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_PropDict, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__24931; goto __pyx_L1_error;} |
| 24932 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24933 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 24934 | |
| 24935 | /* "xmmsvalue.pyx":83 |
| 24936 | * return ret |
| 24937 | * |
| 24938 | * class XmmsError(Exception): pass # <<<<<<<<<<<<<< |
| 24939 | * |
| 24940 | * cdef class XmmsValue: |
| 24941 | */ |
| 24942 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__24942; goto __pyx_L1_error;} |
| 24943 | __Pyx_GOTREF(__pyx_t_2); |
| 24944 | __Pyx_INCREF(__pyx_builtin_Exception)( ((PyObject*)(__pyx_builtin_Exception))->ob_refcnt++); |
| 24945 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_builtin_Exception)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_builtin_Exception ); |
| 24946 | __Pyx_GIVEREF(__pyx_builtin_Exception); |
| 24947 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__24947; goto __pyx_L1_error;} |
| 24948 | __Pyx_GOTREF(__pyx_t_1); |
| 24949 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_XmmsError, __pyx_n_s_XmmsError, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__24949; goto __pyx_L1_error;} |
| 24950 | __Pyx_GOTREF(__pyx_t_3); |
| 24951 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_XmmsError, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__24951; goto __pyx_L1_error;} |
| 24952 | __Pyx_GOTREF(__pyx_t_4); |
| 24953 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_XmmsError, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__24953; goto __pyx_L1_error;} |
| 24954 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 24955 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 24956 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 24957 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 24958 | |
| 24959 | /* "xmmsvalue.pyx":426 |
| 24960 | * |
| 24961 | * cdef _idlist_types = ( |
| 24962 | * XMMS_COLLECTION_TYPE_IDLIST, # <<<<<<<<<<<<<< |
| 24963 | * ) |
| 24964 | * cdef class Collection(CollectionRef): |
| 24965 | */ |
| 24966 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_IDLIST); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; __pyx_clineno = __LINE__24966; goto __pyx_L1_error;} |
| 24967 | __Pyx_GOTREF(__pyx_t_2); |
| 24968 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 426; __pyx_clineno = __LINE__24968; goto __pyx_L1_error;} |
| 24969 | __Pyx_GOTREF(__pyx_t_1); |
| 24970 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 24971 | __Pyx_GIVEREF(__pyx_t_2); |
| 24972 | __pyx_t_2 = 0; |
| 24973 | __Pyx_XGOTREF(__pyx_v_9xmmsvalue__idlist_types); |
| 24974 | __Pyx_DECREF_SET(__pyx_v_9xmmsvalue__idlist_types, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_9xmmsvalue__idlist_types ; __pyx_v_9xmmsvalue__idlist_types = __pyx_t_1; do { if ( --( (PyObject*)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject* )((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject * )((PyObject *)(tmp)))); } while (0); } while (0); |
| 24975 | __Pyx_GIVEREF(__pyx_t_1); |
| 24976 | __pyx_t_1 = 0; |
| 24977 | |
| 24978 | /* "xmmsvalue.pyx":837 |
| 24979 | * |
| 24980 | * # XXX Might not be needed. |
| 24981 | * class CollectionWrapper(Collection): # <<<<<<<<<<<<<< |
| 24982 | * pass |
| 24983 | * |
| 24984 | */ |
| 24985 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__24985; goto __pyx_L1_error;} |
| 24986 | __Pyx_GOTREF(__pyx_t_1); |
| 24987 | __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_Collection)))( ((PyObject*)(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_Collection ))))->ob_refcnt++); |
| 24988 | PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_Collection)))(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = ((PyObject * )((PyObject*)__pyx_ptype_9xmmsvalue_Collection))); |
| 24989 | __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_9xmmsvalue_Collection))); |
| 24990 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__24990; goto __pyx_L1_error;} |
| 24991 | __Pyx_GOTREF(__pyx_t_2); |
| 24992 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_CollectionWrapper, __pyx_n_s_CollectionWrapper, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__24992; goto __pyx_L1_error;} |
| 24993 | __Pyx_GOTREF(__pyx_t_3); |
| 24994 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_CollectionWrapper, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__24994; goto __pyx_L1_error;} |
| 24995 | __Pyx_GOTREF(__pyx_t_4); |
| 24996 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_CollectionWrapper, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 837; __pyx_clineno = __LINE__24996; goto __pyx_L1_error;} |
| 24997 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 24998 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 24999 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25000 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25001 | |
| 25002 | /* "xmmsvalue.pyx":840 |
| 25003 | * pass |
| 25004 | * |
| 25005 | * class BaseCollection(CollectionWrapper): # <<<<<<<<<<<<<< |
| 25006 | * def __init__(Collection self, int _colltype, **kargs): |
| 25007 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 25008 | */ |
| 25009 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_CollectionWrapper); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__25009; goto __pyx_L1_error;} |
| 25010 | __Pyx_GOTREF(__pyx_t_1); |
| 25011 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__25011; goto __pyx_L1_error;} |
| 25012 | __Pyx_GOTREF(__pyx_t_2); |
| 25013 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25014 | __Pyx_GIVEREF(__pyx_t_1); |
| 25015 | __pyx_t_1 = 0; |
| 25016 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__25016; goto __pyx_L1_error;} |
| 25017 | __Pyx_GOTREF(__pyx_t_1); |
| 25018 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_BaseCollection, __pyx_n_s_BaseCollection, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__25018; goto __pyx_L1_error;} |
| 25019 | __Pyx_GOTREF(__pyx_t_3); |
| 25020 | |
| 25021 | /* "xmmsvalue.pyx":841 |
| 25022 | * |
| 25023 | * class BaseCollection(CollectionWrapper): |
| 25024 | * def __init__(Collection self, int _colltype, **kargs): # <<<<<<<<<<<<<< |
| 25025 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 25026 | * if self.coll == NULL: |
| 25027 | */ |
| 25028 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_14BaseCollection_1__init__, 0, __pyx_n_s_BaseCollection___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__40))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_14BaseCollection_1__init__ , 0, __pyx_n_s_BaseCollection___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__40)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__25028; goto __pyx_L1_error;} |
| 25029 | __Pyx_GOTREF(__pyx_t_4); |
| 25030 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 841; __pyx_clineno = __LINE__25030; goto __pyx_L1_error;} |
| 25031 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25032 | |
| 25033 | /* "xmmsvalue.pyx":840 |
| 25034 | * pass |
| 25035 | * |
| 25036 | * class BaseCollection(CollectionWrapper): # <<<<<<<<<<<<<< |
| 25037 | * def __init__(Collection self, int _colltype, **kargs): |
| 25038 | * self.coll = xmmsv_new_coll(<xmmsv_coll_type_t> _colltype) |
| 25039 | */ |
| 25040 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_BaseCollection, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__25040; goto __pyx_L1_error;} |
| 25041 | __Pyx_GOTREF(__pyx_t_4); |
| 25042 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_BaseCollection, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 840; __pyx_clineno = __LINE__25042; goto __pyx_L1_error;} |
| 25043 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25044 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25045 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25046 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25047 | |
| 25048 | /* "xmmsvalue.pyx":859 |
| 25049 | * self.attributes.update(kargs) |
| 25050 | * |
| 25051 | * class Reference(BaseCollection): # <<<<<<<<<<<<<< |
| 25052 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): |
| 25053 | * kargs.update( |
| 25054 | */ |
| 25055 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__25055; goto __pyx_L1_error;} |
| 25056 | __Pyx_GOTREF(__pyx_t_2); |
| 25057 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__25057; goto __pyx_L1_error;} |
| 25058 | __Pyx_GOTREF(__pyx_t_1); |
| 25059 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25060 | __Pyx_GIVEREF(__pyx_t_2); |
| 25061 | __pyx_t_2 = 0; |
| 25062 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__25062; goto __pyx_L1_error;} |
| 25063 | __Pyx_GOTREF(__pyx_t_2); |
| 25064 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_Reference, __pyx_n_s_Reference, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__25064; goto __pyx_L1_error;} |
| 25065 | __Pyx_GOTREF(__pyx_t_3); |
| 25066 | |
| 25067 | /* "xmmsvalue.pyx":860 |
| 25068 | * |
| 25069 | * class Reference(BaseCollection): |
| 25070 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): # <<<<<<<<<<<<<< |
| 25071 | * kargs.update( |
| 25072 | * namespace = kargs.get('namespace', ns), |
| 25073 | */ |
| 25074 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_9Reference_1__init__, 0, __pyx_n_s_Reference___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__42))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_9Reference_1__init__ , 0, __pyx_n_s_Reference___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__42)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__25074; goto __pyx_L1_error;} |
| 25075 | __Pyx_GOTREF(__pyx_t_4); |
| 25076 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__43); |
| 25077 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 860; __pyx_clineno = __LINE__25077; goto __pyx_L1_error;} |
| 25078 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25079 | |
| 25080 | /* "xmmsvalue.pyx":859 |
| 25081 | * self.attributes.update(kargs) |
| 25082 | * |
| 25083 | * class Reference(BaseCollection): # <<<<<<<<<<<<<< |
| 25084 | * def __init__(Collection self, ref = None, ns = "Collections", **kargs): |
| 25085 | * kargs.update( |
| 25086 | */ |
| 25087 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_Reference, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__25087; goto __pyx_L1_error;} |
| 25088 | __Pyx_GOTREF(__pyx_t_4); |
| 25089 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Reference, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 859; __pyx_clineno = __LINE__25089; goto __pyx_L1_error;} |
| 25090 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25091 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25092 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25093 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25094 | |
| 25095 | /* "xmmsvalue.pyx":867 |
| 25096 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_REFERENCE, **kargs) |
| 25097 | * |
| 25098 | * class Universe(Reference): # <<<<<<<<<<<<<< |
| 25099 | * def __init__(self): |
| 25100 | * Reference.__init__(self, reference = "All Media") |
| 25101 | */ |
| 25102 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Reference); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__25102; goto __pyx_L1_error;} |
| 25103 | __Pyx_GOTREF(__pyx_t_1); |
| 25104 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__25104; goto __pyx_L1_error;} |
| 25105 | __Pyx_GOTREF(__pyx_t_2); |
| 25106 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25107 | __Pyx_GIVEREF(__pyx_t_1); |
| 25108 | __pyx_t_1 = 0; |
| 25109 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__25109; goto __pyx_L1_error;} |
| 25110 | __Pyx_GOTREF(__pyx_t_1); |
| 25111 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Universe, __pyx_n_s_Universe, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__25111; goto __pyx_L1_error;} |
| 25112 | __Pyx_GOTREF(__pyx_t_3); |
| 25113 | |
| 25114 | /* "xmmsvalue.pyx":868 |
| 25115 | * |
| 25116 | * class Universe(Reference): |
| 25117 | * def __init__(self): # <<<<<<<<<<<<<< |
| 25118 | * Reference.__init__(self, reference = "All Media") |
| 25119 | * |
| 25120 | */ |
| 25121 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_8Universe_1__init__, 0, __pyx_n_s_Universe___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__45))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_8Universe_1__init__ , 0, __pyx_n_s_Universe___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__45)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__25121; goto __pyx_L1_error;} |
| 25122 | __Pyx_GOTREF(__pyx_t_4); |
| 25123 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__25123; goto __pyx_L1_error;} |
| 25124 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25125 | |
| 25126 | /* "xmmsvalue.pyx":871 |
| 25127 | * Reference.__init__(self, reference = "All Media") |
| 25128 | * |
| 25129 | * def __repr__(self): # <<<<<<<<<<<<<< |
| 25130 | * return "%s()" % self.__class__.__name__ |
| 25131 | * |
| 25132 | */ |
| 25133 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_8Universe_3__repr__, 0, __pyx_n_s_Universe___repr, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__47))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_8Universe_3__repr__ , 0, __pyx_n_s_Universe___repr, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__47)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__25133; goto __pyx_L1_error;} |
| 25134 | __Pyx_GOTREF(__pyx_t_4); |
| 25135 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_repr, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 871; __pyx_clineno = __LINE__25135; goto __pyx_L1_error;} |
| 25136 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25137 | |
| 25138 | /* "xmmsvalue.pyx":867 |
| 25139 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_REFERENCE, **kargs) |
| 25140 | * |
| 25141 | * class Universe(Reference): # <<<<<<<<<<<<<< |
| 25142 | * def __init__(self): |
| 25143 | * Reference.__init__(self, reference = "All Media") |
| 25144 | */ |
| 25145 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Universe, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__25145; goto __pyx_L1_error;} |
| 25146 | __Pyx_GOTREF(__pyx_t_4); |
| 25147 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Universe, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 867; __pyx_clineno = __LINE__25147; goto __pyx_L1_error;} |
| 25148 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25149 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25150 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25151 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25152 | |
| 25153 | /* "xmmsvalue.pyx":874 |
| 25154 | * return "%s()" % self.__class__.__name__ |
| 25155 | * |
| 25156 | * class FilterCollection(BaseCollection): # <<<<<<<<<<<<<< |
| 25157 | * def __init__(Collection self, _operation, parent = None, **kargs): |
| 25158 | * if 'operands' in kargs: |
| 25159 | */ |
| 25160 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__25160; goto __pyx_L1_error;} |
| 25161 | __Pyx_GOTREF(__pyx_t_2); |
| 25162 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__25162; goto __pyx_L1_error;} |
| 25163 | __Pyx_GOTREF(__pyx_t_1); |
| 25164 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25165 | __Pyx_GIVEREF(__pyx_t_2); |
| 25166 | __pyx_t_2 = 0; |
| 25167 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__25167; goto __pyx_L1_error;} |
| 25168 | __Pyx_GOTREF(__pyx_t_2); |
| 25169 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_FilterCollection, __pyx_n_s_FilterCollection, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__25169; goto __pyx_L1_error;} |
| 25170 | __Pyx_GOTREF(__pyx_t_3); |
| 25171 | |
| 25172 | /* "xmmsvalue.pyx":875 |
| 25173 | * |
| 25174 | * class FilterCollection(BaseCollection): |
| 25175 | * def __init__(Collection self, _operation, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25176 | * if 'operands' in kargs: |
| 25177 | * operands = kargs |
| 25178 | */ |
| 25179 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_16FilterCollection_1__init__, 0, __pyx_n_s_FilterCollection___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__49))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_16FilterCollection_1__init__ , 0, __pyx_n_s_FilterCollection___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__49)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__25179; goto __pyx_L1_error;} |
| 25180 | __Pyx_GOTREF(__pyx_t_4); |
| 25181 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__50); |
| 25182 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__25182; goto __pyx_L1_error;} |
| 25183 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25184 | |
| 25185 | /* "xmmsvalue.pyx":874 |
| 25186 | * return "%s()" % self.__class__.__name__ |
| 25187 | * |
| 25188 | * class FilterCollection(BaseCollection): # <<<<<<<<<<<<<< |
| 25189 | * def __init__(Collection self, _operation, parent = None, **kargs): |
| 25190 | * if 'operands' in kargs: |
| 25191 | */ |
| 25192 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_FilterCollection, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__25192; goto __pyx_L1_error;} |
| 25193 | __Pyx_GOTREF(__pyx_t_4); |
| 25194 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_FilterCollection, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 874; __pyx_clineno = __LINE__25194; goto __pyx_L1_error;} |
| 25195 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25196 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25197 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25198 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25199 | |
| 25200 | /* "xmmsvalue.pyx":887 |
| 25201 | * **kargs) |
| 25202 | * |
| 25203 | * class Equals(FilterCollection): # <<<<<<<<<<<<<< |
| 25204 | * def __init__(Collection self, parent = None, **kargs): |
| 25205 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) |
| 25206 | */ |
| 25207 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__25207; goto __pyx_L1_error;} |
| 25208 | __Pyx_GOTREF(__pyx_t_1); |
| 25209 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__25209; goto __pyx_L1_error;} |
| 25210 | __Pyx_GOTREF(__pyx_t_2); |
| 25211 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25212 | __Pyx_GIVEREF(__pyx_t_1); |
| 25213 | __pyx_t_1 = 0; |
| 25214 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__25214; goto __pyx_L1_error;} |
| 25215 | __Pyx_GOTREF(__pyx_t_1); |
| 25216 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Equals, __pyx_n_s_Equals, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__25216; goto __pyx_L1_error;} |
| 25217 | __Pyx_GOTREF(__pyx_t_3); |
| 25218 | |
| 25219 | /* "xmmsvalue.pyx":888 |
| 25220 | * |
| 25221 | * class Equals(FilterCollection): |
| 25222 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25223 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) |
| 25224 | * |
| 25225 | */ |
| 25226 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_6Equals_1__init__, 0, __pyx_n_s_Equals___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__52))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_6Equals_1__init__ , 0, __pyx_n_s_Equals___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__52)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__25226; goto __pyx_L1_error;} |
| 25227 | __Pyx_GOTREF(__pyx_t_4); |
| 25228 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__53); |
| 25229 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 888; __pyx_clineno = __LINE__25229; goto __pyx_L1_error;} |
| 25230 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25231 | |
| 25232 | /* "xmmsvalue.pyx":887 |
| 25233 | * **kargs) |
| 25234 | * |
| 25235 | * class Equals(FilterCollection): # <<<<<<<<<<<<<< |
| 25236 | * def __init__(Collection self, parent = None, **kargs): |
| 25237 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) |
| 25238 | */ |
| 25239 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Equals, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__25239; goto __pyx_L1_error;} |
| 25240 | __Pyx_GOTREF(__pyx_t_4); |
| 25241 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Equals, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 887; __pyx_clineno = __LINE__25241; goto __pyx_L1_error;} |
| 25242 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25243 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25244 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25245 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25246 | |
| 25247 | /* "xmmsvalue.pyx":891 |
| 25248 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) |
| 25249 | * |
| 25250 | * class NotEqual(FilterCollection): # <<<<<<<<<<<<<< |
| 25251 | * def __init__(Collection self, parent = None, **kargs): |
| 25252 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) |
| 25253 | */ |
| 25254 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__25254; goto __pyx_L1_error;} |
| 25255 | __Pyx_GOTREF(__pyx_t_2); |
| 25256 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__25256; goto __pyx_L1_error;} |
| 25257 | __Pyx_GOTREF(__pyx_t_1); |
| 25258 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25259 | __Pyx_GIVEREF(__pyx_t_2); |
| 25260 | __pyx_t_2 = 0; |
| 25261 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__25261; goto __pyx_L1_error;} |
| 25262 | __Pyx_GOTREF(__pyx_t_2); |
| 25263 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_NotEqual, __pyx_n_s_NotEqual, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__25263; goto __pyx_L1_error;} |
| 25264 | __Pyx_GOTREF(__pyx_t_3); |
| 25265 | |
| 25266 | /* "xmmsvalue.pyx":892 |
| 25267 | * |
| 25268 | * class NotEqual(FilterCollection): |
| 25269 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25270 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) |
| 25271 | * |
| 25272 | */ |
| 25273 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_8NotEqual_1__init__, 0, __pyx_n_s_NotEqual___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__55))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_8NotEqual_1__init__ , 0, __pyx_n_s_NotEqual___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__25273; goto __pyx_L1_error;} |
| 25274 | __Pyx_GOTREF(__pyx_t_4); |
| 25275 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__56); |
| 25276 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__25276; goto __pyx_L1_error;} |
| 25277 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25278 | |
| 25279 | /* "xmmsvalue.pyx":891 |
| 25280 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_EQUALS, parent, **kargs) |
| 25281 | * |
| 25282 | * class NotEqual(FilterCollection): # <<<<<<<<<<<<<< |
| 25283 | * def __init__(Collection self, parent = None, **kargs): |
| 25284 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) |
| 25285 | */ |
| 25286 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_NotEqual, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__25286; goto __pyx_L1_error;} |
| 25287 | __Pyx_GOTREF(__pyx_t_4); |
| 25288 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_NotEqual, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 891; __pyx_clineno = __LINE__25288; goto __pyx_L1_error;} |
| 25289 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25290 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25291 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25292 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25293 | |
| 25294 | /* "xmmsvalue.pyx":895 |
| 25295 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) |
| 25296 | * |
| 25297 | * class Smaller(FilterCollection): # <<<<<<<<<<<<<< |
| 25298 | * def __init__(Collection self, parent = None, **kargs): |
| 25299 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) |
| 25300 | */ |
| 25301 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__25301; goto __pyx_L1_error;} |
| 25302 | __Pyx_GOTREF(__pyx_t_1); |
| 25303 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__25303; goto __pyx_L1_error;} |
| 25304 | __Pyx_GOTREF(__pyx_t_2); |
| 25305 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25306 | __Pyx_GIVEREF(__pyx_t_1); |
| 25307 | __pyx_t_1 = 0; |
| 25308 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__25308; goto __pyx_L1_error;} |
| 25309 | __Pyx_GOTREF(__pyx_t_1); |
| 25310 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Smaller, __pyx_n_s_Smaller, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__25310; goto __pyx_L1_error;} |
| 25311 | __Pyx_GOTREF(__pyx_t_3); |
| 25312 | |
| 25313 | /* "xmmsvalue.pyx":896 |
| 25314 | * |
| 25315 | * class Smaller(FilterCollection): |
| 25316 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25317 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) |
| 25318 | * |
| 25319 | */ |
| 25320 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_7Smaller_1__init__, 0, __pyx_n_s_Smaller___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__58))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_7Smaller_1__init__ , 0, __pyx_n_s_Smaller___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__58)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__25320; goto __pyx_L1_error;} |
| 25321 | __Pyx_GOTREF(__pyx_t_4); |
| 25322 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__59); |
| 25323 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 896; __pyx_clineno = __LINE__25323; goto __pyx_L1_error;} |
| 25324 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25325 | |
| 25326 | /* "xmmsvalue.pyx":895 |
| 25327 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_NOTEQUAL, parent, **kargs) |
| 25328 | * |
| 25329 | * class Smaller(FilterCollection): # <<<<<<<<<<<<<< |
| 25330 | * def __init__(Collection self, parent = None, **kargs): |
| 25331 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) |
| 25332 | */ |
| 25333 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Smaller, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__25333; goto __pyx_L1_error;} |
| 25334 | __Pyx_GOTREF(__pyx_t_4); |
| 25335 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Smaller, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 895; __pyx_clineno = __LINE__25335; goto __pyx_L1_error;} |
| 25336 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25337 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25338 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25339 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25340 | |
| 25341 | /* "xmmsvalue.pyx":899 |
| 25342 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) |
| 25343 | * |
| 25344 | * class SmallerEqual(FilterCollection): # <<<<<<<<<<<<<< |
| 25345 | * def __init__(Collection self, parent = None, **kargs): |
| 25346 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) |
| 25347 | */ |
| 25348 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; __pyx_clineno = __LINE__25348; goto __pyx_L1_error;} |
| 25349 | __Pyx_GOTREF(__pyx_t_2); |
| 25350 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; __pyx_clineno = __LINE__25350; goto __pyx_L1_error;} |
| 25351 | __Pyx_GOTREF(__pyx_t_1); |
| 25352 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25353 | __Pyx_GIVEREF(__pyx_t_2); |
| 25354 | __pyx_t_2 = 0; |
| 25355 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; __pyx_clineno = __LINE__25355; goto __pyx_L1_error;} |
| 25356 | __Pyx_GOTREF(__pyx_t_2); |
| 25357 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_SmallerEqual, __pyx_n_s_SmallerEqual, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; __pyx_clineno = __LINE__25357; goto __pyx_L1_error;} |
| 25358 | __Pyx_GOTREF(__pyx_t_3); |
| 25359 | |
| 25360 | /* "xmmsvalue.pyx":900 |
| 25361 | * |
| 25362 | * class SmallerEqual(FilterCollection): |
| 25363 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25364 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) |
| 25365 | * |
| 25366 | */ |
| 25367 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_12SmallerEqual_1__init__, 0, __pyx_n_s_SmallerEqual___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__61))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_12SmallerEqual_1__init__ , 0, __pyx_n_s_SmallerEqual___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__25367; goto __pyx_L1_error;} |
| 25368 | __Pyx_GOTREF(__pyx_t_4); |
| 25369 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__62); |
| 25370 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 900; __pyx_clineno = __LINE__25370; goto __pyx_L1_error;} |
| 25371 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25372 | |
| 25373 | /* "xmmsvalue.pyx":899 |
| 25374 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLER, parent, **kargs) |
| 25375 | * |
| 25376 | * class SmallerEqual(FilterCollection): # <<<<<<<<<<<<<< |
| 25377 | * def __init__(Collection self, parent = None, **kargs): |
| 25378 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) |
| 25379 | */ |
| 25380 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_SmallerEqual, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; __pyx_clineno = __LINE__25380; goto __pyx_L1_error;} |
| 25381 | __Pyx_GOTREF(__pyx_t_4); |
| 25382 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_SmallerEqual, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 899; __pyx_clineno = __LINE__25382; goto __pyx_L1_error;} |
| 25383 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25384 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25385 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25386 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25387 | |
| 25388 | /* "xmmsvalue.pyx":903 |
| 25389 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) |
| 25390 | * |
| 25391 | * class Greater(FilterCollection): # <<<<<<<<<<<<<< |
| 25392 | * def __init__(Collection self, parent = None, **kargs): |
| 25393 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) |
| 25394 | */ |
| 25395 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__25395; goto __pyx_L1_error;} |
| 25396 | __Pyx_GOTREF(__pyx_t_1); |
| 25397 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__25397; goto __pyx_L1_error;} |
| 25398 | __Pyx_GOTREF(__pyx_t_2); |
| 25399 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25400 | __Pyx_GIVEREF(__pyx_t_1); |
| 25401 | __pyx_t_1 = 0; |
| 25402 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__25402; goto __pyx_L1_error;} |
| 25403 | __Pyx_GOTREF(__pyx_t_1); |
| 25404 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Greater, __pyx_n_s_Greater, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__25404; goto __pyx_L1_error;} |
| 25405 | __Pyx_GOTREF(__pyx_t_3); |
| 25406 | |
| 25407 | /* "xmmsvalue.pyx":904 |
| 25408 | * |
| 25409 | * class Greater(FilterCollection): |
| 25410 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25411 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) |
| 25412 | * |
| 25413 | */ |
| 25414 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_7Greater_1__init__, 0, __pyx_n_s_Greater___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__64))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_7Greater_1__init__ , 0, __pyx_n_s_Greater___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__64)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__25414; goto __pyx_L1_error;} |
| 25415 | __Pyx_GOTREF(__pyx_t_4); |
| 25416 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__65); |
| 25417 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 904; __pyx_clineno = __LINE__25417; goto __pyx_L1_error;} |
| 25418 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25419 | |
| 25420 | /* "xmmsvalue.pyx":903 |
| 25421 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_SMALLEREQ, parent, **kargs) |
| 25422 | * |
| 25423 | * class Greater(FilterCollection): # <<<<<<<<<<<<<< |
| 25424 | * def __init__(Collection self, parent = None, **kargs): |
| 25425 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) |
| 25426 | */ |
| 25427 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Greater, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__25427; goto __pyx_L1_error;} |
| 25428 | __Pyx_GOTREF(__pyx_t_4); |
| 25429 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Greater, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 903; __pyx_clineno = __LINE__25429; goto __pyx_L1_error;} |
| 25430 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25431 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25432 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25433 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25434 | |
| 25435 | /* "xmmsvalue.pyx":907 |
| 25436 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) |
| 25437 | * |
| 25438 | * class GreaterEqual(FilterCollection): # <<<<<<<<<<<<<< |
| 25439 | * def __init__(Collection self, parent = None, **kargs): |
| 25440 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) |
| 25441 | */ |
| 25442 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; __pyx_clineno = __LINE__25442; goto __pyx_L1_error;} |
| 25443 | __Pyx_GOTREF(__pyx_t_2); |
| 25444 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; __pyx_clineno = __LINE__25444; goto __pyx_L1_error;} |
| 25445 | __Pyx_GOTREF(__pyx_t_1); |
| 25446 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25447 | __Pyx_GIVEREF(__pyx_t_2); |
| 25448 | __pyx_t_2 = 0; |
| 25449 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; __pyx_clineno = __LINE__25449; goto __pyx_L1_error;} |
| 25450 | __Pyx_GOTREF(__pyx_t_2); |
| 25451 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_GreaterEqual, __pyx_n_s_GreaterEqual, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; __pyx_clineno = __LINE__25451; goto __pyx_L1_error;} |
| 25452 | __Pyx_GOTREF(__pyx_t_3); |
| 25453 | |
| 25454 | /* "xmmsvalue.pyx":908 |
| 25455 | * |
| 25456 | * class GreaterEqual(FilterCollection): |
| 25457 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25458 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) |
| 25459 | * |
| 25460 | */ |
| 25461 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_12GreaterEqual_1__init__, 0, __pyx_n_s_GreaterEqual___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__67))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_12GreaterEqual_1__init__ , 0, __pyx_n_s_GreaterEqual___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__67)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__25461; goto __pyx_L1_error;} |
| 25462 | __Pyx_GOTREF(__pyx_t_4); |
| 25463 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__68); |
| 25464 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 908; __pyx_clineno = __LINE__25464; goto __pyx_L1_error;} |
| 25465 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25466 | |
| 25467 | /* "xmmsvalue.pyx":907 |
| 25468 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATER, parent, **kargs) |
| 25469 | * |
| 25470 | * class GreaterEqual(FilterCollection): # <<<<<<<<<<<<<< |
| 25471 | * def __init__(Collection self, parent = None, **kargs): |
| 25472 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) |
| 25473 | */ |
| 25474 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_GreaterEqual, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; __pyx_clineno = __LINE__25474; goto __pyx_L1_error;} |
| 25475 | __Pyx_GOTREF(__pyx_t_4); |
| 25476 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_GreaterEqual, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 907; __pyx_clineno = __LINE__25476; goto __pyx_L1_error;} |
| 25477 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25478 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25479 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25480 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25481 | |
| 25482 | /* "xmmsvalue.pyx":911 |
| 25483 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) |
| 25484 | * |
| 25485 | * class Match(FilterCollection): # <<<<<<<<<<<<<< |
| 25486 | * def __init__(Collection self, parent = None, **kargs): |
| 25487 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) |
| 25488 | */ |
| 25489 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__25489; goto __pyx_L1_error;} |
| 25490 | __Pyx_GOTREF(__pyx_t_1); |
| 25491 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__25491; goto __pyx_L1_error;} |
| 25492 | __Pyx_GOTREF(__pyx_t_2); |
| 25493 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25494 | __Pyx_GIVEREF(__pyx_t_1); |
| 25495 | __pyx_t_1 = 0; |
| 25496 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__25496; goto __pyx_L1_error;} |
| 25497 | __Pyx_GOTREF(__pyx_t_1); |
| 25498 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Match, __pyx_n_s_Match, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__25498; goto __pyx_L1_error;} |
| 25499 | __Pyx_GOTREF(__pyx_t_3); |
| 25500 | |
| 25501 | /* "xmmsvalue.pyx":912 |
| 25502 | * |
| 25503 | * class Match(FilterCollection): |
| 25504 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25505 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) |
| 25506 | * |
| 25507 | */ |
| 25508 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_5Match_1__init__, 0, __pyx_n_s_Match___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__70))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_5Match_1__init__ , 0, __pyx_n_s_Match___init, ((void*)0), __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__70)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__25508; goto __pyx_L1_error;} |
| 25509 | __Pyx_GOTREF(__pyx_t_4); |
| 25510 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__71); |
| 25511 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 912; __pyx_clineno = __LINE__25511; goto __pyx_L1_error;} |
| 25512 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25513 | |
| 25514 | /* "xmmsvalue.pyx":911 |
| 25515 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_GREATEREQ, parent, **kargs) |
| 25516 | * |
| 25517 | * class Match(FilterCollection): # <<<<<<<<<<<<<< |
| 25518 | * def __init__(Collection self, parent = None, **kargs): |
| 25519 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) |
| 25520 | */ |
| 25521 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Match, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__25521; goto __pyx_L1_error;} |
| 25522 | __Pyx_GOTREF(__pyx_t_4); |
| 25523 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Match, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__25523; goto __pyx_L1_error;} |
| 25524 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25525 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25526 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25527 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25528 | |
| 25529 | /* "xmmsvalue.pyx":915 |
| 25530 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) |
| 25531 | * |
| 25532 | * class Token(FilterCollection): # <<<<<<<<<<<<<< |
| 25533 | * def __init__(Collection self, parent = None, **kargs): |
| 25534 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) |
| 25535 | */ |
| 25536 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__25536; goto __pyx_L1_error;} |
| 25537 | __Pyx_GOTREF(__pyx_t_2); |
| 25538 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__25538; goto __pyx_L1_error;} |
| 25539 | __Pyx_GOTREF(__pyx_t_1); |
| 25540 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25541 | __Pyx_GIVEREF(__pyx_t_2); |
| 25542 | __pyx_t_2 = 0; |
| 25543 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__25543; goto __pyx_L1_error;} |
| 25544 | __Pyx_GOTREF(__pyx_t_2); |
| 25545 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_Token, __pyx_n_s_Token, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__25545; goto __pyx_L1_error;} |
| 25546 | __Pyx_GOTREF(__pyx_t_3); |
| 25547 | |
| 25548 | /* "xmmsvalue.pyx":916 |
| 25549 | * |
| 25550 | * class Token(FilterCollection): |
| 25551 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25552 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) |
| 25553 | * |
| 25554 | */ |
| 25555 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_5Token_1__init__, 0, __pyx_n_s_Token___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__73))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_5Token_1__init__ , 0, __pyx_n_s_Token___init, ((void*)0), __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__73)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__25555; goto __pyx_L1_error;} |
| 25556 | __Pyx_GOTREF(__pyx_t_4); |
| 25557 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__74); |
| 25558 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__25558; goto __pyx_L1_error;} |
| 25559 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25560 | |
| 25561 | /* "xmmsvalue.pyx":915 |
| 25562 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_MATCH, parent, **kargs) |
| 25563 | * |
| 25564 | * class Token(FilterCollection): # <<<<<<<<<<<<<< |
| 25565 | * def __init__(Collection self, parent = None, **kargs): |
| 25566 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) |
| 25567 | */ |
| 25568 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_Token, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__25568; goto __pyx_L1_error;} |
| 25569 | __Pyx_GOTREF(__pyx_t_4); |
| 25570 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Token, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 915; __pyx_clineno = __LINE__25570; goto __pyx_L1_error;} |
| 25571 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25572 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25573 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25574 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25575 | |
| 25576 | /* "xmmsvalue.pyx":919 |
| 25577 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) |
| 25578 | * |
| 25579 | * class Has(FilterCollection): # <<<<<<<<<<<<<< |
| 25580 | * def __init__(Collection self, parent = None, **kargs): |
| 25581 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) |
| 25582 | */ |
| 25583 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_FilterCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__25583; goto __pyx_L1_error;} |
| 25584 | __Pyx_GOTREF(__pyx_t_1); |
| 25585 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__25585; goto __pyx_L1_error;} |
| 25586 | __Pyx_GOTREF(__pyx_t_2); |
| 25587 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25588 | __Pyx_GIVEREF(__pyx_t_1); |
| 25589 | __pyx_t_1 = 0; |
| 25590 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__25590; goto __pyx_L1_error;} |
| 25591 | __Pyx_GOTREF(__pyx_t_1); |
| 25592 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Has, __pyx_n_s_Has, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__25592; goto __pyx_L1_error;} |
| 25593 | __Pyx_GOTREF(__pyx_t_3); |
| 25594 | |
| 25595 | /* "xmmsvalue.pyx":920 |
| 25596 | * |
| 25597 | * class Has(FilterCollection): |
| 25598 | * def __init__(Collection self, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25599 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) |
| 25600 | * |
| 25601 | */ |
| 25602 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_3Has_1__init__, 0, __pyx_n_s_Has___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__76))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_3Has_1__init__ , 0, __pyx_n_s_Has___init, ((void*)0), __pyx_n_s_xmmsvalue, PyModule_GetDict (__pyx_m), ((PyObject *)__pyx_codeobj__76)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__25602; goto __pyx_L1_error;} |
| 25603 | __Pyx_GOTREF(__pyx_t_4); |
| 25604 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__77); |
| 25605 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 920; __pyx_clineno = __LINE__25605; goto __pyx_L1_error;} |
| 25606 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25607 | |
| 25608 | /* "xmmsvalue.pyx":919 |
| 25609 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_TOKEN, parent, **kargs) |
| 25610 | * |
| 25611 | * class Has(FilterCollection): # <<<<<<<<<<<<<< |
| 25612 | * def __init__(Collection self, parent = None, **kargs): |
| 25613 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) |
| 25614 | */ |
| 25615 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Has, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__25615; goto __pyx_L1_error;} |
| 25616 | __Pyx_GOTREF(__pyx_t_4); |
| 25617 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Has, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__25617; goto __pyx_L1_error;} |
| 25618 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25619 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25620 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25621 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25622 | |
| 25623 | /* "xmmsvalue.pyx":923 |
| 25624 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) |
| 25625 | * |
| 25626 | * class Order(BaseCollection): # <<<<<<<<<<<<<< |
| 25627 | * def __init__(Collection self, operand = None, field = None, direction = 0, **kargs): |
| 25628 | * if isinstance(direction, int): |
| 25629 | */ |
| 25630 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__25630; goto __pyx_L1_error;} |
| 25631 | __Pyx_GOTREF(__pyx_t_2); |
| 25632 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__25632; goto __pyx_L1_error;} |
| 25633 | __Pyx_GOTREF(__pyx_t_1); |
| 25634 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25635 | __Pyx_GIVEREF(__pyx_t_2); |
| 25636 | __pyx_t_2 = 0; |
| 25637 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__25637; goto __pyx_L1_error;} |
| 25638 | __Pyx_GOTREF(__pyx_t_2); |
| 25639 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_Order, __pyx_n_s_Order, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__25639; goto __pyx_L1_error;} |
| 25640 | __Pyx_GOTREF(__pyx_t_3); |
| 25641 | |
| 25642 | /* "xmmsvalue.pyx":924 |
| 25643 | * |
| 25644 | * class Order(BaseCollection): |
| 25645 | * def __init__(Collection self, operand = None, field = None, direction = 0, **kargs): # <<<<<<<<<<<<<< |
| 25646 | * if isinstance(direction, int): |
| 25647 | * kargs['direction'] = 'ASC' if direction >= 0 else 'DESC' |
| 25648 | */ |
| 25649 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_5Order_1__init__, 0, __pyx_n_s_Order___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__79))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_5Order_1__init__ , 0, __pyx_n_s_Order___init, ((void*)0), __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__79)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__25649; goto __pyx_L1_error;} |
| 25650 | __Pyx_GOTREF(__pyx_t_4); |
| 25651 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__80); |
| 25652 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 924; __pyx_clineno = __LINE__25652; goto __pyx_L1_error;} |
| 25653 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25654 | |
| 25655 | /* "xmmsvalue.pyx":923 |
| 25656 | * FilterCollection.__init__(self, XMMS_COLLECTION_TYPE_HAS, parent, **kargs) |
| 25657 | * |
| 25658 | * class Order(BaseCollection): # <<<<<<<<<<<<<< |
| 25659 | * def __init__(Collection self, operand = None, field = None, direction = 0, **kargs): |
| 25660 | * if isinstance(direction, int): |
| 25661 | */ |
| 25662 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_Order, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__25662; goto __pyx_L1_error;} |
| 25663 | __Pyx_GOTREF(__pyx_t_4); |
| 25664 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Order, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__25664; goto __pyx_L1_error;} |
| 25665 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25666 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25667 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25668 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25669 | |
| 25670 | /* "xmmsvalue.pyx":948 |
| 25671 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_ORDER, **kargs) |
| 25672 | * |
| 25673 | * class Mediaset(BaseCollection): # <<<<<<<<<<<<<< |
| 25674 | * def __init__(Collection self, operand = None, **kargs): |
| 25675 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 25676 | */ |
| 25677 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__25677; goto __pyx_L1_error;} |
| 25678 | __Pyx_GOTREF(__pyx_t_1); |
| 25679 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__25679; goto __pyx_L1_error;} |
| 25680 | __Pyx_GOTREF(__pyx_t_2); |
| 25681 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25682 | __Pyx_GIVEREF(__pyx_t_1); |
| 25683 | __pyx_t_1 = 0; |
| 25684 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__25684; goto __pyx_L1_error;} |
| 25685 | __Pyx_GOTREF(__pyx_t_1); |
| 25686 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Mediaset, __pyx_n_s_Mediaset, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__25686; goto __pyx_L1_error;} |
| 25687 | __Pyx_GOTREF(__pyx_t_3); |
| 25688 | |
| 25689 | /* "xmmsvalue.pyx":949 |
| 25690 | * |
| 25691 | * class Mediaset(BaseCollection): |
| 25692 | * def __init__(Collection self, operand = None, **kargs): # <<<<<<<<<<<<<< |
| 25693 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 25694 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_MEDIASET, **kargs) |
| 25695 | */ |
| 25696 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_8Mediaset_1__init__, 0, __pyx_n_s_Mediaset___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__82))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_8Mediaset_1__init__ , 0, __pyx_n_s_Mediaset___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__82)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__25696; goto __pyx_L1_error;} |
| 25697 | __Pyx_GOTREF(__pyx_t_4); |
| 25698 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__83); |
| 25699 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__25699; goto __pyx_L1_error;} |
| 25700 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25701 | |
| 25702 | /* "xmmsvalue.pyx":948 |
| 25703 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_ORDER, **kargs) |
| 25704 | * |
| 25705 | * class Mediaset(BaseCollection): # <<<<<<<<<<<<<< |
| 25706 | * def __init__(Collection self, operand = None, **kargs): |
| 25707 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 25708 | */ |
| 25709 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Mediaset, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__25709; goto __pyx_L1_error;} |
| 25710 | __Pyx_GOTREF(__pyx_t_4); |
| 25711 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Mediaset, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 948; __pyx_clineno = __LINE__25711; goto __pyx_L1_error;} |
| 25712 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25713 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25714 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25715 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25716 | |
| 25717 | /* "xmmsvalue.pyx":953 |
| 25718 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_MEDIASET, **kargs) |
| 25719 | * |
| 25720 | * class Limit(BaseCollection): # <<<<<<<<<<<<<< |
| 25721 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): |
| 25722 | * kargs.update( |
| 25723 | */ |
| 25724 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__25724; goto __pyx_L1_error;} |
| 25725 | __Pyx_GOTREF(__pyx_t_2); |
| 25726 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__25726; goto __pyx_L1_error;} |
| 25727 | __Pyx_GOTREF(__pyx_t_1); |
| 25728 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25729 | __Pyx_GIVEREF(__pyx_t_2); |
| 25730 | __pyx_t_2 = 0; |
| 25731 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__25731; goto __pyx_L1_error;} |
| 25732 | __Pyx_GOTREF(__pyx_t_2); |
| 25733 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_Limit, __pyx_n_s_Limit, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__25733; goto __pyx_L1_error;} |
| 25734 | __Pyx_GOTREF(__pyx_t_3); |
| 25735 | |
| 25736 | /* "xmmsvalue.pyx":954 |
| 25737 | * |
| 25738 | * class Limit(BaseCollection): |
| 25739 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): # <<<<<<<<<<<<<< |
| 25740 | * kargs.update( |
| 25741 | * operands = kargs.get('operands', [operand or Universe()]), |
| 25742 | */ |
| 25743 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_5Limit_1__init__, 0, __pyx_n_s_Limit___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__85))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_5Limit_1__init__ , 0, __pyx_n_s_Limit___init, ((void*)0), __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__85)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__25743; goto __pyx_L1_error;} |
| 25744 | __Pyx_GOTREF(__pyx_t_4); |
| 25745 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__86); |
| 25746 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 954; __pyx_clineno = __LINE__25746; goto __pyx_L1_error;} |
| 25747 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25748 | |
| 25749 | /* "xmmsvalue.pyx":953 |
| 25750 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_MEDIASET, **kargs) |
| 25751 | * |
| 25752 | * class Limit(BaseCollection): # <<<<<<<<<<<<<< |
| 25753 | * def __init__(Collection self, operand = None, start = 0, length = 0, **kargs): |
| 25754 | * kargs.update( |
| 25755 | */ |
| 25756 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_Limit, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__25756; goto __pyx_L1_error;} |
| 25757 | __Pyx_GOTREF(__pyx_t_4); |
| 25758 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Limit, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 953; __pyx_clineno = __LINE__25758; goto __pyx_L1_error;} |
| 25759 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25760 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25761 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25762 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25763 | |
| 25764 | /* "xmmsvalue.pyx":962 |
| 25765 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_LIMIT, **kargs) |
| 25766 | * |
| 25767 | * class IDList(BaseCollection): # <<<<<<<<<<<<<< |
| 25768 | * def __init__(Collection self, ids = None, **kargs): |
| 25769 | * kargs.update( |
| 25770 | */ |
| 25771 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__25771; goto __pyx_L1_error;} |
| 25772 | __Pyx_GOTREF(__pyx_t_1); |
| 25773 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__25773; goto __pyx_L1_error;} |
| 25774 | __Pyx_GOTREF(__pyx_t_2); |
| 25775 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25776 | __Pyx_GIVEREF(__pyx_t_1); |
| 25777 | __pyx_t_1 = 0; |
| 25778 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__25778; goto __pyx_L1_error;} |
| 25779 | __Pyx_GOTREF(__pyx_t_1); |
| 25780 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_IDList, __pyx_n_s_IDList, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__25780; goto __pyx_L1_error;} |
| 25781 | __Pyx_GOTREF(__pyx_t_3); |
| 25782 | |
| 25783 | /* "xmmsvalue.pyx":963 |
| 25784 | * |
| 25785 | * class IDList(BaseCollection): |
| 25786 | * def __init__(Collection self, ids = None, **kargs): # <<<<<<<<<<<<<< |
| 25787 | * kargs.update( |
| 25788 | * type = kargs.get('type', 'list'), |
| 25789 | */ |
| 25790 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_6IDList_1__init__, 0, __pyx_n_s_IDList___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__88))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_6IDList_1__init__ , 0, __pyx_n_s_IDList___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__88)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__25790; goto __pyx_L1_error;} |
| 25791 | __Pyx_GOTREF(__pyx_t_4); |
| 25792 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__89); |
| 25793 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 963; __pyx_clineno = __LINE__25793; goto __pyx_L1_error;} |
| 25794 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25795 | |
| 25796 | /* "xmmsvalue.pyx":962 |
| 25797 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_LIMIT, **kargs) |
| 25798 | * |
| 25799 | * class IDList(BaseCollection): # <<<<<<<<<<<<<< |
| 25800 | * def __init__(Collection self, ids = None, **kargs): |
| 25801 | * kargs.update( |
| 25802 | */ |
| 25803 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_IDList, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__25803; goto __pyx_L1_error;} |
| 25804 | __Pyx_GOTREF(__pyx_t_4); |
| 25805 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_IDList, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 962; __pyx_clineno = __LINE__25805; goto __pyx_L1_error;} |
| 25806 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25807 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25808 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25809 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25810 | |
| 25811 | /* "xmmsvalue.pyx":970 |
| 25812 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_IDLIST, **kargs) |
| 25813 | * |
| 25814 | * class Queue(IDList): # <<<<<<<<<<<<<< |
| 25815 | * def __init__(Collection self, ids = None, **kargs): |
| 25816 | * kargs.update( |
| 25817 | */ |
| 25818 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_IDList); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; __pyx_clineno = __LINE__25818; goto __pyx_L1_error;} |
| 25819 | __Pyx_GOTREF(__pyx_t_2); |
| 25820 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; __pyx_clineno = __LINE__25820; goto __pyx_L1_error;} |
| 25821 | __Pyx_GOTREF(__pyx_t_1); |
| 25822 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25823 | __Pyx_GIVEREF(__pyx_t_2); |
| 25824 | __pyx_t_2 = 0; |
| 25825 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; __pyx_clineno = __LINE__25825; goto __pyx_L1_error;} |
| 25826 | __Pyx_GOTREF(__pyx_t_2); |
| 25827 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_Queue, __pyx_n_s_Queue, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; __pyx_clineno = __LINE__25827; goto __pyx_L1_error;} |
| 25828 | __Pyx_GOTREF(__pyx_t_3); |
| 25829 | |
| 25830 | /* "xmmsvalue.pyx":971 |
| 25831 | * |
| 25832 | * class Queue(IDList): |
| 25833 | * def __init__(Collection self, ids = None, **kargs): # <<<<<<<<<<<<<< |
| 25834 | * kargs.update( |
| 25835 | * type = kargs.get('type', 'queue') |
| 25836 | */ |
| 25837 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_5Queue_1__init__, 0, __pyx_n_s_Queue___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__91))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_5Queue_1__init__ , 0, __pyx_n_s_Queue___init, ((void*)0), __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__91)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__25837; goto __pyx_L1_error;} |
| 25838 | __Pyx_GOTREF(__pyx_t_4); |
| 25839 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__92); |
| 25840 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 971; __pyx_clineno = __LINE__25840; goto __pyx_L1_error;} |
| 25841 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25842 | |
| 25843 | /* "xmmsvalue.pyx":970 |
| 25844 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_IDLIST, **kargs) |
| 25845 | * |
| 25846 | * class Queue(IDList): # <<<<<<<<<<<<<< |
| 25847 | * def __init__(Collection self, ids = None, **kargs): |
| 25848 | * kargs.update( |
| 25849 | */ |
| 25850 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_Queue, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; __pyx_clineno = __LINE__25850; goto __pyx_L1_error;} |
| 25851 | __Pyx_GOTREF(__pyx_t_4); |
| 25852 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Queue, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; __pyx_clineno = __LINE__25852; goto __pyx_L1_error;} |
| 25853 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25854 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25855 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25856 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25857 | |
| 25858 | /* "xmmsvalue.pyx":977 |
| 25859 | * IDList.__init__(self, ids, **kargs) |
| 25860 | * |
| 25861 | * class PShuffle(IDList): # <<<<<<<<<<<<<< |
| 25862 | * def __init__(Collection self, ids = None, parent = None, **kargs): |
| 25863 | * kargs.update( |
| 25864 | */ |
| 25865 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_IDList); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 977; __pyx_clineno = __LINE__25865; goto __pyx_L1_error;} |
| 25866 | __Pyx_GOTREF(__pyx_t_1); |
| 25867 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 977; __pyx_clineno = __LINE__25867; goto __pyx_L1_error;} |
| 25868 | __Pyx_GOTREF(__pyx_t_2); |
| 25869 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25870 | __Pyx_GIVEREF(__pyx_t_1); |
| 25871 | __pyx_t_1 = 0; |
| 25872 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 977; __pyx_clineno = __LINE__25872; goto __pyx_L1_error;} |
| 25873 | __Pyx_GOTREF(__pyx_t_1); |
| 25874 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_PShuffle, __pyx_n_s_PShuffle, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 977; __pyx_clineno = __LINE__25874; goto __pyx_L1_error;} |
| 25875 | __Pyx_GOTREF(__pyx_t_3); |
| 25876 | |
| 25877 | /* "xmmsvalue.pyx":978 |
| 25878 | * |
| 25879 | * class PShuffle(IDList): |
| 25880 | * def __init__(Collection self, ids = None, parent = None, **kargs): # <<<<<<<<<<<<<< |
| 25881 | * kargs.update( |
| 25882 | * type = kargs.get('type', 'pshuffle'), |
| 25883 | */ |
| 25884 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_8PShuffle_1__init__, 0, __pyx_n_s_PShuffle___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__94))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_8PShuffle_1__init__ , 0, __pyx_n_s_PShuffle___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__94)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__25884; goto __pyx_L1_error;} |
| 25885 | __Pyx_GOTREF(__pyx_t_4); |
| 25886 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__95); |
| 25887 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 978; __pyx_clineno = __LINE__25887; goto __pyx_L1_error;} |
| 25888 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25889 | |
| 25890 | /* "xmmsvalue.pyx":977 |
| 25891 | * IDList.__init__(self, ids, **kargs) |
| 25892 | * |
| 25893 | * class PShuffle(IDList): # <<<<<<<<<<<<<< |
| 25894 | * def __init__(Collection self, ids = None, parent = None, **kargs): |
| 25895 | * kargs.update( |
| 25896 | */ |
| 25897 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_PShuffle, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 977; __pyx_clineno = __LINE__25897; goto __pyx_L1_error;} |
| 25898 | __Pyx_GOTREF(__pyx_t_4); |
| 25899 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_PShuffle, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 977; __pyx_clineno = __LINE__25899; goto __pyx_L1_error;} |
| 25900 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25901 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25902 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25903 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25904 | |
| 25905 | /* "xmmsvalue.pyx":985 |
| 25906 | * IDList.__init__(self, ids, **kargs) |
| 25907 | * |
| 25908 | * class Union(BaseCollection): # <<<<<<<<<<<<<< |
| 25909 | * def __init__(Collection self, *a, **kargs): |
| 25910 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 25911 | */ |
| 25912 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__25912; goto __pyx_L1_error;} |
| 25913 | __Pyx_GOTREF(__pyx_t_2); |
| 25914 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__25914; goto __pyx_L1_error;} |
| 25915 | __Pyx_GOTREF(__pyx_t_1); |
| 25916 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 25917 | __Pyx_GIVEREF(__pyx_t_2); |
| 25918 | __pyx_t_2 = 0; |
| 25919 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__25919; goto __pyx_L1_error;} |
| 25920 | __Pyx_GOTREF(__pyx_t_2); |
| 25921 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_Union, __pyx_n_s_Union, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__25921; goto __pyx_L1_error;} |
| 25922 | __Pyx_GOTREF(__pyx_t_3); |
| 25923 | |
| 25924 | /* "xmmsvalue.pyx":986 |
| 25925 | * |
| 25926 | * class Union(BaseCollection): |
| 25927 | * def __init__(Collection self, *a, **kargs): # <<<<<<<<<<<<<< |
| 25928 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 25929 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_UNION, **kargs) |
| 25930 | */ |
| 25931 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_5Union_1__init__, 0, __pyx_n_s_Union___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__97))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_5Union_1__init__ , 0, __pyx_n_s_Union___init, ((void*)0), __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__97)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__25931; goto __pyx_L1_error;} |
| 25932 | __Pyx_GOTREF(__pyx_t_4); |
| 25933 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 986; __pyx_clineno = __LINE__25933; goto __pyx_L1_error;} |
| 25934 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25935 | |
| 25936 | /* "xmmsvalue.pyx":985 |
| 25937 | * IDList.__init__(self, ids, **kargs) |
| 25938 | * |
| 25939 | * class Union(BaseCollection): # <<<<<<<<<<<<<< |
| 25940 | * def __init__(Collection self, *a, **kargs): |
| 25941 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 25942 | */ |
| 25943 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_Union, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__25943; goto __pyx_L1_error;} |
| 25944 | __Pyx_GOTREF(__pyx_t_4); |
| 25945 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Union, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__25945; goto __pyx_L1_error;} |
| 25946 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25947 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25948 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25949 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25950 | |
| 25951 | /* "xmmsvalue.pyx":990 |
| 25952 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_UNION, **kargs) |
| 25953 | * |
| 25954 | * class Intersection(BaseCollection): # <<<<<<<<<<<<<< |
| 25955 | * def __init__(Collection self, *a, **kargs): |
| 25956 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 25957 | */ |
| 25958 | __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 990; __pyx_clineno = __LINE__25958; goto __pyx_L1_error;} |
| 25959 | __Pyx_GOTREF(__pyx_t_1); |
| 25960 | __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 990; __pyx_clineno = __LINE__25960; goto __pyx_L1_error;} |
| 25961 | __Pyx_GOTREF(__pyx_t_2); |
| 25962 | PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1)(((PyTupleObject *)(__pyx_t_2))->ob_item[0] = __pyx_t_1); |
| 25963 | __Pyx_GIVEREF(__pyx_t_1); |
| 25964 | __pyx_t_1 = 0; |
| 25965 | __pyx_t_1 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_2); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 990; __pyx_clineno = __LINE__25965; goto __pyx_L1_error;} |
| 25966 | __Pyx_GOTREF(__pyx_t_1); |
| 25967 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Intersection, __pyx_n_s_Intersection, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 990; __pyx_clineno = __LINE__25967; goto __pyx_L1_error;} |
| 25968 | __Pyx_GOTREF(__pyx_t_3); |
| 25969 | |
| 25970 | /* "xmmsvalue.pyx":991 |
| 25971 | * |
| 25972 | * class Intersection(BaseCollection): |
| 25973 | * def __init__(Collection self, *a, **kargs): # <<<<<<<<<<<<<< |
| 25974 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 25975 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_INTERSECTION, **kargs) |
| 25976 | */ |
| 25977 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_12Intersection_1__init__, 0, __pyx_n_s_Intersection___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__99))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_12Intersection_1__init__ , 0, __pyx_n_s_Intersection___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__99)); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__25977; goto __pyx_L1_error;} |
| 25978 | __Pyx_GOTREF(__pyx_t_4); |
| 25979 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 991; __pyx_clineno = __LINE__25979; goto __pyx_L1_error;} |
| 25980 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25981 | |
| 25982 | /* "xmmsvalue.pyx":990 |
| 25983 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_UNION, **kargs) |
| 25984 | * |
| 25985 | * class Intersection(BaseCollection): # <<<<<<<<<<<<<< |
| 25986 | * def __init__(Collection self, *a, **kargs): |
| 25987 | * kargs['operands'] = kargs.get('operands', list(a)) |
| 25988 | */ |
| 25989 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Intersection, __pyx_t_2, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 990; __pyx_clineno = __LINE__25989; goto __pyx_L1_error;} |
| 25990 | __Pyx_GOTREF(__pyx_t_4); |
| 25991 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Intersection, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 990; __pyx_clineno = __LINE__25991; goto __pyx_L1_error;} |
| 25992 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 25993 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 25994 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 25995 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 25996 | |
| 25997 | /* "xmmsvalue.pyx":995 |
| 25998 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_INTERSECTION, **kargs) |
| 25999 | * |
| 26000 | * class Complement(BaseCollection): # <<<<<<<<<<<<<< |
| 26001 | * def __init__(Collection self, operand = None, **kargs): |
| 26002 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 26003 | */ |
| 26004 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_BaseCollection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; __pyx_clineno = __LINE__26004; goto __pyx_L1_error;} |
| 26005 | __Pyx_GOTREF(__pyx_t_2); |
| 26006 | __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; __pyx_clineno = __LINE__26006; goto __pyx_L1_error;} |
| 26007 | __Pyx_GOTREF(__pyx_t_1); |
| 26008 | PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2)(((PyTupleObject *)(__pyx_t_1))->ob_item[0] = __pyx_t_2); |
| 26009 | __Pyx_GIVEREF(__pyx_t_2); |
| 26010 | __pyx_t_2 = 0; |
| 26011 | __pyx_t_2 = __Pyx_CalculateMetaclass(NULL((void*)0), __pyx_t_1); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; __pyx_clineno = __LINE__26011; goto __pyx_L1_error;} |
| 26012 | __Pyx_GOTREF(__pyx_t_2); |
| 26013 | __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_Complement, __pyx_n_s_Complement, (PyObject *) NULL((void*)0), __pyx_n_s_xmmsvalue, (PyObject *) NULL((void*)0)); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; __pyx_clineno = __LINE__26013; goto __pyx_L1_error;} |
| 26014 | __Pyx_GOTREF(__pyx_t_3); |
| 26015 | |
| 26016 | /* "xmmsvalue.pyx":996 |
| 26017 | * |
| 26018 | * class Complement(BaseCollection): |
| 26019 | * def __init__(Collection self, operand = None, **kargs): # <<<<<<<<<<<<<< |
| 26020 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 26021 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_COMPLEMENT, **kargs) |
| 26022 | */ |
| 26023 | __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_9xmmsvalue_10Complement_1__init__, 0, __pyx_n_s_Complement___init, NULL, __pyx_n_s_xmmsvalue, PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__101))__Pyx_CyFunction_New(__pyx_CyFunctionType, &__pyx_mdef_9xmmsvalue_10Complement_1__init__ , 0, __pyx_n_s_Complement___init, ((void*)0), __pyx_n_s_xmmsvalue , PyModule_GetDict(__pyx_m), ((PyObject *)__pyx_codeobj__101) ); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__26023; goto __pyx_L1_error;} |
| 26024 | __Pyx_GOTREF(__pyx_t_4); |
| 26025 | __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_4, __pyx_tuple__102); |
| 26026 | if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 996; __pyx_clineno = __LINE__26026; goto __pyx_L1_error;} |
| 26027 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 26028 | |
| 26029 | /* "xmmsvalue.pyx":995 |
| 26030 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_INTERSECTION, **kargs) |
| 26031 | * |
| 26032 | * class Complement(BaseCollection): # <<<<<<<<<<<<<< |
| 26033 | * def __init__(Collection self, operand = None, **kargs): |
| 26034 | * kargs['operands'] = kargs.get('operands', [operand or Universe()]) |
| 26035 | */ |
| 26036 | __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_Complement, __pyx_t_1, __pyx_t_3, NULL((void*)0), 0, 1); if (unlikely(!__pyx_t_4)__builtin_expect(!!(!__pyx_t_4), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; __pyx_clineno = __LINE__26036; goto __pyx_L1_error;} |
| 26037 | __Pyx_GOTREF(__pyx_t_4); |
| 26038 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_Complement, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 995; __pyx_clineno = __LINE__26038; goto __pyx_L1_error;} |
| 26039 | __Pyx_DECREF(__pyx_t_4)do { if ( --((PyObject*)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_4)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while ( 0); __pyx_t_4 = 0; |
| 26040 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26041 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26042 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 26043 | |
| 26044 | /* "xmmsvalue.pyx":1000 |
| 26045 | * BaseCollection.__init__(self, XMMS_COLLECTION_TYPE_COMPLEMENT, **kargs) |
| 26046 | * |
| 26047 | * cdef _collclass = { # <<<<<<<<<<<<<< |
| 26048 | * XMMS_COLLECTION_TYPE_REFERENCE: Reference, |
| 26049 | * XMMS_COLLECTION_TYPE_UNIVERSE: Universe, |
| 26050 | */ |
| 26051 | __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26051; goto __pyx_L1_error;} |
| 26052 | __Pyx_GOTREF(__pyx_t_1); |
| 26053 | |
| 26054 | /* "xmmsvalue.pyx":1001 |
| 26055 | * |
| 26056 | * cdef _collclass = { |
| 26057 | * XMMS_COLLECTION_TYPE_REFERENCE: Reference, # <<<<<<<<<<<<<< |
| 26058 | * XMMS_COLLECTION_TYPE_UNIVERSE: Universe, |
| 26059 | * XMMS_COLLECTION_TYPE_UNION: Union, |
| 26060 | */ |
| 26061 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_REFERENCE); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__26061; goto __pyx_L1_error;} |
| 26062 | __Pyx_GOTREF(__pyx_t_2); |
| 26063 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Reference); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1001; __pyx_clineno = __LINE__26063; goto __pyx_L1_error;} |
| 26064 | __Pyx_GOTREF(__pyx_t_3); |
| 26065 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26065; goto __pyx_L1_error;} |
| 26066 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26067 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26068 | |
| 26069 | /* "xmmsvalue.pyx":1002 |
| 26070 | * cdef _collclass = { |
| 26071 | * XMMS_COLLECTION_TYPE_REFERENCE: Reference, |
| 26072 | * XMMS_COLLECTION_TYPE_UNIVERSE: Universe, # <<<<<<<<<<<<<< |
| 26073 | * XMMS_COLLECTION_TYPE_UNION: Union, |
| 26074 | * XMMS_COLLECTION_TYPE_INTERSECTION: Intersection, |
| 26075 | */ |
| 26076 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_UNIVERSE); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; __pyx_clineno = __LINE__26076; goto __pyx_L1_error;} |
| 26077 | __Pyx_GOTREF(__pyx_t_3); |
| 26078 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Universe); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1002; __pyx_clineno = __LINE__26078; goto __pyx_L1_error;} |
| 26079 | __Pyx_GOTREF(__pyx_t_2); |
| 26080 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26080; goto __pyx_L1_error;} |
| 26081 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26082 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26083 | |
| 26084 | /* "xmmsvalue.pyx":1003 |
| 26085 | * XMMS_COLLECTION_TYPE_REFERENCE: Reference, |
| 26086 | * XMMS_COLLECTION_TYPE_UNIVERSE: Universe, |
| 26087 | * XMMS_COLLECTION_TYPE_UNION: Union, # <<<<<<<<<<<<<< |
| 26088 | * XMMS_COLLECTION_TYPE_INTERSECTION: Intersection, |
| 26089 | * XMMS_COLLECTION_TYPE_COMPLEMENT: Complement, |
| 26090 | */ |
| 26091 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_UNION); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1003; __pyx_clineno = __LINE__26091; goto __pyx_L1_error;} |
| 26092 | __Pyx_GOTREF(__pyx_t_2); |
| 26093 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Union); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1003; __pyx_clineno = __LINE__26093; goto __pyx_L1_error;} |
| 26094 | __Pyx_GOTREF(__pyx_t_3); |
| 26095 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26095; goto __pyx_L1_error;} |
| 26096 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26097 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26098 | |
| 26099 | /* "xmmsvalue.pyx":1004 |
| 26100 | * XMMS_COLLECTION_TYPE_UNIVERSE: Universe, |
| 26101 | * XMMS_COLLECTION_TYPE_UNION: Union, |
| 26102 | * XMMS_COLLECTION_TYPE_INTERSECTION: Intersection, # <<<<<<<<<<<<<< |
| 26103 | * XMMS_COLLECTION_TYPE_COMPLEMENT: Complement, |
| 26104 | * XMMS_COLLECTION_TYPE_HAS: Has, |
| 26105 | */ |
| 26106 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_INTERSECTION); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; __pyx_clineno = __LINE__26106; goto __pyx_L1_error;} |
| 26107 | __Pyx_GOTREF(__pyx_t_3); |
| 26108 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Intersection); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1004; __pyx_clineno = __LINE__26108; goto __pyx_L1_error;} |
| 26109 | __Pyx_GOTREF(__pyx_t_2); |
| 26110 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26110; goto __pyx_L1_error;} |
| 26111 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26112 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26113 | |
| 26114 | /* "xmmsvalue.pyx":1005 |
| 26115 | * XMMS_COLLECTION_TYPE_UNION: Union, |
| 26116 | * XMMS_COLLECTION_TYPE_INTERSECTION: Intersection, |
| 26117 | * XMMS_COLLECTION_TYPE_COMPLEMENT: Complement, # <<<<<<<<<<<<<< |
| 26118 | * XMMS_COLLECTION_TYPE_HAS: Has, |
| 26119 | * XMMS_COLLECTION_TYPE_EQUALS: Equals, |
| 26120 | */ |
| 26121 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_COMPLEMENT); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__26121; goto __pyx_L1_error;} |
| 26122 | __Pyx_GOTREF(__pyx_t_2); |
| 26123 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Complement); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1005; __pyx_clineno = __LINE__26123; goto __pyx_L1_error;} |
| 26124 | __Pyx_GOTREF(__pyx_t_3); |
| 26125 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26125; goto __pyx_L1_error;} |
| 26126 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26127 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26128 | |
| 26129 | /* "xmmsvalue.pyx":1006 |
| 26130 | * XMMS_COLLECTION_TYPE_INTERSECTION: Intersection, |
| 26131 | * XMMS_COLLECTION_TYPE_COMPLEMENT: Complement, |
| 26132 | * XMMS_COLLECTION_TYPE_HAS: Has, # <<<<<<<<<<<<<< |
| 26133 | * XMMS_COLLECTION_TYPE_EQUALS: Equals, |
| 26134 | * XMMS_COLLECTION_TYPE_NOTEQUAL: NotEqual, |
| 26135 | */ |
| 26136 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_HAS); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1006; __pyx_clineno = __LINE__26136; goto __pyx_L1_error;} |
| 26137 | __Pyx_GOTREF(__pyx_t_3); |
| 26138 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Has); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1006; __pyx_clineno = __LINE__26138; goto __pyx_L1_error;} |
| 26139 | __Pyx_GOTREF(__pyx_t_2); |
| 26140 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26140; goto __pyx_L1_error;} |
| 26141 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26142 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26143 | |
| 26144 | /* "xmmsvalue.pyx":1007 |
| 26145 | * XMMS_COLLECTION_TYPE_COMPLEMENT: Complement, |
| 26146 | * XMMS_COLLECTION_TYPE_HAS: Has, |
| 26147 | * XMMS_COLLECTION_TYPE_EQUALS: Equals, # <<<<<<<<<<<<<< |
| 26148 | * XMMS_COLLECTION_TYPE_NOTEQUAL: NotEqual, |
| 26149 | * XMMS_COLLECTION_TYPE_MATCH: Match, |
| 26150 | */ |
| 26151 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_EQUALS); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__26151; goto __pyx_L1_error;} |
| 26152 | __Pyx_GOTREF(__pyx_t_2); |
| 26153 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Equals); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1007; __pyx_clineno = __LINE__26153; goto __pyx_L1_error;} |
| 26154 | __Pyx_GOTREF(__pyx_t_3); |
| 26155 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26155; goto __pyx_L1_error;} |
| 26156 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26157 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26158 | |
| 26159 | /* "xmmsvalue.pyx":1008 |
| 26160 | * XMMS_COLLECTION_TYPE_HAS: Has, |
| 26161 | * XMMS_COLLECTION_TYPE_EQUALS: Equals, |
| 26162 | * XMMS_COLLECTION_TYPE_NOTEQUAL: NotEqual, # <<<<<<<<<<<<<< |
| 26163 | * XMMS_COLLECTION_TYPE_MATCH: Match, |
| 26164 | * XMMS_COLLECTION_TYPE_TOKEN: Token, |
| 26165 | */ |
| 26166 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_NOTEQUAL); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__26166; goto __pyx_L1_error;} |
| 26167 | __Pyx_GOTREF(__pyx_t_3); |
| 26168 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_NotEqual); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1008; __pyx_clineno = __LINE__26168; goto __pyx_L1_error;} |
| 26169 | __Pyx_GOTREF(__pyx_t_2); |
| 26170 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26170; goto __pyx_L1_error;} |
| 26171 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26172 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26173 | |
| 26174 | /* "xmmsvalue.pyx":1009 |
| 26175 | * XMMS_COLLECTION_TYPE_EQUALS: Equals, |
| 26176 | * XMMS_COLLECTION_TYPE_NOTEQUAL: NotEqual, |
| 26177 | * XMMS_COLLECTION_TYPE_MATCH: Match, # <<<<<<<<<<<<<< |
| 26178 | * XMMS_COLLECTION_TYPE_TOKEN: Token, |
| 26179 | * XMMS_COLLECTION_TYPE_SMALLER: Smaller, |
| 26180 | */ |
| 26181 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_MATCH); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__26181; goto __pyx_L1_error;} |
| 26182 | __Pyx_GOTREF(__pyx_t_2); |
| 26183 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Match); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1009; __pyx_clineno = __LINE__26183; goto __pyx_L1_error;} |
| 26184 | __Pyx_GOTREF(__pyx_t_3); |
| 26185 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26185; goto __pyx_L1_error;} |
| 26186 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26187 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26188 | |
| 26189 | /* "xmmsvalue.pyx":1010 |
| 26190 | * XMMS_COLLECTION_TYPE_NOTEQUAL: NotEqual, |
| 26191 | * XMMS_COLLECTION_TYPE_MATCH: Match, |
| 26192 | * XMMS_COLLECTION_TYPE_TOKEN: Token, # <<<<<<<<<<<<<< |
| 26193 | * XMMS_COLLECTION_TYPE_SMALLER: Smaller, |
| 26194 | * XMMS_COLLECTION_TYPE_SMALLEREQ: SmallerEqual, |
| 26195 | */ |
| 26196 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_TOKEN); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1010; __pyx_clineno = __LINE__26196; goto __pyx_L1_error;} |
| 26197 | __Pyx_GOTREF(__pyx_t_3); |
| 26198 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Token); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1010; __pyx_clineno = __LINE__26198; goto __pyx_L1_error;} |
| 26199 | __Pyx_GOTREF(__pyx_t_2); |
| 26200 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26200; goto __pyx_L1_error;} |
| 26201 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26202 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26203 | |
| 26204 | /* "xmmsvalue.pyx":1011 |
| 26205 | * XMMS_COLLECTION_TYPE_MATCH: Match, |
| 26206 | * XMMS_COLLECTION_TYPE_TOKEN: Token, |
| 26207 | * XMMS_COLLECTION_TYPE_SMALLER: Smaller, # <<<<<<<<<<<<<< |
| 26208 | * XMMS_COLLECTION_TYPE_SMALLEREQ: SmallerEqual, |
| 26209 | * XMMS_COLLECTION_TYPE_GREATER: Greater, |
| 26210 | */ |
| 26211 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_SMALLER); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__26211; goto __pyx_L1_error;} |
| 26212 | __Pyx_GOTREF(__pyx_t_2); |
| 26213 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Smaller); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1011; __pyx_clineno = __LINE__26213; goto __pyx_L1_error;} |
| 26214 | __Pyx_GOTREF(__pyx_t_3); |
| 26215 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26215; goto __pyx_L1_error;} |
| 26216 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26217 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26218 | |
| 26219 | /* "xmmsvalue.pyx":1012 |
| 26220 | * XMMS_COLLECTION_TYPE_TOKEN: Token, |
| 26221 | * XMMS_COLLECTION_TYPE_SMALLER: Smaller, |
| 26222 | * XMMS_COLLECTION_TYPE_SMALLEREQ: SmallerEqual, # <<<<<<<<<<<<<< |
| 26223 | * XMMS_COLLECTION_TYPE_GREATER: Greater, |
| 26224 | * XMMS_COLLECTION_TYPE_GREATEREQ: GreaterEqual, |
| 26225 | */ |
| 26226 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_SMALLEREQ); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1012; __pyx_clineno = __LINE__26226; goto __pyx_L1_error;} |
| 26227 | __Pyx_GOTREF(__pyx_t_3); |
| 26228 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_SmallerEqual); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1012; __pyx_clineno = __LINE__26228; goto __pyx_L1_error;} |
| 26229 | __Pyx_GOTREF(__pyx_t_2); |
| 26230 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26230; goto __pyx_L1_error;} |
| 26231 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26232 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26233 | |
| 26234 | /* "xmmsvalue.pyx":1013 |
| 26235 | * XMMS_COLLECTION_TYPE_SMALLER: Smaller, |
| 26236 | * XMMS_COLLECTION_TYPE_SMALLEREQ: SmallerEqual, |
| 26237 | * XMMS_COLLECTION_TYPE_GREATER: Greater, # <<<<<<<<<<<<<< |
| 26238 | * XMMS_COLLECTION_TYPE_GREATEREQ: GreaterEqual, |
| 26239 | * XMMS_COLLECTION_TYPE_ORDER: Order, |
| 26240 | */ |
| 26241 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_GREATER); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__26241; goto __pyx_L1_error;} |
| 26242 | __Pyx_GOTREF(__pyx_t_2); |
| 26243 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Greater); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1013; __pyx_clineno = __LINE__26243; goto __pyx_L1_error;} |
| 26244 | __Pyx_GOTREF(__pyx_t_3); |
| 26245 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26245; goto __pyx_L1_error;} |
| 26246 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26247 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26248 | |
| 26249 | /* "xmmsvalue.pyx":1014 |
| 26250 | * XMMS_COLLECTION_TYPE_SMALLEREQ: SmallerEqual, |
| 26251 | * XMMS_COLLECTION_TYPE_GREATER: Greater, |
| 26252 | * XMMS_COLLECTION_TYPE_GREATEREQ: GreaterEqual, # <<<<<<<<<<<<<< |
| 26253 | * XMMS_COLLECTION_TYPE_ORDER: Order, |
| 26254 | * XMMS_COLLECTION_TYPE_MEDIASET: Mediaset, |
| 26255 | */ |
| 26256 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_GREATEREQ); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__26256; goto __pyx_L1_error;} |
| 26257 | __Pyx_GOTREF(__pyx_t_3); |
| 26258 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_GreaterEqual); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1014; __pyx_clineno = __LINE__26258; goto __pyx_L1_error;} |
| 26259 | __Pyx_GOTREF(__pyx_t_2); |
| 26260 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26260; goto __pyx_L1_error;} |
| 26261 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26262 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26263 | |
| 26264 | /* "xmmsvalue.pyx":1015 |
| 26265 | * XMMS_COLLECTION_TYPE_GREATER: Greater, |
| 26266 | * XMMS_COLLECTION_TYPE_GREATEREQ: GreaterEqual, |
| 26267 | * XMMS_COLLECTION_TYPE_ORDER: Order, # <<<<<<<<<<<<<< |
| 26268 | * XMMS_COLLECTION_TYPE_MEDIASET: Mediaset, |
| 26269 | * XMMS_COLLECTION_TYPE_LIMIT: Limit, |
| 26270 | */ |
| 26271 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_ORDER); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1015; __pyx_clineno = __LINE__26271; goto __pyx_L1_error;} |
| 26272 | __Pyx_GOTREF(__pyx_t_2); |
| 26273 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Order); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1015; __pyx_clineno = __LINE__26273; goto __pyx_L1_error;} |
| 26274 | __Pyx_GOTREF(__pyx_t_3); |
| 26275 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26275; goto __pyx_L1_error;} |
| 26276 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26277 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26278 | |
| 26279 | /* "xmmsvalue.pyx":1016 |
| 26280 | * XMMS_COLLECTION_TYPE_GREATEREQ: GreaterEqual, |
| 26281 | * XMMS_COLLECTION_TYPE_ORDER: Order, |
| 26282 | * XMMS_COLLECTION_TYPE_MEDIASET: Mediaset, # <<<<<<<<<<<<<< |
| 26283 | * XMMS_COLLECTION_TYPE_LIMIT: Limit, |
| 26284 | * XMMS_COLLECTION_TYPE_IDLIST: IDList, |
| 26285 | */ |
| 26286 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_MEDIASET); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1016; __pyx_clineno = __LINE__26286; goto __pyx_L1_error;} |
| 26287 | __Pyx_GOTREF(__pyx_t_3); |
| 26288 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_Mediaset); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1016; __pyx_clineno = __LINE__26288; goto __pyx_L1_error;} |
| 26289 | __Pyx_GOTREF(__pyx_t_2); |
| 26290 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26290; goto __pyx_L1_error;} |
| 26291 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26292 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26293 | |
| 26294 | /* "xmmsvalue.pyx":1017 |
| 26295 | * XMMS_COLLECTION_TYPE_ORDER: Order, |
| 26296 | * XMMS_COLLECTION_TYPE_MEDIASET: Mediaset, |
| 26297 | * XMMS_COLLECTION_TYPE_LIMIT: Limit, # <<<<<<<<<<<<<< |
| 26298 | * XMMS_COLLECTION_TYPE_IDLIST: IDList, |
| 26299 | * } |
| 26300 | */ |
| 26301 | __pyx_t_2 = PyInt_FromLong(XMMS_COLLECTION_TYPE_LIMIT); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1017; __pyx_clineno = __LINE__26301; goto __pyx_L1_error;} |
| 26302 | __Pyx_GOTREF(__pyx_t_2); |
| 26303 | __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_Limit); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1017; __pyx_clineno = __LINE__26303; goto __pyx_L1_error;} |
| 26304 | __Pyx_GOTREF(__pyx_t_3); |
| 26305 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26305; goto __pyx_L1_error;} |
| 26306 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26307 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26308 | |
| 26309 | /* "xmmsvalue.pyx":1018 |
| 26310 | * XMMS_COLLECTION_TYPE_MEDIASET: Mediaset, |
| 26311 | * XMMS_COLLECTION_TYPE_LIMIT: Limit, |
| 26312 | * XMMS_COLLECTION_TYPE_IDLIST: IDList, # <<<<<<<<<<<<<< |
| 26313 | * } |
| 26314 | * cdef create_coll(xmmsv_t *coll): |
| 26315 | */ |
| 26316 | __pyx_t_3 = PyInt_FromLong(XMMS_COLLECTION_TYPE_IDLIST); if (unlikely(!__pyx_t_3)__builtin_expect(!!(!__pyx_t_3), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__26316; goto __pyx_L1_error;} |
| 26317 | __Pyx_GOTREF(__pyx_t_3); |
| 26318 | __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_IDList); if (unlikely(!__pyx_t_2)__builtin_expect(!!(!__pyx_t_2), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1018; __pyx_clineno = __LINE__26318; goto __pyx_L1_error;} |
| 26319 | __Pyx_GOTREF(__pyx_t_2); |
| 26320 | if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1000; __pyx_clineno = __LINE__26320; goto __pyx_L1_error;} |
| 26321 | __Pyx_DECREF(__pyx_t_3)do { if ( --((PyObject*)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_3)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while ( 0); __pyx_t_3 = 0; |
| 26322 | __Pyx_DECREF(__pyx_t_2)do { if ( --((PyObject*)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_2)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while ( 0); __pyx_t_2 = 0; |
| 26323 | __Pyx_XGOTREF(__pyx_v_9xmmsvalue__collclass); |
| 26324 | __Pyx_DECREF_SET(__pyx_v_9xmmsvalue__collclass, __pyx_t_1)do { PyObject *tmp = (PyObject *) __pyx_v_9xmmsvalue__collclass ; __pyx_v_9xmmsvalue__collclass = __pyx_t_1; do { if ( --((PyObject *)(tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 26325 | __Pyx_GIVEREF(__pyx_t_1); |
| 26326 | __pyx_t_1 = 0; |
| 26327 | |
| 26328 | /* "xmmsvalue.pyx":1049 |
| 26329 | * |
| 26330 | * |
| 26331 | * def coll_parse(pattern): # <<<<<<<<<<<<<< |
| 26332 | * cdef xmmsv_t *coll = NULL |
| 26333 | * |
| 26334 | */ |
| 26335 | __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_9xmmsvalue_1coll_parse, NULL((void*)0), __pyx_n_s_xmmsvalue); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; __pyx_clineno = __LINE__26335; goto __pyx_L1_error;} |
| 26336 | __Pyx_GOTREF(__pyx_t_1); |
| 26337 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_coll_parse, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1049; __pyx_clineno = __LINE__26337; goto __pyx_L1_error;} |
| 26338 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 26339 | |
| 26340 | /* "xmmsvalue.pyx":1 |
| 26341 | * """ # <<<<<<<<<<<<<< |
| 26342 | * Python bindings for xmmsv manipulations. |
| 26343 | * """ |
| 26344 | */ |
| 26345 | __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)__builtin_expect(!!(!__pyx_t_1), 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__26345; goto __pyx_L1_error;} |
| 26346 | __Pyx_GOTREF(__pyx_t_1); |
| 26347 | if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__26347; goto __pyx_L1_error;} |
| 26348 | __Pyx_DECREF(__pyx_t_1)do { if ( --((PyObject*)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_t_1)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while ( 0); __pyx_t_1 = 0; |
| 26349 | |
| 26350 | /* "xmmsutils.pxd":7 |
| 26351 | * return PyUnicode_DecodeUTF8(s, strlen(s), "replace") |
| 26352 | * |
| 26353 | * cdef inline from_unicode(object o): # <<<<<<<<<<<<<< |
| 26354 | * if isinstance(o, unicode): |
| 26355 | * return PyUnicode_AsUTF8String(o) |
| 26356 | */ |
| 26357 | goto __pyx_L0; |
| 26358 | __pyx_L1_error:; |
| 26359 | __Pyx_XDECREF(__pyx_t_1)do { if ((__pyx_t_1) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_1))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_1)))); } while (0); } while (0); |
| 26360 | __Pyx_XDECREF(__pyx_t_2)do { if ((__pyx_t_2) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_2))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_2)))); } while (0); } while (0); |
| 26361 | __Pyx_XDECREF(__pyx_t_3)do { if ((__pyx_t_3) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_3))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_3)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_3)))); } while (0); } while (0); |
| 26362 | __Pyx_XDECREF(__pyx_t_4)do { if ((__pyx_t_4) == ((void*)0)) ; else do { if ( --((PyObject *)(__pyx_t_4))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(__pyx_t_4)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(__pyx_t_4)))); } while (0); } while (0); |
| 26363 | if (__pyx_m) { |
| 26364 | __Pyx_AddTraceback("init xmmsvalue", __pyx_clineno, __pyx_lineno, __pyx_filename); |
| 26365 | Py_DECREF(__pyx_m)do { if ( --((PyObject*)(__pyx_m))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(__pyx_m)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(__pyx_m)))); } while (0); __pyx_m = 0; |
| 26366 | } else if (!PyErr_Occurred()) { |
| 26367 | PyErr_SetString(PyExc_ImportError, "init xmmsvalue"); |
| 26368 | } |
| 26369 | __pyx_L0:; |
| 26370 | __Pyx_RefNannyFinishContext(); |
| 26371 | #if PY_MAJOR_VERSION2 < 3 |
| 26372 | return; |
| 26373 | #else |
| 26374 | return __pyx_m; |
| 26375 | #endif |
| 26376 | } |
| 26377 | |
| 26378 | /* Runtime support code */ |
| 26379 | #if CYTHON_REFNANNY0 |
| 26380 | static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) { |
| 26381 | PyObject *m = NULL((void*)0), *p = NULL((void*)0); |
| 26382 | void *r = NULL((void*)0); |
| 26383 | m = PyImport_ImportModule((char *)modname); |
| 26384 | if (!m) goto end; |
| 26385 | p = PyObject_GetAttrString(m, (char *)"RefNannyAPI"); |
| 26386 | if (!p) goto end; |
| 26387 | r = PyLong_AsVoidPtr(p); |
| 26388 | end: |
| 26389 | Py_XDECREF(p)do { if ((p) == ((void*)0)) ; else do { if ( --((PyObject*)(p ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( p)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(p )))); } while (0); } while (0); |
| 26390 | Py_XDECREF(m)do { if ((m) == ((void*)0)) ; else do { if ( --((PyObject*)(m ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( m)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(m )))); } while (0); } while (0); |
| 26391 | return (__Pyx_RefNannyAPIStruct *)r; |
| 26392 | } |
| 26393 | #endif /* CYTHON_REFNANNY */ |
| 26394 | |
| 26395 | static PyObject *__Pyx_GetBuiltinName(PyObject *name) { |
| 26396 | PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name); |
| 26397 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) { |
| 26398 | PyErr_Format(PyExc_NameError, |
| 26399 | #if PY_MAJOR_VERSION2 >= 3 |
| 26400 | "name '%U' is not defined", name); |
| 26401 | #else |
| 26402 | "name '%.200s' is not defined", PyString_AS_STRING(name)(((PyStringObject *)(name))->ob_sval)); |
| 26403 | #endif |
| 26404 | } |
| 26405 | return result; |
| 26406 | } |
| 26407 | |
| 26408 | static CYTHON_INLINE__inline__ int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) { |
| 26409 | if (unlikely(!type)__builtin_expect(!!(!type), 0)) { |
| 26410 | PyErr_SetString(PyExc_SystemError, "Missing type object"); |
| 26411 | return 0; |
| 26412 | } |
| 26413 | if (likely(PyObject_TypeCheck(obj, type))__builtin_expect(!!(((((PyObject*)(obj))->ob_type) == (type ) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (type )))), 1)) |
| 26414 | return 1; |
| 26415 | PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s", |
| 26416 | Py_TYPE(obj)(((PyObject*)(obj))->ob_type)->tp_name, type->tp_name); |
| 26417 | return 0; |
| 26418 | } |
| 26419 | |
| 26420 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26421 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) { |
| 26422 | PyObject *result; |
| 26423 | ternaryfunc call = func->ob_type->tp_call; |
| 26424 | if (unlikely(!call)__builtin_expect(!!(!call), 0)) |
| 26425 | return PyObject_Call(func, arg, kw); |
| 26426 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 26427 | if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))__builtin_expect(!!(((++((_PyThreadState_Current)->recursion_depth ) > _Py_CheckRecursionLimit) && _Py_CheckRecursiveCall ((char*)" while calling a Python object"))), 0)) |
| 26428 | return NULL((void*)0); |
| 26429 | #endif |
| 26430 | result = (*call)(func, arg, kw); |
| 26431 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 26432 | Py_LeaveRecursiveCall()(--(_PyThreadState_Current)->recursion_depth); |
| 26433 | #endif |
| 26434 | if (unlikely(!result)__builtin_expect(!!(!result), 0) && unlikely(!PyErr_Occurred())__builtin_expect(!!(!PyErr_Occurred()), 0)) { |
| 26435 | PyErr_SetString( |
| 26436 | PyExc_SystemError, |
| 26437 | "NULL result without error in PyObject_Call"); |
| 26438 | } |
| 26439 | return result; |
| 26440 | } |
| 26441 | #endif |
| 26442 | |
| 26443 | static CYTHON_INLINE__inline__ void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) { |
| 26444 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26445 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 26446 | *type = tstate->exc_type; |
| 26447 | *value = tstate->exc_value; |
| 26448 | *tb = tstate->exc_traceback; |
| 26449 | Py_XINCREF(*type)do { if ((*type) == ((void*)0)) ; else ( ((PyObject*)(*type)) ->ob_refcnt++); } while (0); |
| 26450 | Py_XINCREF(*value)do { if ((*value) == ((void*)0)) ; else ( ((PyObject*)(*value ))->ob_refcnt++); } while (0); |
| 26451 | Py_XINCREF(*tb)do { if ((*tb) == ((void*)0)) ; else ( ((PyObject*)(*tb))-> ob_refcnt++); } while (0); |
| 26452 | #else |
| 26453 | PyErr_GetExcInfo(type, value, tb); |
| 26454 | #endif |
| 26455 | } |
| 26456 | static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb) { |
| 26457 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26458 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
| 26459 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 26460 | tmp_type = tstate->exc_type; |
| 26461 | tmp_value = tstate->exc_value; |
| 26462 | tmp_tb = tstate->exc_traceback; |
| 26463 | tstate->exc_type = type; |
| 26464 | tstate->exc_value = value; |
| 26465 | tstate->exc_traceback = tb; |
| 26466 | Py_XDECREF(tmp_type)do { if ((tmp_type) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_type)))); } while (0); } while (0); |
| 26467 | Py_XDECREF(tmp_value)do { if ((tmp_value) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_value))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(tmp_value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_value)))); } while (0); } while (0); |
| 26468 | Py_XDECREF(tmp_tb)do { if ((tmp_tb) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_tb)))); } while (0); } while (0); |
| 26469 | #else |
| 26470 | PyErr_SetExcInfo(type, value, tb); |
| 26471 | #endif |
| 26472 | } |
| 26473 | |
| 26474 | static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { |
| 26475 | PyObject *local_type, *local_value, *local_tb; |
| 26476 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26477 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
| 26478 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 26479 | local_type = tstate->curexc_type; |
| 26480 | local_value = tstate->curexc_value; |
| 26481 | local_tb = tstate->curexc_traceback; |
| 26482 | tstate->curexc_type = 0; |
| 26483 | tstate->curexc_value = 0; |
| 26484 | tstate->curexc_traceback = 0; |
| 26485 | #else |
| 26486 | PyErr_Fetch(&local_type, &local_value, &local_tb); |
| 26487 | #endif |
| 26488 | PyErr_NormalizeException(&local_type, &local_value, &local_tb); |
| 26489 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26490 | if (unlikely(tstate->curexc_type)__builtin_expect(!!(tstate->curexc_type), 0)) |
| 26491 | #else |
| 26492 | if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) |
| 26493 | #endif |
| 26494 | goto bad; |
| 26495 | #if PY_MAJOR_VERSION2 >= 3 |
| 26496 | if (local_tb) { |
| 26497 | if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)__builtin_expect(!!(PyException_SetTraceback(local_value, local_tb ) < 0), 0)) |
| 26498 | goto bad; |
| 26499 | } |
| 26500 | #endif |
| 26501 | Py_XINCREF(local_tb)do { if ((local_tb) == ((void*)0)) ; else ( ((PyObject*)(local_tb ))->ob_refcnt++); } while (0); |
| 26502 | Py_XINCREF(local_type)do { if ((local_type) == ((void*)0)) ; else ( ((PyObject*)(local_type ))->ob_refcnt++); } while (0); |
| 26503 | Py_XINCREF(local_value)do { if ((local_value) == ((void*)0)) ; else ( ((PyObject*)(local_value ))->ob_refcnt++); } while (0); |
| 26504 | *type = local_type; |
| 26505 | *value = local_value; |
| 26506 | *tb = local_tb; |
| 26507 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26508 | tmp_type = tstate->exc_type; |
| 26509 | tmp_value = tstate->exc_value; |
| 26510 | tmp_tb = tstate->exc_traceback; |
| 26511 | tstate->exc_type = local_type; |
| 26512 | tstate->exc_value = local_value; |
| 26513 | tstate->exc_traceback = local_tb; |
| 26514 | Py_XDECREF(tmp_type)do { if ((tmp_type) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_type)))); } while (0); } while (0); |
| 26515 | Py_XDECREF(tmp_value)do { if ((tmp_value) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_value))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(tmp_value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_value)))); } while (0); } while (0); |
| 26516 | Py_XDECREF(tmp_tb)do { if ((tmp_tb) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_tb)))); } while (0); } while (0); |
| 26517 | #else |
| 26518 | PyErr_SetExcInfo(local_type, local_value, local_tb); |
| 26519 | #endif |
| 26520 | return 0; |
| 26521 | bad: |
| 26522 | *type = 0; |
| 26523 | *value = 0; |
| 26524 | *tb = 0; |
| 26525 | Py_XDECREF(local_type)do { if ((local_type) == ((void*)0)) ; else do { if ( --((PyObject *)(local_type))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(local_type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(local_type)))); } while (0); } while (0); |
| 26526 | Py_XDECREF(local_value)do { if ((local_value) == ((void*)0)) ; else do { if ( --((PyObject *)(local_value))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(local_value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(local_value)))); } while (0); } while (0); |
| 26527 | Py_XDECREF(local_tb)do { if ((local_tb) == ((void*)0)) ; else do { if ( --((PyObject *)(local_tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(local_tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(local_tb)))); } while (0); } while (0); |
| 26528 | return -1; |
| 26529 | } |
| 26530 | |
| 26531 | static CYTHON_INLINE__inline__ void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) { |
| 26532 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26533 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
| 26534 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 26535 | tmp_type = tstate->curexc_type; |
| 26536 | tmp_value = tstate->curexc_value; |
| 26537 | tmp_tb = tstate->curexc_traceback; |
| 26538 | tstate->curexc_type = type; |
| 26539 | tstate->curexc_value = value; |
| 26540 | tstate->curexc_traceback = tb; |
| 26541 | Py_XDECREF(tmp_type)do { if ((tmp_type) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_type)))); } while (0); } while (0); |
| 26542 | Py_XDECREF(tmp_value)do { if ((tmp_value) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_value))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(tmp_value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_value)))); } while (0); } while (0); |
| 26543 | Py_XDECREF(tmp_tb)do { if ((tmp_tb) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_tb)))); } while (0); } while (0); |
| 26544 | #else |
| 26545 | PyErr_Restore(type, value, tb); |
| 26546 | #endif |
| 26547 | } |
| 26548 | static CYTHON_INLINE__inline__ void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) { |
| 26549 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26550 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 26551 | *type = tstate->curexc_type; |
| 26552 | *value = tstate->curexc_value; |
| 26553 | *tb = tstate->curexc_traceback; |
| 26554 | tstate->curexc_type = 0; |
| 26555 | tstate->curexc_value = 0; |
| 26556 | tstate->curexc_traceback = 0; |
| 26557 | #else |
| 26558 | PyErr_Fetch(type, value, tb); |
| 26559 | #endif |
| 26560 | } |
| 26561 | |
| 26562 | #if PY_MAJOR_VERSION2 < 3 |
| 26563 | static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, |
| 26564 | CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *cause) { |
| 26565 | Py_XINCREF(type)do { if ((type) == ((void*)0)) ; else ( ((PyObject*)(type))-> ob_refcnt++); } while (0); |
| 26566 | if (!value || value == Py_None(&_Py_NoneStruct)) |
| 26567 | value = NULL((void*)0); |
| 26568 | else |
| 26569 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 26570 | if (!tb || tb == Py_None(&_Py_NoneStruct)) |
| 26571 | tb = NULL((void*)0); |
| 26572 | else { |
| 26573 | Py_INCREF(tb)( ((PyObject*)(tb))->ob_refcnt++); |
| 26574 | if (!PyTraceBack_Check(tb)((((PyObject*)(tb))->ob_type) == &PyTraceBack_Type)) { |
| 26575 | PyErr_SetString(PyExc_TypeError, |
| 26576 | "raise: arg 3 must be a traceback or None"); |
| 26577 | goto raise_error; |
| 26578 | } |
| 26579 | } |
| 26580 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
| 26581 | if (PyClass_Check(type)((type)->ob_type == &PyClass_Type)) { |
| 26582 | #else |
| 26583 | if (PyType_Check(type)((((((PyObject*)(type))->ob_type))->tp_flags & ((1L <<31))) != 0)) { |
| 26584 | #endif |
| 26585 | #if CYTHON_COMPILING_IN_PYPY0 |
| 26586 | if (!value) { |
| 26587 | Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 26588 | value = Py_None(&_Py_NoneStruct); |
| 26589 | } |
| 26590 | #endif |
| 26591 | PyErr_NormalizeException(&type, &value, &tb); |
| 26592 | } else { |
| 26593 | if (value) { |
| 26594 | PyErr_SetString(PyExc_TypeError, |
| 26595 | "instance exception may not have a separate value"); |
| 26596 | goto raise_error; |
| 26597 | } |
| 26598 | value = type; |
| 26599 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
| 26600 | if (PyInstance_Check(type)((type)->ob_type == &PyInstance_Type)) { |
| 26601 | type = (PyObject*) ((PyInstanceObject*)type)->in_class; |
| 26602 | Py_INCREF(type)( ((PyObject*)(type))->ob_refcnt++); |
| 26603 | } else { |
| 26604 | type = 0; |
| 26605 | PyErr_SetString(PyExc_TypeError, |
| 26606 | "raise: exception must be an old-style class or instance"); |
| 26607 | goto raise_error; |
| 26608 | } |
| 26609 | #else |
| 26610 | type = (PyObject*) Py_TYPE(type)(((PyObject*)(type))->ob_type); |
| 26611 | Py_INCREF(type)( ((PyObject*)(type))->ob_refcnt++); |
| 26612 | if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) { |
| 26613 | PyErr_SetString(PyExc_TypeError, |
| 26614 | "raise: exception class must be a subclass of BaseException"); |
| 26615 | goto raise_error; |
| 26616 | } |
| 26617 | #endif |
| 26618 | } |
| 26619 | __Pyx_ErrRestore(type, value, tb); |
| 26620 | return; |
| 26621 | raise_error: |
| 26622 | Py_XDECREF(value)do { if ((value) == ((void*)0)) ; else do { if ( --((PyObject *)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(value)))); } while (0); } while (0); |
| 26623 | Py_XDECREF(type)do { if ((type) == ((void*)0)) ; else do { if ( --((PyObject* )(type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(type)))); } while (0); } while (0); |
| 26624 | Py_XDECREF(tb)do { if ((tb) == ((void*)0)) ; else do { if ( --((PyObject*)( tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject * )(tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(tb)))); } while (0); } while (0); |
| 26625 | return; |
| 26626 | } |
| 26627 | #else /* Python 3+ */ |
| 26628 | static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) { |
| 26629 | PyObject* owned_instance = NULL((void*)0); |
| 26630 | if (tb == Py_None(&_Py_NoneStruct)) { |
| 26631 | tb = 0; |
| 26632 | } else if (tb && !PyTraceBack_Check(tb)((((PyObject*)(tb))->ob_type) == &PyTraceBack_Type)) { |
| 26633 | PyErr_SetString(PyExc_TypeError, |
| 26634 | "raise: arg 3 must be a traceback or None"); |
| 26635 | goto bad; |
| 26636 | } |
| 26637 | if (value == Py_None(&_Py_NoneStruct)) |
| 26638 | value = 0; |
| 26639 | if (PyExceptionInstance_Check(type)((((type))->ob_type == &PyInstance_Type) || ((((type)-> ob_type)->tp_flags & ((1L<<30))) != 0))) { |
| 26640 | if (value) { |
| 26641 | PyErr_SetString(PyExc_TypeError, |
| 26642 | "instance exception may not have a separate value"); |
| 26643 | goto bad; |
| 26644 | } |
| 26645 | value = type; |
| 26646 | type = (PyObject*) Py_TYPE(value)(((PyObject*)(value))->ob_type); |
| 26647 | } else if (PyExceptionClass_Check(type)((((type))->ob_type == &PyClass_Type) || (((((((PyObject *)((type)))->ob_type))->tp_flags & ((1L<<31)) ) != 0) && ((((PyTypeObject*)(type))->tp_flags & ((1L<<30))) != 0)))) { |
| 26648 | PyObject *instance_class = NULL((void*)0); |
| 26649 | if (value && PyExceptionInstance_Check(value)((((value))->ob_type == &PyInstance_Type) || ((((value )->ob_type)->tp_flags & ((1L<<30))) != 0))) { |
| 26650 | instance_class = (PyObject*) Py_TYPE(value)(((PyObject*)(value))->ob_type); |
| 26651 | if (instance_class != type) { |
| 26652 | if (PyObject_IsSubclass(instance_class, type)) { |
| 26653 | type = instance_class; |
| 26654 | } else { |
| 26655 | instance_class = NULL((void*)0); |
| 26656 | } |
| 26657 | } |
| 26658 | } |
| 26659 | if (!instance_class) { |
| 26660 | PyObject *args; |
| 26661 | if (!value) |
| 26662 | args = PyTuple_New(0); |
| 26663 | else if (PyTuple_Check(value)((((((PyObject*)(value))->ob_type))->tp_flags & ((1L <<26))) != 0)) { |
| 26664 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 26665 | args = value; |
| 26666 | } else |
| 26667 | args = PyTuple_Pack(1, value); |
| 26668 | if (!args) |
| 26669 | goto bad; |
| 26670 | owned_instance = PyObject_Call(type, args, NULL((void*)0)); |
| 26671 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
| 26672 | if (!owned_instance) |
| 26673 | goto bad; |
| 26674 | value = owned_instance; |
| 26675 | if (!PyExceptionInstance_Check(value)((((value))->ob_type == &PyInstance_Type) || ((((value )->ob_type)->tp_flags & ((1L<<30))) != 0))) { |
| 26676 | PyErr_Format(PyExc_TypeError, |
| 26677 | "calling %R should have returned an instance of " |
| 26678 | "BaseException, not %R", |
| 26679 | type, Py_TYPE(value)(((PyObject*)(value))->ob_type)); |
| 26680 | goto bad; |
| 26681 | } |
| 26682 | } |
| 26683 | } else { |
| 26684 | PyErr_SetString(PyExc_TypeError, |
| 26685 | "raise: exception class must be a subclass of BaseException"); |
| 26686 | goto bad; |
| 26687 | } |
| 26688 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03030000 |
| 26689 | if (cause) { |
| 26690 | #else |
| 26691 | if (cause && cause != Py_None(&_Py_NoneStruct)) { |
| 26692 | #endif |
| 26693 | PyObject *fixed_cause; |
| 26694 | if (cause == Py_None(&_Py_NoneStruct)) { |
| 26695 | fixed_cause = NULL((void*)0); |
| 26696 | } else if (PyExceptionClass_Check(cause)((((cause))->ob_type == &PyClass_Type) || (((((((PyObject *)((cause)))->ob_type))->tp_flags & ((1L<<31) )) != 0) && ((((PyTypeObject*)(cause))->tp_flags & ((1L<<30))) != 0)))) { |
| 26697 | fixed_cause = PyObject_CallObject(cause, NULL((void*)0)); |
| 26698 | if (fixed_cause == NULL((void*)0)) |
| 26699 | goto bad; |
| 26700 | } else if (PyExceptionInstance_Check(cause)((((cause))->ob_type == &PyInstance_Type) || ((((cause )->ob_type)->tp_flags & ((1L<<30))) != 0))) { |
| 26701 | fixed_cause = cause; |
| 26702 | Py_INCREF(fixed_cause)( ((PyObject*)(fixed_cause))->ob_refcnt++); |
| 26703 | } else { |
| 26704 | PyErr_SetString(PyExc_TypeError, |
| 26705 | "exception causes must derive from " |
| 26706 | "BaseException"); |
| 26707 | goto bad; |
| 26708 | } |
| 26709 | PyException_SetCause(value, fixed_cause); |
| 26710 | } |
| 26711 | PyErr_SetObject(type, value); |
| 26712 | if (tb) { |
| 26713 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 26714 | PyObject* tmp_tb = tstate->curexc_traceback; |
| 26715 | if (tb != tmp_tb) { |
| 26716 | Py_INCREF(tb)( ((PyObject*)(tb))->ob_refcnt++); |
| 26717 | tstate->curexc_traceback = tb; |
| 26718 | Py_XDECREF(tmp_tb)do { if ((tmp_tb) == ((void*)0)) ; else do { if ( --((PyObject *)(tmp_tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp_tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp_tb)))); } while (0); } while (0); |
| 26719 | } |
| 26720 | } |
| 26721 | bad: |
| 26722 | Py_XDECREF(owned_instance)do { if ((owned_instance) == ((void*)0)) ; else do { if ( --( (PyObject*)(owned_instance))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(owned_instance)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(owned_instance)))); } while (0); } while (0); |
| 26723 | return; |
| 26724 | } |
| 26725 | #endif |
| 26726 | |
| 26727 | static void __Pyx_RaiseArgtupleInvalid( |
| 26728 | const char* func_name, |
| 26729 | int exact, |
| 26730 | Py_ssize_t num_min, |
| 26731 | Py_ssize_t num_max, |
| 26732 | Py_ssize_t num_found) |
| 26733 | { |
| 26734 | Py_ssize_t num_expected; |
| 26735 | const char *more_or_less; |
| 26736 | if (num_found < num_min) { |
| 26737 | num_expected = num_min; |
| 26738 | more_or_less = "at least"; |
| 26739 | } else { |
| 26740 | num_expected = num_max; |
| 26741 | more_or_less = "at most"; |
| 26742 | } |
| 26743 | if (exact) { |
| 26744 | more_or_less = "exactly"; |
| 26745 | } |
| 26746 | PyErr_Format(PyExc_TypeError, |
| 26747 | "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T"z" "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T"z" "d given)", |
| 26748 | func_name, more_or_less, num_expected, |
| 26749 | (num_expected == 1) ? "" : "s", num_found); |
| 26750 | } |
| 26751 | |
| 26752 | static CYTHON_INLINE__inline__ int __Pyx_CheckKeywordStrings( |
| 26753 | PyObject *kwdict, |
| 26754 | const char* function_name, |
| 26755 | int kw_allowed) |
| 26756 | { |
| 26757 | PyObject* key = 0; |
| 26758 | Py_ssize_t pos = 0; |
| 26759 | #if CPYTHON_COMPILING_IN_PYPY |
| 26760 | if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0)) |
| 26761 | goto invalid_keyword; |
| 26762 | return 1; |
| 26763 | #else |
| 26764 | while (PyDict_Next(kwdict, &pos, &key, 0)) { |
| 26765 | #if PY_MAJOR_VERSION2 < 3 |
| 26766 | if (unlikely(!PyString_CheckExact(key))__builtin_expect(!!(!((((PyObject*)(key))->ob_type) == & PyString_Type)), 0) && unlikely(!PyString_Check(key))__builtin_expect(!!(!((((((PyObject*)(key))->ob_type))-> tp_flags & ((1L<<27))) != 0)), 0)) |
| 26767 | #endif |
| 26768 | if (unlikely(!PyUnicode_Check(key))__builtin_expect(!!(!((((((PyObject*)(key))->ob_type))-> tp_flags & ((1L<<28))) != 0)), 0)) |
| 26769 | goto invalid_keyword_type; |
| 26770 | } |
| 26771 | if ((!kw_allowed) && unlikely(key)__builtin_expect(!!(key), 0)) |
| 26772 | goto invalid_keyword; |
| 26773 | return 1; |
| 26774 | invalid_keyword_type: |
| 26775 | PyErr_Format(PyExc_TypeError, |
| 26776 | "%.200s() keywords must be strings", function_name); |
| 26777 | return 0; |
| 26778 | #endif |
| 26779 | invalid_keyword: |
| 26780 | PyErr_Format(PyExc_TypeError, |
| 26781 | #if PY_MAJOR_VERSION2 < 3 |
| 26782 | "%.200s() got an unexpected keyword argument '%.200s'", |
| 26783 | function_name, PyString_AsString(key)); |
| 26784 | #else |
| 26785 | "%s() got an unexpected keyword argument '%U'", |
| 26786 | function_name, key); |
| 26787 | #endif |
| 26788 | return 0; |
| 26789 | } |
| 26790 | |
| 26791 | static void __Pyx_RaiseDoubleKeywordsError( |
| 26792 | const char* func_name, |
| 26793 | PyObject* kw_name) |
| 26794 | { |
| 26795 | PyErr_Format(PyExc_TypeError, |
| 26796 | #if PY_MAJOR_VERSION2 >= 3 |
| 26797 | "%s() got multiple values for keyword argument '%U'", func_name, kw_name); |
| 26798 | #else |
| 26799 | "%s() got multiple values for keyword argument '%s'", func_name, |
| 26800 | PyString_AsString(kw_name)); |
| 26801 | #endif |
| 26802 | } |
| 26803 | |
| 26804 | static int __Pyx_ParseOptionalKeywords( |
| 26805 | PyObject *kwds, |
| 26806 | PyObject **argnames[], |
| 26807 | PyObject *kwds2, |
| 26808 | PyObject *values[], |
| 26809 | Py_ssize_t num_pos_args, |
| 26810 | const char* function_name) |
| 26811 | { |
| 26812 | PyObject *key = 0, *value = 0; |
| 26813 | Py_ssize_t pos = 0; |
| 26814 | PyObject*** name; |
| 26815 | PyObject*** first_kw_arg = argnames + num_pos_args; |
| 26816 | while (PyDict_Next(kwds, &pos, &key, &value)) { |
| 26817 | name = first_kw_arg; |
| 26818 | while (*name && (**name != key)) name++; |
| 26819 | if (*name) { |
| 26820 | values[name-argnames] = value; |
| 26821 | continue; |
| 26822 | } |
| 26823 | name = first_kw_arg; |
| 26824 | #if PY_MAJOR_VERSION2 < 3 |
| 26825 | if (likely(PyString_CheckExact(key))__builtin_expect(!!(((((PyObject*)(key))->ob_type) == & PyString_Type)), 1) || likely(PyString_Check(key))__builtin_expect(!!(((((((PyObject*)(key))->ob_type))-> tp_flags & ((1L<<27))) != 0)), 1)) { |
| 26826 | while (*name) { |
| 26827 | if ((CYTHON_COMPILING_IN_PYPY0 || PyString_GET_SIZE(**name)(((PyVarObject*)(**name))->ob_size) == PyString_GET_SIZE(key)(((PyVarObject*)(key))->ob_size)) |
| 26828 | && _PyString_Eq(**name, key)) { |
| 26829 | values[name-argnames] = value; |
| 26830 | break; |
| 26831 | } |
| 26832 | name++; |
| 26833 | } |
| 26834 | if (*name) continue; |
| 26835 | else { |
| 26836 | PyObject*** argname = argnames; |
| 26837 | while (argname != first_kw_arg) { |
| 26838 | if ((**argname == key) || ( |
| 26839 | (CYTHON_COMPILING_IN_PYPY0 || PyString_GET_SIZE(**argname)(((PyVarObject*)(**argname))->ob_size) == PyString_GET_SIZE(key)(((PyVarObject*)(key))->ob_size)) |
| 26840 | && _PyString_Eq(**argname, key))) { |
| 26841 | goto arg_passed_twice; |
| 26842 | } |
| 26843 | argname++; |
| 26844 | } |
| 26845 | } |
| 26846 | } else |
| 26847 | #endif |
| 26848 | if (likely(PyUnicode_Check(key))__builtin_expect(!!(((((((PyObject*)(key))->ob_type))-> tp_flags & ((1L<<28))) != 0)), 1)) { |
| 26849 | while (*name) { |
| 26850 | int cmp = (**name == key) ? 0 : |
| 26851 | #if !CYTHON_COMPILING_IN_PYPY0 && PY_MAJOR_VERSION2 >= 3 |
| 26852 | (PyUnicode_GET_SIZE(**name)(((PyUnicodeObject *)(**name))->length) != PyUnicode_GET_SIZE(key)(((PyUnicodeObject *)(key))->length)) ? 1 : |
| 26853 | #endif |
| 26854 | PyUnicode_ComparePyUnicodeUCS4_Compare(**name, key); |
| 26855 | if (cmp < 0 && unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) goto bad; |
| 26856 | if (cmp == 0) { |
| 26857 | values[name-argnames] = value; |
| 26858 | break; |
| 26859 | } |
| 26860 | name++; |
| 26861 | } |
| 26862 | if (*name) continue; |
| 26863 | else { |
| 26864 | PyObject*** argname = argnames; |
| 26865 | while (argname != first_kw_arg) { |
| 26866 | int cmp = (**argname == key) ? 0 : |
| 26867 | #if !CYTHON_COMPILING_IN_PYPY0 && PY_MAJOR_VERSION2 >= 3 |
| 26868 | (PyUnicode_GET_SIZE(**argname)(((PyUnicodeObject *)(**argname))->length) != PyUnicode_GET_SIZE(key)(((PyUnicodeObject *)(key))->length)) ? 1 : |
| 26869 | #endif |
| 26870 | PyUnicode_ComparePyUnicodeUCS4_Compare(**argname, key); |
| 26871 | if (cmp < 0 && unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) goto bad; |
| 26872 | if (cmp == 0) goto arg_passed_twice; |
| 26873 | argname++; |
| 26874 | } |
| 26875 | } |
| 26876 | } else |
| 26877 | goto invalid_keyword_type; |
| 26878 | if (kwds2) { |
| 26879 | if (unlikely(PyDict_SetItem(kwds2, key, value))__builtin_expect(!!(PyDict_SetItem(kwds2, key, value)), 0)) goto bad; |
| 26880 | } else { |
| 26881 | goto invalid_keyword; |
| 26882 | } |
| 26883 | } |
| 26884 | return 0; |
| 26885 | arg_passed_twice: |
| 26886 | __Pyx_RaiseDoubleKeywordsError(function_name, key); |
| 26887 | goto bad; |
| 26888 | invalid_keyword_type: |
| 26889 | PyErr_Format(PyExc_TypeError, |
| 26890 | "%.200s() keywords must be strings", function_name); |
| 26891 | goto bad; |
| 26892 | invalid_keyword: |
| 26893 | PyErr_Format(PyExc_TypeError, |
| 26894 | #if PY_MAJOR_VERSION2 < 3 |
| 26895 | "%.200s() got an unexpected keyword argument '%.200s'", |
| 26896 | function_name, PyString_AsString(key)); |
| 26897 | #else |
| 26898 | "%s() got an unexpected keyword argument '%U'", |
| 26899 | function_name, key); |
| 26900 | #endif |
| 26901 | bad: |
| 26902 | return -1; |
| 26903 | } |
| 26904 | |
| 26905 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetModuleGlobalName(PyObject *name) { |
| 26906 | PyObject *result; |
| 26907 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26908 | result = PyDict_GetItem(__pyx_d, name); |
| 26909 | if (result) { |
| 26910 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
| 26911 | } else { |
| 26912 | #else |
| 26913 | result = PyObject_GetItem(__pyx_d, name); |
| 26914 | if (!result) { |
| 26915 | PyErr_Clear(); |
| 26916 | #endif |
| 26917 | result = __Pyx_GetBuiltinName(name); |
| 26918 | } |
| 26919 | return result; |
| 26920 | } |
| 26921 | |
| 26922 | static CYTHON_INLINE__inline__ void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) { |
| 26923 | PyErr_Format(PyExc_ValueError, |
| 26924 | "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T"z" "d)", expected); |
| 26925 | } |
| 26926 | |
| 26927 | static CYTHON_INLINE__inline__ void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { |
| 26928 | PyErr_Format(PyExc_ValueError, |
| 26929 | "need more than %" CYTHON_FORMAT_SSIZE_T"z" "d value%.1s to unpack", |
| 26930 | index, (index == 1) ? "" : "s"); |
| 26931 | } |
| 26932 | |
| 26933 | static CYTHON_INLINE__inline__ int __Pyx_IterFinish(void) { |
| 26934 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 26935 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 26936 | PyObject* exc_type = tstate->curexc_type; |
| 26937 | if (unlikely(exc_type)__builtin_expect(!!(exc_type), 0)) { |
| 26938 | if (likely(exc_type == PyExc_StopIteration)__builtin_expect(!!(exc_type == PyExc_StopIteration), 1) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) { |
| 26939 | PyObject *exc_value, *exc_tb; |
| 26940 | exc_value = tstate->curexc_value; |
| 26941 | exc_tb = tstate->curexc_traceback; |
| 26942 | tstate->curexc_type = 0; |
| 26943 | tstate->curexc_value = 0; |
| 26944 | tstate->curexc_traceback = 0; |
| 26945 | Py_DECREF(exc_type)do { if ( --((PyObject*)(exc_type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(exc_type)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(exc_type)))); } while ( 0); |
| 26946 | Py_XDECREF(exc_value)do { if ((exc_value) == ((void*)0)) ; else do { if ( --((PyObject *)(exc_value))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(exc_value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(exc_value)))); } while (0); } while (0); |
| 26947 | Py_XDECREF(exc_tb)do { if ((exc_tb) == ((void*)0)) ; else do { if ( --((PyObject *)(exc_tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(exc_tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(exc_tb)))); } while (0); } while (0); |
| 26948 | return 0; |
| 26949 | } else { |
| 26950 | return -1; |
| 26951 | } |
| 26952 | } |
| 26953 | return 0; |
| 26954 | #else |
| 26955 | if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) { |
| 26956 | if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))__builtin_expect(!!(PyErr_ExceptionMatches(PyExc_StopIteration )), 1)) { |
| 26957 | PyErr_Clear(); |
| 26958 | return 0; |
| 26959 | } else { |
| 26960 | return -1; |
| 26961 | } |
| 26962 | } |
| 26963 | return 0; |
| 26964 | #endif |
| 26965 | } |
| 26966 | |
| 26967 | static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { |
| 26968 | if (unlikely(retval)__builtin_expect(!!(retval), 0)) { |
| 26969 | Py_DECREF(retval)do { if ( --((PyObject*)(retval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(retval)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(retval)))); } while (0); |
| 26970 | __Pyx_RaiseTooManyValuesError(expected); |
| 26971 | return -1; |
| 26972 | } else { |
| 26973 | return __Pyx_IterFinish(); |
| 26974 | } |
| 26975 | return 0; |
| 26976 | } |
| 26977 | |
| 26978 | static void __Pyx_RaiseArgumentTypeInvalid(const char* name, PyObject *obj, PyTypeObject *type) { |
| 26979 | PyErr_Format(PyExc_TypeError, |
| 26980 | "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)", |
| 26981 | name, type->tp_name, Py_TYPE(obj)(((PyObject*)(obj))->ob_type)->tp_name); |
| 26982 | } |
| 26983 | static CYTHON_INLINE__inline__ int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, |
| 26984 | const char *name, int exact) |
| 26985 | { |
| 26986 | if (unlikely(!type)__builtin_expect(!!(!type), 0)) { |
| 26987 | PyErr_SetString(PyExc_SystemError, "Missing type object"); |
| 26988 | return 0; |
| 26989 | } |
| 26990 | if (none_allowed && obj == Py_None(&_Py_NoneStruct)) return 1; |
| 26991 | else if (exact) { |
| 26992 | if (likely(Py_TYPE(obj) == type)__builtin_expect(!!((((PyObject*)(obj))->ob_type) == type) , 1)) return 1; |
| 26993 | #if PY_MAJOR_VERSION2 == 2 |
| 26994 | else if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))__builtin_expect(!!((((((PyObject*)(obj))->ob_type) == & PyString_Type) || ((((PyObject*)(obj))->ob_type) == &PyUnicode_Type ))), 1)) return 1; |
| 26995 | #endif |
| 26996 | } |
| 26997 | else { |
| 26998 | if (likely(PyObject_TypeCheck(obj, type))__builtin_expect(!!(((((PyObject*)(obj))->ob_type) == (type ) || PyType_IsSubtype((((PyObject*)(obj))->ob_type), (type )))), 1)) return 1; |
| 26999 | } |
| 27000 | __Pyx_RaiseArgumentTypeInvalid(name, obj, type); |
| 27001 | return 0; |
| 27002 | } |
| 27003 | |
| 27004 | #if !CYTHON_COMPILING_IN_CPYTHON1 |
| 27005 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyBytes_Join_PyString_Join(PyObject* sep, PyObject* values) { |
| 27006 | return PyObject_CallMethodObjArgs(sep, __pyx_n_s_join, values, NULL((void*)0)); |
| 27007 | } |
| 27008 | #endif |
| 27009 | |
| 27010 | static CYTHON_INLINE__inline__ void __Pyx_RaiseNoneNotIterableError(void) { |
| 27011 | PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); |
| 27012 | } |
| 27013 | |
| 27014 | static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) { |
| 27015 | if (t == Py_None(&_Py_NoneStruct)) { |
| 27016 | __Pyx_RaiseNoneNotIterableError(); |
| 27017 | } else if (PyTuple_GET_SIZE(t)(((PyVarObject*)(t))->ob_size) < index) { |
| 27018 | __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t)(((PyVarObject*)(t))->ob_size)); |
| 27019 | } else { |
| 27020 | __Pyx_RaiseTooManyValuesError(index); |
| 27021 | } |
| 27022 | } |
| 27023 | |
| 27024 | static CYTHON_INLINE__inline__ int __Pyx_unpack_tuple2(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, |
| 27025 | int is_tuple, int has_known_size, int decref_tuple) { |
| 27026 | Py_ssize_t index; |
| 27027 | PyObject *value1 = NULL((void*)0), *value2 = NULL((void*)0), *iter = NULL((void*)0); |
| 27028 | if (!is_tuple && unlikely(!PyTuple_Check(tuple))__builtin_expect(!!(!((((((PyObject*)(tuple))->ob_type))-> tp_flags & ((1L<<26))) != 0)), 0)) { |
| 27029 | iternextfunc iternext; |
| 27030 | iter = PyObject_GetIter(tuple); |
| 27031 | if (unlikely(!iter)__builtin_expect(!!(!iter), 0)) goto bad; |
| 27032 | if (decref_tuple) { Py_DECREF(tuple)do { if ( --((PyObject*)(tuple))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tuple)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tuple)))); } while (0); tuple = NULL((void*)0); } |
| 27033 | iternext = Py_TYPE(iter)(((PyObject*)(iter))->ob_type)->tp_iternext; |
| 27034 | value1 = iternext(iter); if (unlikely(!value1)__builtin_expect(!!(!value1), 0)) { index = 0; goto unpacking_failed; } |
| 27035 | value2 = iternext(iter); if (unlikely(!value2)__builtin_expect(!!(!value2), 0)) { index = 1; goto unpacking_failed; } |
| 27036 | if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))__builtin_expect(!!(__Pyx_IternextUnpackEndCheck(iternext(iter ), 2)), 0)) goto bad; |
| 27037 | Py_DECREF(iter)do { if ( --((PyObject*)(iter))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(iter)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(iter)))); } while (0); |
| 27038 | } else { |
| 27039 | if (!has_known_size && unlikely(PyTuple_GET_SIZE(tuple) != 2)__builtin_expect(!!((((PyVarObject*)(tuple))->ob_size) != 2 ), 0)) { |
| 27040 | __Pyx_UnpackTupleError(tuple, 2); |
| 27041 | goto bad; |
| 27042 | } |
| 27043 | #if CYTHON_COMPILING_IN_PYPY0 |
| 27044 | value1 = PySequence_ITEM(tuple, 0)( (((PyObject*)(tuple))->ob_type)->tp_as_sequence->sq_item (tuple, 0) ); |
| 27045 | if (unlikely(!value1)__builtin_expect(!!(!value1), 0)) goto bad; |
| 27046 | value2 = PySequence_ITEM(tuple, 1)( (((PyObject*)(tuple))->ob_type)->tp_as_sequence->sq_item (tuple, 1) ); |
| 27047 | if (unlikely(!value2)__builtin_expect(!!(!value2), 0)) goto bad; |
| 27048 | #else |
| 27049 | value1 = PyTuple_GET_ITEM(tuple, 0)(((PyTupleObject *)(tuple))->ob_item[0]); |
| 27050 | value2 = PyTuple_GET_ITEM(tuple, 1)(((PyTupleObject *)(tuple))->ob_item[1]); |
| 27051 | Py_INCREF(value1)( ((PyObject*)(value1))->ob_refcnt++); |
| 27052 | Py_INCREF(value2)( ((PyObject*)(value2))->ob_refcnt++); |
| 27053 | #endif |
| 27054 | if (decref_tuple) { Py_DECREF(tuple)do { if ( --((PyObject*)(tuple))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tuple)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tuple)))); } while (0); } |
| 27055 | } |
| 27056 | *pvalue1 = value1; |
| 27057 | *pvalue2 = value2; |
| 27058 | return 0; |
| 27059 | unpacking_failed: |
| 27060 | if (!has_known_size && __Pyx_IterFinish() == 0) |
| 27061 | __Pyx_RaiseNeedMoreValuesError(index); |
| 27062 | bad: |
| 27063 | Py_XDECREF(iter)do { if ((iter) == ((void*)0)) ; else do { if ( --((PyObject* )(iter))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iter)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(iter)))); } while (0); } while (0); |
| 27064 | Py_XDECREF(value1)do { if ((value1) == ((void*)0)) ; else do { if ( --((PyObject *)(value1))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value1)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(value1)))); } while (0); } while (0); |
| 27065 | Py_XDECREF(value2)do { if ((value2) == ((void*)0)) ; else do { if ( --((PyObject *)(value2))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value2)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(value2)))); } while (0); } while (0); |
| 27066 | if (decref_tuple) { Py_XDECREF(tuple)do { if ((tuple) == ((void*)0)) ; else do { if ( --((PyObject *)(tuple))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tuple)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tuple)))); } while (0); } while (0); } |
| 27067 | return -1; |
| 27068 | } |
| 27069 | |
| 27070 | static CYTHON_INLINE__inline__ PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name, |
| 27071 | Py_ssize_t* p_orig_length, int* p_source_is_dict) { |
| 27072 | is_dict = is_dict || likely(PyDict_CheckExact(iterable))__builtin_expect(!!(((((PyObject*)(iterable))->ob_type) == &PyDict_Type)), 1); |
| 27073 | *p_source_is_dict = is_dict; |
| 27074 | #if !CYTHON_COMPILING_IN_PYPY0 |
| 27075 | if (is_dict) { |
| 27076 | *p_orig_length = PyDict_Size(iterable); |
| 27077 | Py_INCREF(iterable)( ((PyObject*)(iterable))->ob_refcnt++); |
| 27078 | return iterable; |
| 27079 | } |
| 27080 | #endif |
| 27081 | *p_orig_length = 0; |
| 27082 | if (method_name) { |
| 27083 | PyObject* iter; |
| 27084 | iterable = __Pyx_PyObject_CallMethod0(iterable, method_name)__Pyx_PyObject_CallMethodTuple(iterable, method_name, (( ((PyObject *)(__pyx_empty_tuple))->ob_refcnt++), __pyx_empty_tuple)); |
| 27085 | if (!iterable) |
| 27086 | return NULL((void*)0); |
| 27087 | #if !CYTHON_COMPILING_IN_PYPY0 |
| 27088 | if (PyTuple_CheckExact(iterable)((((PyObject*)(iterable))->ob_type) == &PyTuple_Type) || PyList_CheckExact(iterable)((((PyObject*)(iterable))->ob_type) == &PyList_Type)) |
| 27089 | return iterable; |
| 27090 | #endif |
| 27091 | iter = PyObject_GetIter(iterable); |
| 27092 | Py_DECREF(iterable)do { if ( --((PyObject*)(iterable))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(iterable)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(iterable)))); } while ( 0); |
| 27093 | return iter; |
| 27094 | } |
| 27095 | return PyObject_GetIter(iterable); |
| 27096 | } |
| 27097 | static CYTHON_INLINE__inline__ int __Pyx_dict_iter_next(PyObject* iter_obj, Py_ssize_t orig_length, Py_ssize_t* ppos, |
| 27098 | PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) { |
| 27099 | PyObject* next_item; |
| 27100 | #if !CYTHON_COMPILING_IN_PYPY0 |
| 27101 | if (source_is_dict) { |
| 27102 | PyObject *key, *value; |
| 27103 | if (unlikely(orig_length != PyDict_Size(iter_obj))__builtin_expect(!!(orig_length != PyDict_Size(iter_obj)), 0)) { |
| 27104 | PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration"); |
| 27105 | return -1; |
| 27106 | } |
| 27107 | if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))__builtin_expect(!!(!PyDict_Next(iter_obj, ppos, &key, & value)), 0)) { |
| 27108 | return 0; |
| 27109 | } |
| 27110 | if (pitem) { |
| 27111 | PyObject* tuple = PyTuple_New(2); |
| 27112 | if (unlikely(!tuple)__builtin_expect(!!(!tuple), 0)) { |
| 27113 | return -1; |
| 27114 | } |
| 27115 | Py_INCREF(key)( ((PyObject*)(key))->ob_refcnt++); |
| 27116 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27117 | PyTuple_SET_ITEM(tuple, 0, key)(((PyTupleObject *)(tuple))->ob_item[0] = key); |
| 27118 | PyTuple_SET_ITEM(tuple, 1, value)(((PyTupleObject *)(tuple))->ob_item[1] = value); |
| 27119 | *pitem = tuple; |
| 27120 | } else { |
| 27121 | if (pkey) { |
| 27122 | Py_INCREF(key)( ((PyObject*)(key))->ob_refcnt++); |
| 27123 | *pkey = key; |
| 27124 | } |
| 27125 | if (pvalue) { |
| 27126 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27127 | *pvalue = value; |
| 27128 | } |
| 27129 | } |
| 27130 | return 1; |
| 27131 | } else if (PyTuple_CheckExact(iter_obj)((((PyObject*)(iter_obj))->ob_type) == &PyTuple_Type)) { |
| 27132 | Py_ssize_t pos = *ppos; |
| 27133 | if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))__builtin_expect(!!(pos >= (((PyVarObject*)(iter_obj))-> ob_size)), 0)) return 0; |
| 27134 | *ppos = pos + 1; |
| 27135 | next_item = PyTuple_GET_ITEM(iter_obj, pos)(((PyTupleObject *)(iter_obj))->ob_item[pos]); |
| 27136 | Py_INCREF(next_item)( ((PyObject*)(next_item))->ob_refcnt++); |
| 27137 | } else if (PyList_CheckExact(iter_obj)((((PyObject*)(iter_obj))->ob_type) == &PyList_Type)) { |
| 27138 | Py_ssize_t pos = *ppos; |
| 27139 | if (unlikely(pos >= PyList_GET_SIZE(iter_obj))__builtin_expect(!!(pos >= (((PyVarObject*)(iter_obj))-> ob_size)), 0)) return 0; |
| 27140 | *ppos = pos + 1; |
| 27141 | next_item = PyList_GET_ITEM(iter_obj, pos)(((PyListObject *)(iter_obj))->ob_item[pos]); |
| 27142 | Py_INCREF(next_item)( ((PyObject*)(next_item))->ob_refcnt++); |
| 27143 | } else |
| 27144 | #endif |
| 27145 | { |
| 27146 | next_item = PyIter_Next(iter_obj); |
| 27147 | if (unlikely(!next_item)__builtin_expect(!!(!next_item), 0)) { |
| 27148 | return __Pyx_IterFinish(); |
| 27149 | } |
| 27150 | } |
| 27151 | if (pitem) { |
| 27152 | *pitem = next_item; |
| 27153 | } else if (pkey && pvalue) { |
| 27154 | if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1)) |
| 27155 | return -1; |
| 27156 | } else if (pkey) { |
| 27157 | *pkey = next_item; |
| 27158 | } else { |
| 27159 | *pvalue = next_item; |
| 27160 | } |
| 27161 | return 1; |
| 27162 | } |
| 27163 | |
| 27164 | static CYTHON_INLINE__inline__ int __Pyx_PyObject_Append(PyObject* L, PyObject* x) { |
| 27165 | if (likely(PyList_CheckExact(L))__builtin_expect(!!(((((PyObject*)(L))->ob_type) == &PyList_Type )), 1)) { |
| 27166 | if (unlikely(__Pyx_PyList_Append(L, x) < 0)__builtin_expect(!!(__Pyx_PyList_Append(L, x) < 0), 0)) return -1; |
| 27167 | } else { |
| 27168 | PyObject* retval = __Pyx_PyObject_CallMethod1(L, __pyx_n_s_append, x)__Pyx_PyObject_CallMethodTuple(L, __pyx_n_s_append, PyTuple_Pack (1, x)); |
| 27169 | if (unlikely(!retval)__builtin_expect(!!(!retval), 0)) |
| 27170 | return -1; |
| 27171 | Py_DECREF(retval)do { if ( --((PyObject*)(retval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(retval)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(retval)))); } while (0); |
| 27172 | } |
| 27173 | return 0; |
| 27174 | } |
| 27175 | |
| 27176 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { |
| 27177 | PyObject *r; |
| 27178 | if (!j) return NULL((void*)0); |
| 27179 | r = PyObject_GetItem(o, j); |
| 27180 | Py_DECREF(j)do { if ( --((PyObject*)(j))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(j)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(j)))); } while (0); |
| 27181 | return r; |
| 27182 | } |
| 27183 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, |
| 27184 | int wraparound, int boundscheck) { |
| 27185 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 27186 | if (wraparound & unlikely(i < 0)__builtin_expect(!!(i < 0), 0)) i += PyList_GET_SIZE(o)(((PyVarObject*)(o))->ob_size); |
| 27187 | if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))__builtin_expect(!!((0 <= i) & (i < (((PyVarObject* )(o))->ob_size))), 1)) { |
| 27188 | PyObject *r = PyList_GET_ITEM(o, i)(((PyListObject *)(o))->ob_item[i]); |
| 27189 | Py_INCREF(r)( ((PyObject*)(r))->ob_refcnt++); |
| 27190 | return r; |
| 27191 | } |
| 27192 | return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); |
| 27193 | #else |
| 27194 | return PySequence_GetItem(o, i); |
| 27195 | #endif |
| 27196 | } |
| 27197 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, |
| 27198 | int wraparound, int boundscheck) { |
| 27199 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 27200 | if (wraparound & unlikely(i < 0)__builtin_expect(!!(i < 0), 0)) i += PyTuple_GET_SIZE(o)(((PyVarObject*)(o))->ob_size); |
| 27201 | if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))__builtin_expect(!!((0 <= i) & (i < (((PyVarObject* )(o))->ob_size))), 1)) { |
| 27202 | PyObject *r = PyTuple_GET_ITEM(o, i)(((PyTupleObject *)(o))->ob_item[i]); |
| 27203 | Py_INCREF(r)( ((PyObject*)(r))->ob_refcnt++); |
| 27204 | return r; |
| 27205 | } |
| 27206 | return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); |
| 27207 | #else |
| 27208 | return PySequence_GetItem(o, i); |
| 27209 | #endif |
| 27210 | } |
| 27211 | static CYTHON_INLINE__inline__ PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, |
| 27212 | int is_list, int wraparound, int boundscheck) { |
| 27213 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 27214 | if (is_list || PyList_CheckExact(o)((((PyObject*)(o))->ob_type) == &PyList_Type)) { |
| 27215 | Py_ssize_t n = ((!wraparound) | likely(i >= 0)__builtin_expect(!!(i >= 0), 1)) ? i : i + PyList_GET_SIZE(o)(((PyVarObject*)(o))->ob_size); |
| 27216 | if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o)))__builtin_expect(!!((n >= 0) & (n < (((PyVarObject* )(o))->ob_size))), 1))) { |
| 27217 | PyObject *r = PyList_GET_ITEM(o, n)(((PyListObject *)(o))->ob_item[n]); |
| 27218 | Py_INCREF(r)( ((PyObject*)(r))->ob_refcnt++); |
| 27219 | return r; |
| 27220 | } |
| 27221 | } |
| 27222 | else if (PyTuple_CheckExact(o)((((PyObject*)(o))->ob_type) == &PyTuple_Type)) { |
| 27223 | Py_ssize_t n = ((!wraparound) | likely(i >= 0)__builtin_expect(!!(i >= 0), 1)) ? i : i + PyTuple_GET_SIZE(o)(((PyVarObject*)(o))->ob_size); |
| 27224 | if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))__builtin_expect(!!((n >= 0) & (n < (((PyVarObject* )(o))->ob_size))), 1)) { |
| 27225 | PyObject *r = PyTuple_GET_ITEM(o, n)(((PyTupleObject *)(o))->ob_item[n]); |
| 27226 | Py_INCREF(r)( ((PyObject*)(r))->ob_refcnt++); |
| 27227 | return r; |
| 27228 | } |
| 27229 | } else { |
| 27230 | PySequenceMethods *m = Py_TYPE(o)(((PyObject*)(o))->ob_type)->tp_as_sequence; |
| 27231 | if (likely(m && m->sq_item)__builtin_expect(!!(m && m->sq_item), 1)) { |
| 27232 | if (wraparound && unlikely(i < 0)__builtin_expect(!!(i < 0), 0) && likely(m->sq_length)__builtin_expect(!!(m->sq_length), 1)) { |
| 27233 | Py_ssize_t l = m->sq_length(o); |
| 27234 | if (likely(l >= 0)__builtin_expect(!!(l >= 0), 1)) { |
| 27235 | i += l; |
| 27236 | } else { |
| 27237 | if (PyErr_ExceptionMatches(PyExc_OverflowError)) |
| 27238 | PyErr_Clear(); |
| 27239 | else |
| 27240 | return NULL((void*)0); |
| 27241 | } |
| 27242 | } |
| 27243 | return m->sq_item(o, i); |
| 27244 | } |
| 27245 | } |
| 27246 | #else |
| 27247 | if (is_list || PySequence_Check(o)) { |
| 27248 | return PySequence_GetItem(o, i); |
| 27249 | } |
| 27250 | #endif |
| 27251 | return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); |
| 27252 | } |
| 27253 | |
| 27254 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyObject_GetSlice( |
| 27255 | PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, |
| 27256 | PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice, |
| 27257 | int has_cstart, int has_cstop, CYTHON_UNUSED__attribute__ ((__unused__)) int wraparound) { |
| 27258 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 27259 | PyMappingMethods* mp; |
| 27260 | #if PY_MAJOR_VERSION2 < 3 |
| 27261 | PySequenceMethods* ms = Py_TYPE(obj)(((PyObject*)(obj))->ob_type)->tp_as_sequence; |
| 27262 | if (likely(ms && ms->sq_slice)__builtin_expect(!!(ms && ms->sq_slice), 1)) { |
| 27263 | if (!has_cstart) { |
| 27264 | if (_py_start && (*_py_start != Py_None(&_Py_NoneStruct))) { |
| 27265 | cstart = __Pyx_PyIndex_AsSsize_t(*_py_start); |
| 27266 | if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; |
| 27267 | } else |
| 27268 | cstart = 0; |
| 27269 | } |
| 27270 | if (!has_cstop) { |
| 27271 | if (_py_stop && (*_py_stop != Py_None(&_Py_NoneStruct))) { |
| 27272 | cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop); |
| 27273 | if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; |
| 27274 | } else |
| 27275 | cstop = PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)); |
| 27276 | } |
| 27277 | if (wraparound && unlikely((cstart < 0) | (cstop < 0))__builtin_expect(!!((cstart < 0) | (cstop < 0)), 0) && likely(ms->sq_length)__builtin_expect(!!(ms->sq_length), 1)) { |
| 27278 | Py_ssize_t l = ms->sq_length(obj); |
| 27279 | if (likely(l >= 0)__builtin_expect(!!(l >= 0), 1)) { |
| 27280 | if (cstop < 0) { |
| 27281 | cstop += l; |
| 27282 | if (cstop < 0) cstop = 0; |
| 27283 | } |
| 27284 | if (cstart < 0) { |
| 27285 | cstart += l; |
| 27286 | if (cstart < 0) cstart = 0; |
| 27287 | } |
| 27288 | } else { |
| 27289 | if (PyErr_ExceptionMatches(PyExc_OverflowError)) |
| 27290 | PyErr_Clear(); |
| 27291 | else |
| 27292 | goto bad; |
| 27293 | } |
| 27294 | } |
| 27295 | return ms->sq_slice(obj, cstart, cstop); |
| 27296 | } |
| 27297 | #endif |
| 27298 | mp = Py_TYPE(obj)(((PyObject*)(obj))->ob_type)->tp_as_mapping; |
| 27299 | if (likely(mp && mp->mp_subscript)__builtin_expect(!!(mp && mp->mp_subscript), 1)) |
| 27300 | #endif |
| 27301 | { |
| 27302 | PyObject* result; |
| 27303 | PyObject *py_slice, *py_start, *py_stop; |
| 27304 | if (_py_slice) { |
| 27305 | py_slice = *_py_slice; |
| 27306 | } else { |
| 27307 | PyObject* owned_start = NULL((void*)0); |
| 27308 | PyObject* owned_stop = NULL((void*)0); |
| 27309 | if (_py_start) { |
| 27310 | py_start = *_py_start; |
| 27311 | } else { |
| 27312 | if (has_cstart) { |
| 27313 | owned_start = py_start = PyInt_FromSsize_t(cstart); |
| 27314 | if (unlikely(!py_start)__builtin_expect(!!(!py_start), 0)) goto bad; |
| 27315 | } else |
| 27316 | py_start = Py_None(&_Py_NoneStruct); |
| 27317 | } |
| 27318 | if (_py_stop) { |
| 27319 | py_stop = *_py_stop; |
| 27320 | } else { |
| 27321 | if (has_cstop) { |
| 27322 | owned_stop = py_stop = PyInt_FromSsize_t(cstop); |
| 27323 | if (unlikely(!py_stop)__builtin_expect(!!(!py_stop), 0)) { |
| 27324 | Py_XDECREF(owned_start)do { if ((owned_start) == ((void*)0)) ; else do { if ( --((PyObject *)(owned_start))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(owned_start)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(owned_start)))); } while (0); } while (0); |
| 27325 | goto bad; |
| 27326 | } |
| 27327 | } else |
| 27328 | py_stop = Py_None(&_Py_NoneStruct); |
| 27329 | } |
| 27330 | py_slice = PySlice_New(py_start, py_stop, Py_None(&_Py_NoneStruct)); |
| 27331 | Py_XDECREF(owned_start)do { if ((owned_start) == ((void*)0)) ; else do { if ( --((PyObject *)(owned_start))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(owned_start)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(owned_start)))); } while (0); } while (0); |
| 27332 | Py_XDECREF(owned_stop)do { if ((owned_stop) == ((void*)0)) ; else do { if ( --((PyObject *)(owned_stop))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(owned_stop)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(owned_stop)))); } while (0); } while (0); |
| 27333 | if (unlikely(!py_slice)__builtin_expect(!!(!py_slice), 0)) goto bad; |
| 27334 | } |
| 27335 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 27336 | result = mp->mp_subscript(obj, py_slice); |
| 27337 | #else |
| 27338 | result = PyObject_GetItem(obj, py_slice); |
| 27339 | #endif |
| 27340 | if (!_py_slice) { |
| 27341 | Py_DECREF(py_slice)do { if ( --((PyObject*)(py_slice))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_slice)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(py_slice)))); } while ( 0); |
| 27342 | } |
| 27343 | return result; |
| 27344 | } |
| 27345 | PyErr_Format(PyExc_TypeError, |
| 27346 | "'%.200s' object is unsliceable", Py_TYPE(obj)(((PyObject*)(obj))->ob_type)->tp_name); |
| 27347 | bad: |
| 27348 | return NULL((void*)0); |
| 27349 | } |
| 27350 | |
| 27351 | static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) { |
| 27352 | PyObject* value; |
| 27353 | #if PY_MAJOR_VERSION2 >= 3 |
| 27354 | value = PyDict_GetItemWithError(d, key); |
| 27355 | if (unlikely(!value)__builtin_expect(!!(!value), 0)) { |
| 27356 | if (unlikely(PyErr_Occurred())__builtin_expect(!!(PyErr_Occurred()), 0)) |
| 27357 | return NULL((void*)0); |
| 27358 | value = default_value; |
| 27359 | } |
| 27360 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27361 | #else |
| 27362 | if (PyString_CheckExact(key)((((PyObject*)(key))->ob_type) == &PyString_Type) || PyUnicode_CheckExact(key)((((PyObject*)(key))->ob_type) == &PyUnicode_Type) || PyInt_CheckExact(key)((key)->ob_type == &PyInt_Type)) { |
| 27363 | value = PyDict_GetItem(d, key); |
| 27364 | if (unlikely(!value)__builtin_expect(!!(!value), 0)) { |
| 27365 | value = default_value; |
| 27366 | } |
| 27367 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27368 | } else { |
| 27369 | if (default_value == Py_None(&_Py_NoneStruct)) |
| 27370 | default_value = NULL((void*)0); |
| 27371 | value = PyObject_CallMethodObjArgs( |
| 27372 | d, __pyx_n_s_get, key, default_value, NULL((void*)0)); |
| 27373 | } |
| 27374 | #endif |
| 27375 | return value; |
| 27376 | } |
| 27377 | |
| 27378 | static CYTHON_INLINE__inline__ int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { |
| 27379 | #if CYTHON_COMPILING_IN_PYPY0 |
| 27380 | return PyObject_RichCompareBool(s1, s2, equals); |
| 27381 | #else |
| 27382 | if (s1 == s2) { |
| 27383 | return (equals == Py_EQ2); |
| 27384 | } else if (PyBytes_CheckExact(s1)((((PyObject*)(s1))->ob_type) == &PyString_Type) & PyBytes_CheckExact(s2)((((PyObject*)(s2))->ob_type) == &PyString_Type)) { |
| 27385 | const char *ps1, *ps2; |
| 27386 | Py_ssize_t length = PyBytes_GET_SIZE(s1)(((PyVarObject*)(s1))->ob_size); |
| 27387 | if (length != PyBytes_GET_SIZE(s2)(((PyVarObject*)(s2))->ob_size)) |
| 27388 | return (equals == Py_NE3); |
| 27389 | ps1 = PyBytes_AS_STRING(s1)(((PyStringObject *)(s1))->ob_sval); |
| 27390 | ps2 = PyBytes_AS_STRING(s2)(((PyStringObject *)(s2))->ob_sval); |
| 27391 | if (ps1[0] != ps2[0]) { |
| 27392 | return (equals == Py_NE3); |
| 27393 | } else if (length == 1) { |
| 27394 | return (equals == Py_EQ2); |
| 27395 | } else { |
| 27396 | int result = memcmp(ps1, ps2, (size_t)length); |
| 27397 | return (equals == Py_EQ2) ? (result == 0) : (result != 0); |
| 27398 | } |
| 27399 | } else if ((s1 == Py_None(&_Py_NoneStruct)) & PyBytes_CheckExact(s2)((((PyObject*)(s2))->ob_type) == &PyString_Type)) { |
| 27400 | return (equals == Py_NE3); |
| 27401 | } else if ((s2 == Py_None(&_Py_NoneStruct)) & PyBytes_CheckExact(s1)((((PyObject*)(s1))->ob_type) == &PyString_Type)) { |
| 27402 | return (equals == Py_NE3); |
| 27403 | } else { |
| 27404 | int result; |
| 27405 | PyObject* py_result = PyObject_RichCompare(s1, s2, equals); |
| 27406 | if (!py_result) |
| 27407 | return -1; |
| 27408 | result = __Pyx_PyObject_IsTrue(py_result); |
| 27409 | Py_DECREF(py_result)do { if ( --((PyObject*)(py_result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_result)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(py_result)))); } while ( 0); |
| 27410 | return result; |
| 27411 | } |
| 27412 | #endif |
| 27413 | } |
| 27414 | |
| 27415 | static CYTHON_INLINE__inline__ int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { |
| 27416 | #if CYTHON_COMPILING_IN_PYPY0 |
| 27417 | return PyObject_RichCompareBool(s1, s2, equals); |
| 27418 | #else |
| 27419 | #if PY_MAJOR_VERSION2 < 3 |
| 27420 | PyObject* owned_ref = NULL((void*)0); |
| 27421 | #endif |
| 27422 | int s1_is_unicode, s2_is_unicode; |
| 27423 | if (s1 == s2) { |
| 27424 | goto return_eq; |
| 27425 | } |
| 27426 | s1_is_unicode = PyUnicode_CheckExact(s1)((((PyObject*)(s1))->ob_type) == &PyUnicode_Type); |
| 27427 | s2_is_unicode = PyUnicode_CheckExact(s2)((((PyObject*)(s2))->ob_type) == &PyUnicode_Type); |
| 27428 | #if PY_MAJOR_VERSION2 < 3 |
| 27429 | if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)((((PyObject*)(s2))->ob_type) == &PyString_Type)) { |
| 27430 | owned_ref = PyUnicode_FromObjectPyUnicodeUCS4_FromObject(s2); |
| 27431 | if (unlikely(!owned_ref)__builtin_expect(!!(!owned_ref), 0)) |
| 27432 | return -1; |
| 27433 | s2 = owned_ref; |
| 27434 | s2_is_unicode = 1; |
| 27435 | } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)((((PyObject*)(s1))->ob_type) == &PyString_Type)) { |
| 27436 | owned_ref = PyUnicode_FromObjectPyUnicodeUCS4_FromObject(s1); |
| 27437 | if (unlikely(!owned_ref)__builtin_expect(!!(!owned_ref), 0)) |
| 27438 | return -1; |
| 27439 | s1 = owned_ref; |
| 27440 | s1_is_unicode = 1; |
| 27441 | } else if (((!s2_is_unicode) & (!s1_is_unicode))) { |
| 27442 | return __Pyx_PyBytes_Equals(s1, s2, equals); |
| 27443 | } |
| 27444 | #endif |
| 27445 | if (s1_is_unicode & s2_is_unicode) { |
| 27446 | Py_ssize_t length; |
| 27447 | int kind; |
| 27448 | void *data1, *data2; |
| 27449 | #if CYTHON_PEP393_ENABLED0 |
| 27450 | if (unlikely(PyUnicode_READY(s1) < 0)__builtin_expect(!!(PyUnicode_READY(s1) < 0), 0) || unlikely(PyUnicode_READY(s2) < 0)__builtin_expect(!!(PyUnicode_READY(s2) < 0), 0)) |
| 27451 | return -1; |
| 27452 | #endif |
| 27453 | length = __Pyx_PyUnicode_GET_LENGTH(s1)(((PyUnicodeObject *)(s1))->length); |
| 27454 | if (length != __Pyx_PyUnicode_GET_LENGTH(s2)(((PyUnicodeObject *)(s2))->length)) { |
| 27455 | goto return_ne; |
| 27456 | } |
| 27457 | kind = __Pyx_PyUnicode_KIND(s1)(sizeof(Py_UNICODE)); |
| 27458 | if (kind != __Pyx_PyUnicode_KIND(s2)(sizeof(Py_UNICODE))) { |
| 27459 | goto return_ne; |
| 27460 | } |
| 27461 | data1 = __Pyx_PyUnicode_DATA(s1)((void*)(((PyUnicodeObject *)(s1))->str)); |
| 27462 | data2 = __Pyx_PyUnicode_DATA(s2)((void*)(((PyUnicodeObject *)(s2))->str)); |
| 27463 | if (__Pyx_PyUnicode_READ(kind, data1, 0)((void)(kind), (Py_UCS4)(((Py_UNICODE*)data1)[0])) != __Pyx_PyUnicode_READ(kind, data2, 0)((void)(kind), (Py_UCS4)(((Py_UNICODE*)data2)[0]))) { |
| 27464 | goto return_ne; |
| 27465 | } else if (length == 1) { |
| 27466 | goto return_eq; |
| 27467 | } else { |
| 27468 | int result = memcmp(data1, data2, length * kind); |
| 27469 | #if PY_MAJOR_VERSION2 < 3 |
| 27470 | Py_XDECREF(owned_ref)do { if ((owned_ref) == ((void*)0)) ; else do { if ( --((PyObject *)(owned_ref))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(owned_ref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(owned_ref)))); } while (0); } while (0); |
| 27471 | #endif |
| 27472 | return (equals == Py_EQ2) ? (result == 0) : (result != 0); |
| 27473 | } |
| 27474 | } else if ((s1 == Py_None(&_Py_NoneStruct)) & s2_is_unicode) { |
| 27475 | goto return_ne; |
| 27476 | } else if ((s2 == Py_None(&_Py_NoneStruct)) & s1_is_unicode) { |
| 27477 | goto return_ne; |
| 27478 | } else { |
| 27479 | int result; |
| 27480 | PyObject* py_result = PyObject_RichCompare(s1, s2, equals); |
| 27481 | if (!py_result) |
| 27482 | return -1; |
| 27483 | result = __Pyx_PyObject_IsTrue(py_result); |
| 27484 | Py_DECREF(py_result)do { if ( --((PyObject*)(py_result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_result)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(py_result)))); } while ( 0); |
| 27485 | return result; |
| 27486 | } |
| 27487 | return_eq: |
| 27488 | #if PY_MAJOR_VERSION2 < 3 |
| 27489 | Py_XDECREF(owned_ref)do { if ((owned_ref) == ((void*)0)) ; else do { if ( --((PyObject *)(owned_ref))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(owned_ref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(owned_ref)))); } while (0); } while (0); |
| 27490 | #endif |
| 27491 | return (equals == Py_EQ2); |
| 27492 | return_ne: |
| 27493 | #if PY_MAJOR_VERSION2 < 3 |
| 27494 | Py_XDECREF(owned_ref)do { if ((owned_ref) == ((void*)0)) ; else do { if ( --((PyObject *)(owned_ref))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(owned_ref)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(owned_ref)))); } while (0); } while (0); |
| 27495 | #endif |
| 27496 | return (equals == Py_NE3); |
| 27497 | #endif |
| 27498 | } |
| 27499 | |
| 27500 | static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse) { |
| 27501 | PyTypeObject* type = Py_TYPE(obj)(((PyObject*)(obj))->ob_type); |
| 27502 | while (type && type->tp_traverse != current_tp_traverse) |
| 27503 | type = type->tp_base; |
| 27504 | while (type && type->tp_traverse == current_tp_traverse) |
| 27505 | type = type->tp_base; |
| 27506 | if (type && type->tp_traverse) |
| 27507 | return type->tp_traverse(obj, v, a); |
| 27508 | return 0; |
| 27509 | } |
| 27510 | |
| 27511 | static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) { |
| 27512 | PyTypeObject* type = Py_TYPE(obj)(((PyObject*)(obj))->ob_type); |
| 27513 | while (type && type->tp_clear != current_tp_clear) |
| 27514 | type = type->tp_base; |
| 27515 | while (type && type->tp_clear == current_tp_clear) |
| 27516 | type = type->tp_base; |
| 27517 | if (type && type->tp_clear) |
| 27518 | type->tp_clear(obj); |
| 27519 | } |
| 27520 | |
| 27521 | static int __Pyx_SetVtable(PyObject *dict, void *vtable) { |
| 27522 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02070000 && !(PY_MAJOR_VERSION2==3&&PY_MINOR_VERSION7==0) |
| 27523 | PyObject *ob = PyCapsule_New(vtable, 0, 0); |
| 27524 | #else |
| 27525 | PyObject *ob = PyCObject_FromVoidPtr(vtable, 0); |
| 27526 | #endif |
| 27527 | if (!ob) |
| 27528 | goto bad; |
| 27529 | if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0) |
| 27530 | goto bad; |
| 27531 | Py_DECREF(ob)do { if ( --((PyObject*)(ob))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(ob)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(ob)))); } while (0); |
| 27532 | return 0; |
| 27533 | bad: |
| 27534 | Py_XDECREF(ob)do { if ((ob) == ((void*)0)) ; else do { if ( --((PyObject*)( ob))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject * )(ob)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(ob)))); } while (0); } while (0); |
| 27535 | return -1; |
| 27536 | } |
| 27537 | |
| 27538 | static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) { |
| 27539 | PyObject* value = __Pyx_PyObject_GetAttrStr(module, name); |
| 27540 | if (unlikely(!value)__builtin_expect(!!(!value), 0) && PyErr_ExceptionMatches(PyExc_AttributeError)) { |
| 27541 | PyErr_Format(PyExc_ImportError, |
| 27542 | #if PY_MAJOR_VERSION2 < 3 |
| 27543 | "cannot import name %.230s", PyString_AS_STRING(name)(((PyStringObject *)(name))->ob_sval)); |
| 27544 | #else |
| 27545 | "cannot import name %S", name); |
| 27546 | #endif |
| 27547 | } |
| 27548 | return value; |
| 27549 | } |
| 27550 | |
| 27551 | static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { |
| 27552 | Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases)(((PyVarObject*)(bases))->ob_size); |
| 27553 | for (i=0; i < nbases; i++) { |
| 27554 | PyTypeObject *tmptype; |
| 27555 | PyObject *tmp = PyTuple_GET_ITEM(bases, i)(((PyTupleObject *)(bases))->ob_item[i]); |
| 27556 | tmptype = Py_TYPE(tmp)(((PyObject*)(tmp))->ob_type); |
| 27557 | #if PY_MAJOR_VERSION2 < 3 |
| 27558 | if (tmptype == &PyClass_Type) |
| 27559 | continue; |
| 27560 | #endif |
| 27561 | if (!metaclass) { |
| 27562 | metaclass = tmptype; |
| 27563 | continue; |
| 27564 | } |
| 27565 | if (PyType_IsSubtype(metaclass, tmptype)) |
| 27566 | continue; |
| 27567 | if (PyType_IsSubtype(tmptype, metaclass)) { |
| 27568 | metaclass = tmptype; |
| 27569 | continue; |
| 27570 | } |
| 27571 | PyErr_SetString(PyExc_TypeError, |
| 27572 | "metaclass conflict: " |
| 27573 | "the metaclass of a derived class " |
| 27574 | "must be a (non-strict) subclass " |
| 27575 | "of the metaclasses of all its bases"); |
| 27576 | return NULL((void*)0); |
| 27577 | } |
| 27578 | if (!metaclass) { |
| 27579 | #if PY_MAJOR_VERSION2 < 3 |
| 27580 | metaclass = &PyClass_Type; |
| 27581 | #else |
| 27582 | metaclass = &PyType_Type; |
| 27583 | #endif |
| 27584 | } |
| 27585 | Py_INCREF((PyObject*) metaclass)( ((PyObject*)((PyObject*) metaclass))->ob_refcnt++); |
| 27586 | return (PyObject*) metaclass; |
| 27587 | } |
| 27588 | |
| 27589 | static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, |
| 27590 | PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { |
| 27591 | PyObject *ns; |
| 27592 | if (metaclass) { |
| 27593 | PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); |
| 27594 | if (prep) { |
| 27595 | PyObject *pargs = PyTuple_Pack(2, name, bases); |
| 27596 | if (unlikely(!pargs)__builtin_expect(!!(!pargs), 0)) { |
| 27597 | Py_DECREF(prep)do { if ( --((PyObject*)(prep))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(prep)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(prep)))); } while (0); |
| 27598 | return NULL((void*)0); |
| 27599 | } |
| 27600 | ns = PyObject_Call(prep, pargs, mkw); |
| 27601 | Py_DECREF(prep)do { if ( --((PyObject*)(prep))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(prep)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(prep)))); } while (0); |
| 27602 | Py_DECREF(pargs)do { if ( --((PyObject*)(pargs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(pargs)))); } while (0); |
| 27603 | } else { |
| 27604 | if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))__builtin_expect(!!(!PyErr_ExceptionMatches(PyExc_AttributeError )), 0)) |
| 27605 | return NULL((void*)0); |
| 27606 | PyErr_Clear(); |
| 27607 | ns = PyDict_New(); |
| 27608 | } |
| 27609 | } else { |
| 27610 | ns = PyDict_New(); |
| 27611 | } |
| 27612 | if (unlikely(!ns)__builtin_expect(!!(!ns), 0)) |
| 27613 | return NULL((void*)0); |
| 27614 | if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)__builtin_expect(!!(PyObject_SetItem(ns, __pyx_n_s_module, modname ) < 0), 0)) goto bad; |
| 27615 | if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)__builtin_expect(!!(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname ) < 0), 0)) goto bad; |
| 27616 | if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)__builtin_expect(!!(doc && PyObject_SetItem(ns, __pyx_n_s_doc , doc) < 0), 0)) goto bad; |
| 27617 | return ns; |
| 27618 | bad: |
| 27619 | Py_DECREF(ns)do { if ( --((PyObject*)(ns))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(ns)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(ns)))); } while (0); |
| 27620 | return NULL((void*)0); |
| 27621 | } |
| 27622 | static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, |
| 27623 | PyObject *dict, PyObject *mkw, |
| 27624 | int calculate_metaclass, int allow_py2_metaclass) { |
| 27625 | PyObject *result, *margs; |
| 27626 | PyObject *owned_metaclass = NULL((void*)0); |
| 27627 | if (allow_py2_metaclass) { |
| 27628 | owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); |
| 27629 | if (owned_metaclass) { |
| 27630 | metaclass = owned_metaclass; |
| 27631 | } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))__builtin_expect(!!(PyErr_ExceptionMatches(PyExc_KeyError)), 1 )) { |
| 27632 | PyErr_Clear(); |
| 27633 | } else { |
| 27634 | return NULL((void*)0); |
| 27635 | } |
| 27636 | } |
| 27637 | if (calculate_metaclass && (!metaclass || PyType_Check(metaclass)((((((PyObject*)(metaclass))->ob_type))->tp_flags & ((1L<<31))) != 0))) { |
| 27638 | metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); |
| 27639 | Py_XDECREF(owned_metaclass)do { if ((owned_metaclass) == ((void*)0)) ; else do { if ( -- ((PyObject*)(owned_metaclass))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(owned_metaclass)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(owned_metaclass)))); } while (0); } while (0); |
| 27640 | if (unlikely(!metaclass)__builtin_expect(!!(!metaclass), 0)) |
| 27641 | return NULL((void*)0); |
| 27642 | owned_metaclass = metaclass; |
| 27643 | } |
| 27644 | margs = PyTuple_Pack(3, name, bases, dict); |
| 27645 | if (unlikely(!margs)__builtin_expect(!!(!margs), 0)) { |
| 27646 | result = NULL((void*)0); |
| 27647 | } else { |
| 27648 | result = PyObject_Call(metaclass, margs, mkw); |
| 27649 | Py_DECREF(margs)do { if ( --((PyObject*)(margs))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(margs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(margs)))); } while (0); |
| 27650 | } |
| 27651 | Py_XDECREF(owned_metaclass)do { if ((owned_metaclass) == ((void*)0)) ; else do { if ( -- ((PyObject*)(owned_metaclass))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(owned_metaclass)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(owned_metaclass)))); } while (0); } while (0); |
| 27652 | return result; |
| 27653 | } |
| 27654 | |
| 27655 | static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { |
| 27656 | PyObject* fake_module; |
| 27657 | PyTypeObject* cached_type = NULL((void*)0); |
| 27658 | fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI"0_20_1post0"); |
| 27659 | if (!fake_module) return NULL((void*)0); |
| 27660 | Py_INCREF(fake_module)( ((PyObject*)(fake_module))->ob_refcnt++); |
| 27661 | cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); |
| 27662 | if (cached_type) { |
| 27663 | if (!PyType_Check((PyObject*)cached_type)((((((PyObject*)((PyObject*)cached_type))->ob_type))->tp_flags & ((1L<<31))) != 0)) { |
| 27664 | PyErr_Format(PyExc_TypeError, |
| 27665 | "Shared Cython type %.200s is not a type object", |
| 27666 | type->tp_name); |
| 27667 | goto bad; |
| 27668 | } |
| 27669 | if (cached_type->tp_basicsize != type->tp_basicsize) { |
| 27670 | PyErr_Format(PyExc_TypeError, |
| 27671 | "Shared Cython type %.200s has the wrong size, try recompiling", |
| 27672 | type->tp_name); |
| 27673 | goto bad; |
| 27674 | } |
| 27675 | } else { |
| 27676 | if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; |
| 27677 | PyErr_Clear(); |
| 27678 | if (PyType_Ready(type) < 0) goto bad; |
| 27679 | if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) |
| 27680 | goto bad; |
| 27681 | Py_INCREF(type)( ((PyObject*)(type))->ob_refcnt++); |
| 27682 | cached_type = type; |
| 27683 | } |
| 27684 | done: |
| 27685 | Py_DECREF(fake_module)do { if ( --((PyObject*)(fake_module))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(fake_module)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(fake_module)))); } while (0); |
| 27686 | return cached_type; |
| 27687 | bad: |
| 27688 | Py_XDECREF(cached_type)do { if ((cached_type) == ((void*)0)) ; else do { if ( --((PyObject *)(cached_type))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(cached_type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cached_type)))); } while (0); } while (0); |
| 27689 | cached_type = NULL((void*)0); |
| 27690 | goto done; |
| 27691 | } |
| 27692 | |
| 27693 | static PyObject * |
| 27694 | __Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED__attribute__ ((__unused__)) void *closure) |
| 27695 | { |
| 27696 | if (unlikely(op->func_doc == NULL)__builtin_expect(!!(op->func_doc == ((void*)0)), 0)) { |
| 27697 | if (op->func.m_ml->ml_doc) { |
| 27698 | #if PY_MAJOR_VERSION2 >= 3 |
| 27699 | op->func_doc = PyUnicode_FromStringPyUnicodeUCS4_FromString(op->func.m_ml->ml_doc); |
| 27700 | #else |
| 27701 | op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); |
| 27702 | #endif |
| 27703 | if (unlikely(op->func_doc == NULL)__builtin_expect(!!(op->func_doc == ((void*)0)), 0)) |
| 27704 | return NULL((void*)0); |
| 27705 | } else { |
| 27706 | Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 27707 | return Py_None(&_Py_NoneStruct); |
| 27708 | } |
| 27709 | } |
| 27710 | Py_INCREF(op->func_doc)( ((PyObject*)(op->func_doc))->ob_refcnt++); |
| 27711 | return op->func_doc; |
| 27712 | } |
| 27713 | static int |
| 27714 | __Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) |
| 27715 | { |
| 27716 | PyObject *tmp = op->func_doc; |
| 27717 | if (value == NULL((void*)0)) |
| 27718 | value = Py_None(&_Py_NoneStruct); /* Mark as deleted */ |
| 27719 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27720 | op->func_doc = value; |
| 27721 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 27722 | return 0; |
| 27723 | } |
| 27724 | static PyObject * |
| 27725 | __Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) |
| 27726 | { |
| 27727 | if (unlikely(op->func_name == NULL)__builtin_expect(!!(op->func_name == ((void*)0)), 0)) { |
| 27728 | #if PY_MAJOR_VERSION2 >= 3 |
| 27729 | op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); |
| 27730 | #else |
| 27731 | op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); |
| 27732 | #endif |
| 27733 | if (unlikely(op->func_name == NULL)__builtin_expect(!!(op->func_name == ((void*)0)), 0)) |
| 27734 | return NULL((void*)0); |
| 27735 | } |
| 27736 | Py_INCREF(op->func_name)( ((PyObject*)(op->func_name))->ob_refcnt++); |
| 27737 | return op->func_name; |
| 27738 | } |
| 27739 | static int |
| 27740 | __Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) |
| 27741 | { |
| 27742 | PyObject *tmp; |
| 27743 | #if PY_MAJOR_VERSION2 >= 3 |
| 27744 | if (unlikely(value == NULL || !PyUnicode_Check(value))__builtin_expect(!!(value == ((void*)0) || !((((((PyObject*)( value))->ob_type))->tp_flags & ((1L<<28))) != 0)), 0)) { |
| 27745 | #else |
| 27746 | if (unlikely(value == NULL || !PyString_Check(value))__builtin_expect(!!(value == ((void*)0) || !((((((PyObject*)( value))->ob_type))->tp_flags & ((1L<<27))) != 0)), 0)) { |
| 27747 | #endif |
| 27748 | PyErr_SetString(PyExc_TypeError, |
| 27749 | "__name__ must be set to a string object"); |
| 27750 | return -1; |
| 27751 | } |
| 27752 | tmp = op->func_name; |
| 27753 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27754 | op->func_name = value; |
| 27755 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 27756 | return 0; |
| 27757 | } |
| 27758 | static PyObject * |
| 27759 | __Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) |
| 27760 | { |
| 27761 | Py_INCREF(op->func_qualname)( ((PyObject*)(op->func_qualname))->ob_refcnt++); |
| 27762 | return op->func_qualname; |
| 27763 | } |
| 27764 | static int |
| 27765 | __Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) |
| 27766 | { |
| 27767 | PyObject *tmp; |
| 27768 | #if PY_MAJOR_VERSION2 >= 3 |
| 27769 | if (unlikely(value == NULL || !PyUnicode_Check(value))__builtin_expect(!!(value == ((void*)0) || !((((((PyObject*)( value))->ob_type))->tp_flags & ((1L<<28))) != 0)), 0)) { |
| 27770 | #else |
| 27771 | if (unlikely(value == NULL || !PyString_Check(value))__builtin_expect(!!(value == ((void*)0) || !((((((PyObject*)( value))->ob_type))->tp_flags & ((1L<<27))) != 0)), 0)) { |
| 27772 | #endif |
| 27773 | PyErr_SetString(PyExc_TypeError, |
| 27774 | "__qualname__ must be set to a string object"); |
| 27775 | return -1; |
| 27776 | } |
| 27777 | tmp = op->func_qualname; |
| 27778 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27779 | op->func_qualname = value; |
| 27780 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 27781 | return 0; |
| 27782 | } |
| 27783 | static PyObject * |
| 27784 | __Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED__attribute__ ((__unused__)) void *closure) |
| 27785 | { |
| 27786 | PyObject *self; |
| 27787 | self = m->func_closure; |
| 27788 | if (self == NULL((void*)0)) |
| 27789 | self = Py_None(&_Py_NoneStruct); |
| 27790 | Py_INCREF(self)( ((PyObject*)(self))->ob_refcnt++); |
| 27791 | return self; |
| 27792 | } |
| 27793 | static PyObject * |
| 27794 | __Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) |
| 27795 | { |
| 27796 | if (unlikely(op->func_dict == NULL)__builtin_expect(!!(op->func_dict == ((void*)0)), 0)) { |
| 27797 | op->func_dict = PyDict_New(); |
| 27798 | if (unlikely(op->func_dict == NULL)__builtin_expect(!!(op->func_dict == ((void*)0)), 0)) |
| 27799 | return NULL((void*)0); |
| 27800 | } |
| 27801 | Py_INCREF(op->func_dict)( ((PyObject*)(op->func_dict))->ob_refcnt++); |
| 27802 | return op->func_dict; |
| 27803 | } |
| 27804 | static int |
| 27805 | __Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) |
| 27806 | { |
| 27807 | PyObject *tmp; |
| 27808 | if (unlikely(value == NULL)__builtin_expect(!!(value == ((void*)0)), 0)) { |
| 27809 | PyErr_SetString(PyExc_TypeError, |
| 27810 | "function's dictionary may not be deleted"); |
| 27811 | return -1; |
| 27812 | } |
| 27813 | if (unlikely(!PyDict_Check(value))__builtin_expect(!!(!((((((PyObject*)(value))->ob_type))-> tp_flags & ((1L<<29))) != 0)), 0)) { |
| 27814 | PyErr_SetString(PyExc_TypeError, |
| 27815 | "setting function's dictionary to a non-dict"); |
| 27816 | return -1; |
| 27817 | } |
| 27818 | tmp = op->func_dict; |
| 27819 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27820 | op->func_dict = value; |
| 27821 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 27822 | return 0; |
| 27823 | } |
| 27824 | static PyObject * |
| 27825 | __Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) |
| 27826 | { |
| 27827 | Py_INCREF(op->func_globals)( ((PyObject*)(op->func_globals))->ob_refcnt++); |
| 27828 | return op->func_globals; |
| 27829 | } |
| 27830 | static PyObject * |
| 27831 | __Pyx_CyFunction_get_closure(CYTHON_UNUSED__attribute__ ((__unused__)) __pyx_CyFunctionObject *op) |
| 27832 | { |
| 27833 | Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 27834 | return Py_None(&_Py_NoneStruct); |
| 27835 | } |
| 27836 | static PyObject * |
| 27837 | __Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) |
| 27838 | { |
| 27839 | PyObject* result = (op->func_code) ? op->func_code : Py_None(&_Py_NoneStruct); |
| 27840 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
| 27841 | return result; |
| 27842 | } |
| 27843 | static int |
| 27844 | __Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { |
| 27845 | PyObject *res = op->defaults_getter((PyObject *) op); |
| 27846 | if (unlikely(!res)__builtin_expect(!!(!res), 0)) |
| 27847 | return -1; |
| 27848 | op->defaults_tuple = PyTuple_GET_ITEM(res, 0)(((PyTupleObject *)(res))->ob_item[0]); |
| 27849 | Py_INCREF(op->defaults_tuple)( ((PyObject*)(op->defaults_tuple))->ob_refcnt++); |
| 27850 | op->defaults_kwdict = PyTuple_GET_ITEM(res, 1)(((PyTupleObject *)(res))->ob_item[1]); |
| 27851 | Py_INCREF(op->defaults_kwdict)( ((PyObject*)(op->defaults_kwdict))->ob_refcnt++); |
| 27852 | Py_DECREF(res)do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(res)))); } while (0); |
| 27853 | return 0; |
| 27854 | } |
| 27855 | static int |
| 27856 | __Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { |
| 27857 | PyObject* tmp; |
| 27858 | if (!value) { |
| 27859 | value = Py_None(&_Py_NoneStruct); |
| 27860 | } else if (value != Py_None(&_Py_NoneStruct) && !PyTuple_Check(value)((((((PyObject*)(value))->ob_type))->tp_flags & ((1L <<26))) != 0)) { |
| 27861 | PyErr_SetString(PyExc_TypeError, |
| 27862 | "__defaults__ must be set to a tuple object"); |
| 27863 | return -1; |
| 27864 | } |
| 27865 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27866 | tmp = op->defaults_tuple; |
| 27867 | op->defaults_tuple = value; |
| 27868 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 27869 | return 0; |
| 27870 | } |
| 27871 | static PyObject * |
| 27872 | __Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { |
| 27873 | PyObject* result = op->defaults_tuple; |
| 27874 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) { |
| 27875 | if (op->defaults_getter) { |
| 27876 | if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL((void*)0); |
| 27877 | result = op->defaults_tuple; |
| 27878 | } else { |
| 27879 | result = Py_None(&_Py_NoneStruct); |
| 27880 | } |
| 27881 | } |
| 27882 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
| 27883 | return result; |
| 27884 | } |
| 27885 | static int |
| 27886 | __Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { |
| 27887 | PyObject* tmp; |
| 27888 | if (!value) { |
| 27889 | value = Py_None(&_Py_NoneStruct); |
| 27890 | } else if (value != Py_None(&_Py_NoneStruct) && !PyDict_Check(value)((((((PyObject*)(value))->ob_type))->tp_flags & ((1L <<29))) != 0)) { |
| 27891 | PyErr_SetString(PyExc_TypeError, |
| 27892 | "__kwdefaults__ must be set to a dict object"); |
| 27893 | return -1; |
| 27894 | } |
| 27895 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 27896 | tmp = op->defaults_kwdict; |
| 27897 | op->defaults_kwdict = value; |
| 27898 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 27899 | return 0; |
| 27900 | } |
| 27901 | static PyObject * |
| 27902 | __Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { |
| 27903 | PyObject* result = op->defaults_kwdict; |
| 27904 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) { |
| 27905 | if (op->defaults_getter) { |
| 27906 | if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL((void*)0); |
| 27907 | result = op->defaults_kwdict; |
| 27908 | } else { |
| 27909 | result = Py_None(&_Py_NoneStruct); |
| 27910 | } |
| 27911 | } |
| 27912 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
| 27913 | return result; |
| 27914 | } |
| 27915 | static int |
| 27916 | __Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { |
| 27917 | PyObject* tmp; |
| 27918 | if (!value || value == Py_None(&_Py_NoneStruct)) { |
| 27919 | value = NULL((void*)0); |
| 27920 | } else if (!PyDict_Check(value)((((((PyObject*)(value))->ob_type))->tp_flags & ((1L <<29))) != 0)) { |
| 27921 | PyErr_SetString(PyExc_TypeError, |
| 27922 | "__annotations__ must be set to a dict object"); |
| 27923 | return -1; |
| 27924 | } |
| 27925 | Py_XINCREF(value)do { if ((value) == ((void*)0)) ; else ( ((PyObject*)(value)) ->ob_refcnt++); } while (0); |
| 27926 | tmp = op->func_annotations; |
| 27927 | op->func_annotations = value; |
| 27928 | Py_XDECREF(tmp)do { if ((tmp) == ((void*)0)) ; else do { if ( --((PyObject*) (tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(tmp)))); } while (0); } while (0); |
| 27929 | return 0; |
| 27930 | } |
| 27931 | static PyObject * |
| 27932 | __Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { |
| 27933 | PyObject* result = op->func_annotations; |
| 27934 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) { |
| 27935 | result = PyDict_New(); |
| 27936 | if (unlikely(!result)__builtin_expect(!!(!result), 0)) return NULL((void*)0); |
| 27937 | op->func_annotations = result; |
| 27938 | } |
| 27939 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
| 27940 | return result; |
| 27941 | } |
| 27942 | static PyGetSetDef __pyx_CyFunction_getsets[] = { |
| 27943 | {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, |
| 27944 | {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, |
| 27945 | {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, |
| 27946 | {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, |
| 27947 | {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, |
| 27948 | {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, |
| 27949 | {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, |
| 27950 | {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, |
| 27951 | {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, |
| 27952 | {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, |
| 27953 | {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, |
| 27954 | {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, |
| 27955 | {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, |
| 27956 | {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, |
| 27957 | {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, |
| 27958 | {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, |
| 27959 | {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, |
| 27960 | {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, |
| 27961 | {0, 0, 0, 0, 0} |
| 27962 | }; |
| 27963 | #ifndef PY_WRITE_RESTRICTED4 /* < Py2.5 */ |
| 27964 | #define PY_WRITE_RESTRICTED4 WRITE_RESTRICTED |
| 27965 | #endif |
| 27966 | static PyMemberDef __pyx_CyFunction_members[] = { |
| 27967 | {(char *) "__module__", T_OBJECT6, offsetof(__pyx_CyFunctionObject, func.m_module)__builtin_offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED4, 0}, |
| 27968 | {0, 0, 0, 0, 0} |
| 27969 | }; |
| 27970 | static PyObject * |
| 27971 | __Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED__attribute__ ((__unused__)) PyObject *args) |
| 27972 | { |
| 27973 | #if PY_MAJOR_VERSION2 >= 3 |
| 27974 | return PyUnicode_FromStringPyUnicodeUCS4_FromString(m->func.m_ml->ml_name); |
| 27975 | #else |
| 27976 | return PyString_FromString(m->func.m_ml->ml_name); |
| 27977 | #endif |
| 27978 | } |
| 27979 | static PyMethodDef __pyx_CyFunction_methods[] = { |
| 27980 | {__Pyx_NAMESTR("__reduce__")("__reduce__"), (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS0x0001, 0}, |
| 27981 | {0, 0, 0, 0} |
| 27982 | }; |
| 27983 | static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, |
| 27984 | PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { |
| 27985 | __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type)( (__pyx_CyFunctionObject *) _PyObject_GC_New(type) ); |
| 27986 | if (op == NULL((void*)0)) |
| 27987 | return NULL((void*)0); |
| 27988 | op->flags = flags; |
| 27989 | op->func_weakreflist = NULL((void*)0); |
| 27990 | op->func.m_ml = ml; |
| 27991 | op->func.m_self = (PyObject *) op; |
| 27992 | Py_XINCREF(closure)do { if ((closure) == ((void*)0)) ; else ( ((PyObject*)(closure ))->ob_refcnt++); } while (0); |
| 27993 | op->func_closure = closure; |
| 27994 | Py_XINCREF(module)do { if ((module) == ((void*)0)) ; else ( ((PyObject*)(module ))->ob_refcnt++); } while (0); |
| 27995 | op->func.m_module = module; |
| 27996 | op->func_dict = NULL((void*)0); |
| 27997 | op->func_name = NULL((void*)0); |
| 27998 | Py_INCREF(qualname)( ((PyObject*)(qualname))->ob_refcnt++); |
| 27999 | op->func_qualname = qualname; |
| 28000 | op->func_doc = NULL((void*)0); |
| 28001 | op->func_classobj = NULL((void*)0); |
| 28002 | op->func_globals = globals; |
| 28003 | Py_INCREF(op->func_globals)( ((PyObject*)(op->func_globals))->ob_refcnt++); |
| 28004 | Py_XINCREF(code)do { if ((code) == ((void*)0)) ; else ( ((PyObject*)(code))-> ob_refcnt++); } while (0); |
| 28005 | op->func_code = code; |
| 28006 | op->defaults_pyobjects = 0; |
| 28007 | op->defaults = NULL((void*)0); |
| 28008 | op->defaults_tuple = NULL((void*)0); |
| 28009 | op->defaults_kwdict = NULL((void*)0); |
| 28010 | op->defaults_getter = NULL((void*)0); |
| 28011 | op->func_annotations = NULL((void*)0); |
| 28012 | PyObject_GC_Track(op); |
| 28013 | return (PyObject *) op; |
| 28014 | } |
| 28015 | static int |
| 28016 | __Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) |
| 28017 | { |
| 28018 | Py_CLEAR(m->func_closure)do { if (m->func_closure) { PyObject *_py_tmp = (PyObject * )(m->func_closure); (m->func_closure) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28019 | Py_CLEAR(m->func.m_module)do { if (m->func.m_module) { PyObject *_py_tmp = (PyObject *)(m->func.m_module); (m->func.m_module) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28020 | Py_CLEAR(m->func_dict)do { if (m->func_dict) { PyObject *_py_tmp = (PyObject *)( m->func_dict); (m->func_dict) = ((void*)0); do { if ( -- ((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28021 | Py_CLEAR(m->func_name)do { if (m->func_name) { PyObject *_py_tmp = (PyObject *)( m->func_name); (m->func_name) = ((void*)0); do { if ( -- ((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28022 | Py_CLEAR(m->func_qualname)do { if (m->func_qualname) { PyObject *_py_tmp = (PyObject *)(m->func_qualname); (m->func_qualname) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28023 | Py_CLEAR(m->func_doc)do { if (m->func_doc) { PyObject *_py_tmp = (PyObject *)(m ->func_doc); (m->func_doc) = ((void*)0); do { if ( --(( PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28024 | Py_CLEAR(m->func_globals)do { if (m->func_globals) { PyObject *_py_tmp = (PyObject * )(m->func_globals); (m->func_globals) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28025 | Py_CLEAR(m->func_code)do { if (m->func_code) { PyObject *_py_tmp = (PyObject *)( m->func_code); (m->func_code) = ((void*)0); do { if ( -- ((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28026 | Py_CLEAR(m->func_classobj)do { if (m->func_classobj) { PyObject *_py_tmp = (PyObject *)(m->func_classobj); (m->func_classobj) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28027 | Py_CLEAR(m->defaults_tuple)do { if (m->defaults_tuple) { PyObject *_py_tmp = (PyObject *)(m->defaults_tuple); (m->defaults_tuple) = ((void*)0 ); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28028 | Py_CLEAR(m->defaults_kwdict)do { if (m->defaults_kwdict) { PyObject *_py_tmp = (PyObject *)(m->defaults_kwdict); (m->defaults_kwdict) = ((void* )0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0 ); } } while (0); |
| 28029 | Py_CLEAR(m->func_annotations)do { if (m->func_annotations) { PyObject *_py_tmp = (PyObject *)(m->func_annotations); (m->func_annotations) = ((void *)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0 ); } } while (0); |
| 28030 | if (m->defaults) { |
| 28031 | PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m)((PyObject * *)(((__pyx_CyFunctionObject *) (m))->defaults )); |
| 28032 | int i; |
| 28033 | for (i = 0; i < m->defaults_pyobjects; i++) |
| 28034 | Py_XDECREF(pydefaults[i])do { if ((pydefaults[i]) == ((void*)0)) ; else do { if ( --(( PyObject*)(pydefaults[i]))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(pydefaults[i])))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(pydefaults[i])))); } while (0); } while (0); |
| 28035 | PyMem_Free(m->defaults); |
| 28036 | m->defaults = NULL((void*)0); |
| 28037 | } |
| 28038 | return 0; |
| 28039 | } |
| 28040 | static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) |
| 28041 | { |
| 28042 | PyObject_GC_UnTrack(m); |
| 28043 | if (m->func_weakreflist != NULL((void*)0)) |
| 28044 | PyObject_ClearWeakRefs((PyObject *) m); |
| 28045 | __Pyx_CyFunction_clear(m); |
| 28046 | PyObject_GC_Del(m); |
| 28047 | } |
| 28048 | static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) |
| 28049 | { |
| 28050 | Py_VISIT(m->func_closure)do { if (m->func_closure) { int vret = visit((PyObject *)( m->func_closure), arg); if (vret) return vret; } } while ( 0); |
| 28051 | Py_VISIT(m->func.m_module)do { if (m->func.m_module) { int vret = visit((PyObject *) (m->func.m_module), arg); if (vret) return vret; } } while (0); |
| 28052 | Py_VISIT(m->func_dict)do { if (m->func_dict) { int vret = visit((PyObject *)(m-> func_dict), arg); if (vret) return vret; } } while (0); |
| 28053 | Py_VISIT(m->func_name)do { if (m->func_name) { int vret = visit((PyObject *)(m-> func_name), arg); if (vret) return vret; } } while (0); |
| 28054 | Py_VISIT(m->func_qualname)do { if (m->func_qualname) { int vret = visit((PyObject *) (m->func_qualname), arg); if (vret) return vret; } } while (0); |
| 28055 | Py_VISIT(m->func_doc)do { if (m->func_doc) { int vret = visit((PyObject *)(m-> func_doc), arg); if (vret) return vret; } } while (0); |
| 28056 | Py_VISIT(m->func_globals)do { if (m->func_globals) { int vret = visit((PyObject *)( m->func_globals), arg); if (vret) return vret; } } while ( 0); |
| 28057 | Py_VISIT(m->func_code)do { if (m->func_code) { int vret = visit((PyObject *)(m-> func_code), arg); if (vret) return vret; } } while (0); |
| 28058 | Py_VISIT(m->func_classobj)do { if (m->func_classobj) { int vret = visit((PyObject *) (m->func_classobj), arg); if (vret) return vret; } } while (0); |
| 28059 | Py_VISIT(m->defaults_tuple)do { if (m->defaults_tuple) { int vret = visit((PyObject * )(m->defaults_tuple), arg); if (vret) return vret; } } while (0); |
| 28060 | Py_VISIT(m->defaults_kwdict)do { if (m->defaults_kwdict) { int vret = visit((PyObject * )(m->defaults_kwdict), arg); if (vret) return vret; } } while (0); |
| 28061 | if (m->defaults) { |
| 28062 | PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m)((PyObject * *)(((__pyx_CyFunctionObject *) (m))->defaults )); |
| 28063 | int i; |
| 28064 | for (i = 0; i < m->defaults_pyobjects; i++) |
| 28065 | Py_VISIT(pydefaults[i])do { if (pydefaults[i]) { int vret = visit((PyObject *)(pydefaults [i]), arg); if (vret) return vret; } } while (0); |
| 28066 | } |
| 28067 | return 0; |
| 28068 | } |
| 28069 | static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) |
| 28070 | { |
| 28071 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
| 28072 | if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD0x01) { |
| 28073 | Py_INCREF(func)( ((PyObject*)(func))->ob_refcnt++); |
| 28074 | return func; |
| 28075 | } |
| 28076 | if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD0x02) { |
| 28077 | if (type == NULL((void*)0)) |
| 28078 | type = (PyObject *)(Py_TYPE(obj)(((PyObject*)(obj))->ob_type)); |
| 28079 | return PyMethod_New(func, |
| 28080 | type, (PyObject *)(Py_TYPE(type)(((PyObject*)(type))->ob_type))); |
| 28081 | } |
| 28082 | if (obj == Py_None(&_Py_NoneStruct)) |
| 28083 | obj = NULL((void*)0); |
| 28084 | return PyMethod_New(func, obj, type); |
| 28085 | } |
| 28086 | static PyObject* |
| 28087 | __Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) |
| 28088 | { |
| 28089 | #if PY_MAJOR_VERSION2 >= 3 |
| 28090 | return PyUnicode_FromFormatPyUnicodeUCS4_FromFormat("<cyfunction %U at %p>", |
| 28091 | op->func_qualname, (void *)op); |
| 28092 | #else |
| 28093 | return PyString_FromFormat("<cyfunction %s at %p>", |
| 28094 | PyString_AsString(op->func_qualname), (void *)op); |
| 28095 | #endif |
| 28096 | } |
| 28097 | #if CYTHON_COMPILING_IN_PYPY0 |
| 28098 | static PyObject * __Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { |
| 28099 | PyCFunctionObject* f = (PyCFunctionObject*)func; |
| 28100 | PyCFunction meth = PyCFunction_GET_FUNCTION(func)(((PyCFunctionObject *)func) -> m_ml -> ml_meth); |
| 28101 | PyObject *self = PyCFunction_GET_SELF(func)(((PyCFunctionObject *)func) -> m_self); |
| 28102 | Py_ssize_t size; |
| 28103 | switch (PyCFunction_GET_FLAGS(func)(((PyCFunctionObject *)func) -> m_ml -> ml_flags) & ~(METH_CLASS0x0010 | METH_STATIC0x0020 | METH_COEXIST0x0040)) { |
| 28104 | case METH_VARARGS0x0001: |
| 28105 | if (likely(kw == NULL)__builtin_expect(!!(kw == ((void*)0)), 1) || PyDict_Size(kw) == 0) |
| 28106 | return (*meth)(self, arg); |
| 28107 | break; |
| 28108 | case METH_VARARGS0x0001 | METH_KEYWORDS0x0002: |
| 28109 | return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); |
| 28110 | case METH_NOARGS0x0004: |
| 28111 | if (likely(kw == NULL)__builtin_expect(!!(kw == ((void*)0)), 1) || PyDict_Size(kw) == 0) { |
| 28112 | size = PyTuple_GET_SIZE(arg)(((PyVarObject*)(arg))->ob_size); |
| 28113 | if (size == 0) |
| 28114 | return (*meth)(self, NULL((void*)0)); |
| 28115 | PyErr_Format(PyExc_TypeError, |
| 28116 | "%.200s() takes no arguments (%zd given)", |
| 28117 | f->m_ml->ml_name, size); |
| 28118 | return NULL((void*)0); |
| 28119 | } |
| 28120 | break; |
| 28121 | case METH_O0x0008: |
| 28122 | if (likely(kw == NULL)__builtin_expect(!!(kw == ((void*)0)), 1) || PyDict_Size(kw) == 0) { |
| 28123 | size = PyTuple_GET_SIZE(arg)(((PyVarObject*)(arg))->ob_size); |
| 28124 | if (size == 1) |
| 28125 | return (*meth)(self, PyTuple_GET_ITEM(arg, 0)(((PyTupleObject *)(arg))->ob_item[0])); |
| 28126 | PyErr_Format(PyExc_TypeError, |
| 28127 | "%.200s() takes exactly one argument (%zd given)", |
| 28128 | f->m_ml->ml_name, size); |
| 28129 | return NULL((void*)0); |
| 28130 | } |
| 28131 | break; |
| 28132 | default: |
| 28133 | PyErr_SetString(PyExc_SystemError, "Bad call flags in " |
| 28134 | "__Pyx_CyFunction_Call. METH_OLDARGS is no " |
| 28135 | "longer supported!"); |
| 28136 | return NULL((void*)0); |
| 28137 | } |
| 28138 | PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", |
| 28139 | f->m_ml->ml_name); |
| 28140 | return NULL((void*)0); |
| 28141 | } |
| 28142 | #else |
| 28143 | static PyObject * __Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { |
| 28144 | return PyCFunction_Call(func, arg, kw); |
| 28145 | } |
| 28146 | #endif |
| 28147 | static PyTypeObject __pyx_CyFunctionType_type = { |
| 28148 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 28149 | __Pyx_NAMESTR("cython_function_or_method")("cython_function_or_method"), /*tp_name*/ |
| 28150 | sizeof(__pyx_CyFunctionObject), /*tp_basicsize*/ |
| 28151 | 0, /*tp_itemsize*/ |
| 28152 | (destructor) __Pyx_CyFunction_dealloc, /*tp_dealloc*/ |
| 28153 | 0, /*tp_print*/ |
| 28154 | 0, /*tp_getattr*/ |
| 28155 | 0, /*tp_setattr*/ |
| 28156 | #if PY_MAJOR_VERSION2 < 3 |
| 28157 | 0, /*tp_compare*/ |
| 28158 | #else |
| 28159 | 0, /*reserved*/ |
| 28160 | #endif |
| 28161 | (reprfunc) __Pyx_CyFunction_repr, /*tp_repr*/ |
| 28162 | 0, /*tp_as_number*/ |
| 28163 | 0, /*tp_as_sequence*/ |
| 28164 | 0, /*tp_as_mapping*/ |
| 28165 | 0, /*tp_hash*/ |
| 28166 | __Pyx_CyFunction_Call, /*tp_call*/ |
| 28167 | 0, /*tp_str*/ |
| 28168 | 0, /*tp_getattro*/ |
| 28169 | 0, /*tp_setattro*/ |
| 28170 | 0, /*tp_as_buffer*/ |
| 28171 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0) | Py_TPFLAGS_HAVE_GC(1L<<14), /* tp_flags*/ |
| 28172 | 0, /*tp_doc*/ |
| 28173 | (traverseproc) __Pyx_CyFunction_traverse, /*tp_traverse*/ |
| 28174 | (inquiry) __Pyx_CyFunction_clear, /*tp_clear*/ |
| 28175 | 0, /*tp_richcompare*/ |
| 28176 | offsetof(__pyx_CyFunctionObject, func_weakreflist)__builtin_offsetof(__pyx_CyFunctionObject, func_weakreflist), /* tp_weaklistoffse */ |
| 28177 | 0, /*tp_iter*/ |
| 28178 | 0, /*tp_iternext*/ |
| 28179 | __pyx_CyFunction_methods, /*tp_methods*/ |
| 28180 | __pyx_CyFunction_members, /*tp_members*/ |
| 28181 | __pyx_CyFunction_getsets, /*tp_getset*/ |
| 28182 | 0, /*tp_base*/ |
| 28183 | 0, /*tp_dict*/ |
| 28184 | __Pyx_CyFunction_descr_get, /*tp_descr_get*/ |
| 28185 | 0, /*tp_descr_set*/ |
| 28186 | offsetof(__pyx_CyFunctionObject, func_dict)__builtin_offsetof(__pyx_CyFunctionObject, func_dict),/*tp_dictoffset*/ |
| 28187 | 0, /*tp_init*/ |
| 28188 | 0, /*tp_alloc*/ |
| 28189 | 0, /*tp_new*/ |
| 28190 | 0, /*tp_free*/ |
| 28191 | 0, /*tp_is_gc*/ |
| 28192 | 0, /*tp_bases*/ |
| 28193 | 0, /*tp_mro*/ |
| 28194 | 0, /*tp_cache*/ |
| 28195 | 0, /*tp_subclasses*/ |
| 28196 | 0, /*tp_weaklist*/ |
| 28197 | 0, /*tp_del*/ |
| 28198 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 28199 | 0, /*tp_version_tag*/ |
| 28200 | #endif |
| 28201 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 28202 | 0, /*tp_finalize*/ |
| 28203 | #endif |
| 28204 | }; |
| 28205 | static int __Pyx_CyFunction_init(void) { |
| 28206 | #if !CYTHON_COMPILING_IN_PYPY0 |
| 28207 | __pyx_CyFunctionType_type.tp_call = PyCFunction_Call; |
| 28208 | #endif |
| 28209 | __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); |
| 28210 | if (__pyx_CyFunctionType == NULL((void*)0)) { |
| 28211 | return -1; |
| 28212 | } |
| 28213 | return 0; |
| 28214 | } |
| 28215 | static CYTHON_INLINE__inline__ void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { |
| 28216 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
| 28217 | m->defaults = PyMem_Malloc(size); |
| 28218 | if (!m->defaults) |
| 28219 | return PyErr_NoMemory(); |
| 28220 | memset(m->defaults, 0, size); |
| 28221 | m->defaults_pyobjects = pyobjects; |
| 28222 | return m->defaults; |
| 28223 | } |
| 28224 | static CYTHON_INLINE__inline__ void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { |
| 28225 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
| 28226 | m->defaults_tuple = tuple; |
| 28227 | Py_INCREF(tuple)( ((PyObject*)(tuple))->ob_refcnt++); |
| 28228 | } |
| 28229 | static CYTHON_INLINE__inline__ void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { |
| 28230 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
| 28231 | m->defaults_kwdict = dict; |
| 28232 | Py_INCREF(dict)( ((PyObject*)(dict))->ob_refcnt++); |
| 28233 | } |
| 28234 | static CYTHON_INLINE__inline__ void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { |
| 28235 | __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; |
| 28236 | m->func_annotations = dict; |
| 28237 | Py_INCREF(dict)( ((PyObject*)(dict))->ob_refcnt++); |
| 28238 | } |
| 28239 | |
| 28240 | static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) { |
| 28241 | PyObject *empty_list = 0; |
| 28242 | PyObject *module = 0; |
| 28243 | PyObject *global_dict = 0; |
| 28244 | PyObject *empty_dict = 0; |
| 28245 | PyObject *list; |
| 28246 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03030000 |
| 28247 | PyObject *py_import; |
| 28248 | py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import); |
| 28249 | if (!py_import) |
| 28250 | goto bad; |
| 28251 | #endif |
| 28252 | if (from_list) |
| 28253 | list = from_list; |
| 28254 | else { |
| 28255 | empty_list = PyList_New(0); |
| 28256 | if (!empty_list) |
| 28257 | goto bad; |
| 28258 | list = empty_list; |
| 28259 | } |
| 28260 | global_dict = PyModule_GetDict(__pyx_m); |
| 28261 | if (!global_dict) |
| 28262 | goto bad; |
| 28263 | empty_dict = PyDict_New(); |
| 28264 | if (!empty_dict) |
| 28265 | goto bad; |
| 28266 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 |
| 28267 | { |
| 28268 | #if PY_MAJOR_VERSION2 >= 3 |
| 28269 | if (level == -1) { |
| 28270 | if (strchr(__Pyx_MODULE_NAME"xmmsvalue", '.')) { |
| 28271 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03030000 |
| 28272 | PyObject *py_level = PyInt_FromLong(1); |
| 28273 | if (!py_level) |
| 28274 | goto bad; |
| 28275 | module = PyObject_CallFunctionObjArgs(py_import, |
| 28276 | name, global_dict, empty_dict, list, py_level, NULL((void*)0)); |
| 28277 | Py_DECREF(py_level)do { if ( --((PyObject*)(py_level))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_level)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(py_level)))); } while ( 0); |
| 28278 | #else |
| 28279 | module = PyImport_ImportModuleLevelObject( |
| 28280 | name, global_dict, empty_dict, list, 1); |
| 28281 | #endif |
| 28282 | if (!module) { |
| 28283 | if (!PyErr_ExceptionMatches(PyExc_ImportError)) |
| 28284 | goto bad; |
| 28285 | PyErr_Clear(); |
| 28286 | } |
| 28287 | } |
| 28288 | level = 0; /* try absolute import on failure */ |
| 28289 | } |
| 28290 | #endif |
| 28291 | if (!module) { |
| 28292 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03030000 |
| 28293 | PyObject *py_level = PyInt_FromLong(level); |
| 28294 | if (!py_level) |
| 28295 | goto bad; |
| 28296 | module = PyObject_CallFunctionObjArgs(py_import, |
| 28297 | name, global_dict, empty_dict, list, py_level, NULL((void*)0)); |
| 28298 | Py_DECREF(py_level)do { if ( --((PyObject*)(py_level))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_level)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(py_level)))); } while ( 0); |
| 28299 | #else |
| 28300 | module = PyImport_ImportModuleLevelObject( |
| 28301 | name, global_dict, empty_dict, list, level); |
| 28302 | #endif |
| 28303 | } |
| 28304 | } |
| 28305 | #else |
| 28306 | if (level>0) { |
| 28307 | PyErr_SetString(PyExc_RuntimeError, "Relative import is not supported for Python <=2.4."); |
| 28308 | goto bad; |
| 28309 | } |
| 28310 | module = PyObject_CallFunctionObjArgs(py_import, |
| 28311 | name, global_dict, empty_dict, list, NULL((void*)0)); |
| 28312 | #endif |
| 28313 | bad: |
| 28314 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03030000 |
| 28315 | Py_XDECREF(py_import)do { if ((py_import) == ((void*)0)) ; else do { if ( --((PyObject *)(py_import))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(py_import)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(py_import)))); } while (0); } while (0); |
| 28316 | #endif |
| 28317 | Py_XDECREF(empty_list)do { if ((empty_list) == ((void*)0)) ; else do { if ( --((PyObject *)(empty_list))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(empty_list)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(empty_list)))); } while (0); } while (0); |
| 28318 | Py_XDECREF(empty_dict)do { if ((empty_dict) == ((void*)0)) ; else do { if ( --((PyObject *)(empty_dict))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(empty_dict)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(empty_dict)))); } while (0); } while (0); |
| 28319 | return module; |
| 28320 | } |
| 28321 | |
| 28322 | #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func){ func_type value = func(x); if (sizeof(target_type) < sizeof (func_type)) { if (__builtin_expect(!!(value != (func_type) ( target_type) value), 0)) { func_type zero = 0; PyErr_SetString (PyExc_OverflowError, (is_unsigned && __builtin_expect (!!(value < zero), 0)) ? "can't convert negative value to " "target_type" : "value too large to convert to " "target_type" ); return (target_type) -1; } } return (target_type) value; } \ |
| 28323 | { \ |
| 28324 | func_type value = func(x); \ |
| 28325 | if (sizeof(target_type) < sizeof(func_type)) { \ |
| 28326 | if (unlikely(value != (func_type) (target_type) value)__builtin_expect(!!(value != (func_type) (target_type) value) , 0)) { \ |
| 28327 | func_type zero = 0; \ |
| 28328 | PyErr_SetString(PyExc_OverflowError, \ |
| 28329 | (is_unsigned && unlikely(value < zero)__builtin_expect(!!(value < zero), 0)) ? \ |
| 28330 | "can't convert negative value to " #target_type : \ |
| 28331 | "value too large to convert to " #target_type); \ |
| 28332 | return (target_type) -1; \ |
| 28333 | } \ |
| 28334 | } \ |
| 28335 | return (target_type) value; \ |
| 28336 | } |
| 28337 | |
| 28338 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_MAJOR_VERSION2 >= 3 |
| 28339 | #if CYTHON_USE_PYLONG_INTERNALS0 |
| 28340 | #include "longintrepr.h" |
| 28341 | #endif |
| 28342 | #endif |
| 28343 | static CYTHON_INLINE__inline__ int __Pyx_PyInt_As_int(PyObject *x) { |
| 28344 | const int neg_one = (int) -1, const_zero = 0; |
| 28345 | const int is_unsigned = neg_one > const_zero; |
| 28346 | #if PY_MAJOR_VERSION2 < 3 |
| 28347 | if (likely(PyInt_Check(x))__builtin_expect(!!(((((x)->ob_type)->tp_flags & (( 1L<<23))) != 0)), 1)) { |
| 28348 | if (sizeof(int) < sizeof(long)) { |
| 28349 | __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG){ long value = (((PyIntObject *)(x))->ob_ival); if (sizeof (int) < sizeof(long)) { if (__builtin_expect(!!(value != ( long) (int) value), 0)) { long zero = 0; PyErr_SetString(PyExc_OverflowError , (is_unsigned && __builtin_expect(!!(value < zero ), 0)) ? "can't convert negative value to " "int" : "value too large to convert to " "int"); return (int) -1; } } return (int) value; } |
| 28350 | } else { |
| 28351 | long val = PyInt_AS_LONG(x)(((PyIntObject *)(x))->ob_ival); |
| 28352 | if (is_unsigned && unlikely(val < 0)__builtin_expect(!!(val < 0), 0)) { |
| 28353 | PyErr_SetString(PyExc_OverflowError, |
| 28354 | "can't convert negative value to int"); |
| 28355 | return (int) -1; |
| 28356 | } |
| 28357 | return (int) val; |
| 28358 | } |
| 28359 | } else |
| 28360 | #endif |
| 28361 | if (likely(PyLong_Check(x))__builtin_expect(!!(((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<<24))) != 0)), 1)) { |
| 28362 | if (is_unsigned) { |
| 28363 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_MAJOR_VERSION2 >= 3 |
| 28364 | #if CYTHON_USE_PYLONG_INTERNALS0 |
| 28365 | if (sizeof(digit) <= sizeof(int)) { |
| 28366 | switch (Py_SIZE(x)(((PyVarObject*)(x))->ob_size)) { |
| 28367 | case 0: return 0; |
| 28368 | case 1: return (int) ((PyLongObject*)x)->ob_digit[0]; |
| 28369 | } |
| 28370 | } |
| 28371 | #endif |
| 28372 | #endif |
| 28373 | if (unlikely(Py_SIZE(x) < 0)__builtin_expect(!!((((PyVarObject*)(x))->ob_size) < 0) , 0)) { |
| 28374 | PyErr_SetString(PyExc_OverflowError, |
| 28375 | "can't convert negative value to int"); |
| 28376 | return (int) -1; |
| 28377 | } |
| 28378 | if (sizeof(int) <= sizeof(unsigned long)) { |
| 28379 | __PYX_VERIFY_RETURN_INT(int, unsigned long, PyLong_AsUnsignedLong){ unsigned long value = PyLong_AsUnsignedLong(x); if (sizeof( int) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (int) value), 0)) { unsigned long zero = 0 ; PyErr_SetString(PyExc_OverflowError, (is_unsigned && __builtin_expect(!!(value < zero), 0)) ? "can't convert negative value to " "int" : "value too large to convert to " "int"); return (int ) -1; } } return (int) value; } |
| 28380 | } else if (sizeof(int) <= sizeof(unsigned long long)) { |
| 28381 | __PYX_VERIFY_RETURN_INT(int, unsigned long long, PyLong_AsUnsignedLongLong){ unsigned long long value = PyLong_AsUnsignedLongLong(x); if (sizeof(int) < sizeof(unsigned long long)) { if (__builtin_expect (!!(value != (unsigned long long) (int) value), 0)) { unsigned long long zero = 0; PyErr_SetString(PyExc_OverflowError, (is_unsigned && __builtin_expect(!!(value < zero), 0)) ? "can't convert negative value to " "int" : "value too large to convert to " "int"); return (int ) -1; } } return (int) value; } |
| 28382 | } |
| 28383 | } else { |
| 28384 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_MAJOR_VERSION2 >= 3 |
| 28385 | #if CYTHON_USE_PYLONG_INTERNALS0 |
| 28386 | if (sizeof(digit) <= sizeof(int)) { |
| 28387 | switch (Py_SIZE(x)(((PyVarObject*)(x))->ob_size)) { |
| 28388 | case 0: return 0; |
| 28389 | case 1: return +(int) ((PyLongObject*)x)->ob_digit[0]; |
| 28390 | case -1: return -(int) ((PyLongObject*)x)->ob_digit[0]; |
| 28391 | } |
| 28392 | } |
| 28393 | #endif |
| 28394 | #endif |
| 28395 | if (sizeof(int) <= sizeof(long)) { |
| 28396 | __PYX_VERIFY_RETURN_INT(int, long, PyLong_AsLong){ long value = PyLong_AsLong(x); if (sizeof(int) < sizeof( long)) { if (__builtin_expect(!!(value != (long) (int) value) , 0)) { long zero = 0; PyErr_SetString(PyExc_OverflowError, ( is_unsigned && __builtin_expect(!!(value < zero), 0 )) ? "can't convert negative value to " "int" : "value too large to convert to " "int"); return (int) -1; } } return (int) value; } |
| 28397 | } else if (sizeof(int) <= sizeof(long long)) { |
| 28398 | __PYX_VERIFY_RETURN_INT(int, long long, PyLong_AsLongLong){ long long value = PyLong_AsLongLong(x); if (sizeof(int) < sizeof(long long)) { if (__builtin_expect(!!(value != (long long ) (int) value), 0)) { long long zero = 0; PyErr_SetString(PyExc_OverflowError , (is_unsigned && __builtin_expect(!!(value < zero ), 0)) ? "can't convert negative value to " "int" : "value too large to convert to " "int"); return (int) -1; } } return (int) value; } |
| 28399 | } |
| 28400 | } |
| 28401 | { |
| 28402 | #if CYTHON_COMPILING_IN_PYPY0 && !defined(_PyLong_AsByteArray) |
| 28403 | PyErr_SetString(PyExc_RuntimeError, |
| 28404 | "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); |
| 28405 | #else |
| 28406 | int val; |
| 28407 | PyObject *v = __Pyx_PyNumber_Int(x); |
| 28408 | #if PY_MAJOR_VERSION2 < 3 |
| 28409 | if (likely(v)__builtin_expect(!!(v), 1) && !PyLong_Check(v)((((((PyObject*)(v))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
| 28410 | PyObject *tmp = v; |
| 28411 | v = PyNumber_Long(tmp); |
| 28412 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
| 28413 | } |
| 28414 | #endif |
| 28415 | if (likely(v)__builtin_expect(!!(v), 1)) { |
| 28416 | int one = 1; int is_little = (int)*(unsigned char *)&one; |
| 28417 | unsigned char *bytes = (unsigned char *)&val; |
| 28418 | int ret = _PyLong_AsByteArray((PyLongObject *)v, |
| 28419 | bytes, sizeof(val), |
| 28420 | is_little, !is_unsigned); |
| 28421 | Py_DECREF(v)do { if ( --((PyObject*)(v))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(v)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(v)))); } while (0); |
| 28422 | if (likely(!ret)__builtin_expect(!!(!ret), 1)) |
| 28423 | return val; |
| 28424 | } |
| 28425 | #endif |
| 28426 | return (int) -1; |
| 28427 | } |
| 28428 | } else { |
| 28429 | int val; |
| 28430 | PyObject *tmp = __Pyx_PyNumber_Int(x); |
| 28431 | if (!tmp) return (int) -1; |
| 28432 | val = __Pyx_PyInt_As_int(tmp); |
| 28433 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
| 28434 | return val; |
| 28435 | } |
| 28436 | } |
| 28437 | |
| 28438 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyInt_From_int64_t(int64_t value) { |
| 28439 | const int64_t neg_one = (int64_t) -1, const_zero = 0; |
| 28440 | const int is_unsigned = neg_one > const_zero; |
| 28441 | if (is_unsigned) { |
| 28442 | if (sizeof(int64_t) < sizeof(long)) { |
| 28443 | return PyInt_FromLong((long) value); |
| 28444 | } else if (sizeof(int64_t) <= sizeof(unsigned long)) { |
| 28445 | return PyLong_FromUnsignedLong((unsigned long) value); |
| 28446 | } else if (sizeof(int64_t) <= sizeof(unsigned long long)) { |
| 28447 | return PyLong_FromUnsignedLongLong((unsigned long long) value); |
| 28448 | } |
| 28449 | } else { |
| 28450 | if (sizeof(int64_t) <= sizeof(long)) { |
| 28451 | return PyInt_FromLong((long) value); |
| 28452 | } else if (sizeof(int64_t) <= sizeof(long long)) { |
| 28453 | return PyLong_FromLongLong((long long) value); |
| 28454 | } |
| 28455 | } |
| 28456 | { |
| 28457 | int one = 1; int little = (int)*(unsigned char *)&one; |
| 28458 | unsigned char *bytes = (unsigned char *)&value; |
| 28459 | return _PyLong_FromByteArray(bytes, sizeof(int64_t), |
| 28460 | little, !is_unsigned); |
| 28461 | } |
| 28462 | } |
| 28463 | |
| 28464 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyInt_From_int(int value) { |
| 28465 | const int neg_one = (int) -1, const_zero = 0; |
| 28466 | const int is_unsigned = neg_one > const_zero; |
| 28467 | if (is_unsigned) { |
| 28468 | if (sizeof(int) < sizeof(long)) { |
| 28469 | return PyInt_FromLong((long) value); |
| 28470 | } else if (sizeof(int) <= sizeof(unsigned long)) { |
| 28471 | return PyLong_FromUnsignedLong((unsigned long) value); |
| 28472 | } else if (sizeof(int) <= sizeof(unsigned long long)) { |
| 28473 | return PyLong_FromUnsignedLongLong((unsigned long long) value); |
| 28474 | } |
| 28475 | } else { |
| 28476 | if (sizeof(int) <= sizeof(long)) { |
| 28477 | return PyInt_FromLong((long) value); |
| 28478 | } else if (sizeof(int) <= sizeof(long long)) { |
| 28479 | return PyLong_FromLongLong((long long) value); |
| 28480 | } |
| 28481 | } |
| 28482 | { |
| 28483 | int one = 1; int little = (int)*(unsigned char *)&one; |
| 28484 | unsigned char *bytes = (unsigned char *)&value; |
| 28485 | return _PyLong_FromByteArray(bytes, sizeof(int), |
| 28486 | little, !is_unsigned); |
| 28487 | } |
| 28488 | } |
| 28489 | |
| 28490 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyInt_From_long(long value) { |
| 28491 | const long neg_one = (long) -1, const_zero = 0; |
| 28492 | const int is_unsigned = neg_one > const_zero; |
| 28493 | if (is_unsigned) { |
| 28494 | if (sizeof(long) < sizeof(long)) { |
| 28495 | return PyInt_FromLong((long) value); |
| 28496 | } else if (sizeof(long) <= sizeof(unsigned long)) { |
| 28497 | return PyLong_FromUnsignedLong((unsigned long) value); |
| 28498 | } else if (sizeof(long) <= sizeof(unsigned long long)) { |
| 28499 | return PyLong_FromUnsignedLongLong((unsigned long long) value); |
| 28500 | } |
| 28501 | } else { |
| 28502 | if (sizeof(long) <= sizeof(long)) { |
| 28503 | return PyInt_FromLong((long) value); |
| 28504 | } else if (sizeof(long) <= sizeof(long long)) { |
| 28505 | return PyLong_FromLongLong((long long) value); |
| 28506 | } |
| 28507 | } |
| 28508 | { |
| 28509 | int one = 1; int little = (int)*(unsigned char *)&one; |
| 28510 | unsigned char *bytes = (unsigned char *)&value; |
| 28511 | return _PyLong_FromByteArray(bytes, sizeof(long), |
| 28512 | little, !is_unsigned); |
| 28513 | } |
| 28514 | } |
| 28515 | |
| 28516 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_MAJOR_VERSION2 >= 3 |
| 28517 | #if CYTHON_USE_PYLONG_INTERNALS0 |
| 28518 | #include "longintrepr.h" |
| 28519 | #endif |
| 28520 | #endif |
| 28521 | static CYTHON_INLINE__inline__ long __Pyx_PyInt_As_long(PyObject *x) { |
| 28522 | const long neg_one = (long) -1, const_zero = 0; |
| 28523 | const int is_unsigned = neg_one > const_zero; |
| 28524 | #if PY_MAJOR_VERSION2 < 3 |
| 28525 | if (likely(PyInt_Check(x))__builtin_expect(!!(((((x)->ob_type)->tp_flags & (( 1L<<23))) != 0)), 1)) { |
| 28526 | if (sizeof(long) < sizeof(long)) { |
| 28527 | __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG){ long value = (((PyIntObject *)(x))->ob_ival); if (sizeof (long) < sizeof(long)) { if (__builtin_expect(!!(value != ( long) (long) value), 0)) { long zero = 0; PyErr_SetString(PyExc_OverflowError , (is_unsigned && __builtin_expect(!!(value < zero ), 0)) ? "can't convert negative value to " "long" : "value too large to convert to " "long"); return (long) -1; } } return (long) value; } |
| 28528 | } else { |
| 28529 | long val = PyInt_AS_LONG(x)(((PyIntObject *)(x))->ob_ival); |
| 28530 | if (is_unsigned && unlikely(val < 0)__builtin_expect(!!(val < 0), 0)) { |
| 28531 | PyErr_SetString(PyExc_OverflowError, |
| 28532 | "can't convert negative value to long"); |
| 28533 | return (long) -1; |
| 28534 | } |
| 28535 | return (long) val; |
| 28536 | } |
| 28537 | } else |
| 28538 | #endif |
| 28539 | if (likely(PyLong_Check(x))__builtin_expect(!!(((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<<24))) != 0)), 1)) { |
| 28540 | if (is_unsigned) { |
| 28541 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_MAJOR_VERSION2 >= 3 |
| 28542 | #if CYTHON_USE_PYLONG_INTERNALS0 |
| 28543 | if (sizeof(digit) <= sizeof(long)) { |
| 28544 | switch (Py_SIZE(x)(((PyVarObject*)(x))->ob_size)) { |
| 28545 | case 0: return 0; |
| 28546 | case 1: return (long) ((PyLongObject*)x)->ob_digit[0]; |
| 28547 | } |
| 28548 | } |
| 28549 | #endif |
| 28550 | #endif |
| 28551 | if (unlikely(Py_SIZE(x) < 0)__builtin_expect(!!((((PyVarObject*)(x))->ob_size) < 0) , 0)) { |
| 28552 | PyErr_SetString(PyExc_OverflowError, |
| 28553 | "can't convert negative value to long"); |
| 28554 | return (long) -1; |
| 28555 | } |
| 28556 | if (sizeof(long) <= sizeof(unsigned long)) { |
| 28557 | __PYX_VERIFY_RETURN_INT(long, unsigned long, PyLong_AsUnsignedLong){ unsigned long value = PyLong_AsUnsignedLong(x); if (sizeof( long) < sizeof(unsigned long)) { if (__builtin_expect(!!(value != (unsigned long) (long) value), 0)) { unsigned long zero = 0; PyErr_SetString(PyExc_OverflowError, (is_unsigned && __builtin_expect(!!(value < zero), 0)) ? "can't convert negative value to " "long" : "value too large to convert to " "long"); return (long ) -1; } } return (long) value; } |
| 28558 | } else if (sizeof(long) <= sizeof(unsigned long long)) { |
| 28559 | __PYX_VERIFY_RETURN_INT(long, unsigned long long, PyLong_AsUnsignedLongLong){ unsigned long long value = PyLong_AsUnsignedLongLong(x); if (sizeof(long) < sizeof(unsigned long long)) { if (__builtin_expect (!!(value != (unsigned long long) (long) value), 0)) { unsigned long long zero = 0; PyErr_SetString(PyExc_OverflowError, (is_unsigned && __builtin_expect(!!(value < zero), 0)) ? "can't convert negative value to " "long" : "value too large to convert to " "long"); return (long ) -1; } } return (long) value; } |
| 28560 | } |
| 28561 | } else { |
| 28562 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_MAJOR_VERSION2 >= 3 |
| 28563 | #if CYTHON_USE_PYLONG_INTERNALS0 |
| 28564 | if (sizeof(digit) <= sizeof(long)) { |
| 28565 | switch (Py_SIZE(x)(((PyVarObject*)(x))->ob_size)) { |
| 28566 | case 0: return 0; |
| 28567 | case 1: return +(long) ((PyLongObject*)x)->ob_digit[0]; |
| 28568 | case -1: return -(long) ((PyLongObject*)x)->ob_digit[0]; |
| 28569 | } |
| 28570 | } |
| 28571 | #endif |
| 28572 | #endif |
| 28573 | if (sizeof(long) <= sizeof(long)) { |
| 28574 | __PYX_VERIFY_RETURN_INT(long, long, PyLong_AsLong){ long value = PyLong_AsLong(x); if (sizeof(long) < sizeof (long)) { if (__builtin_expect(!!(value != (long) (long) value ), 0)) { long zero = 0; PyErr_SetString(PyExc_OverflowError, ( is_unsigned && __builtin_expect(!!(value < zero), 0 )) ? "can't convert negative value to " "long" : "value too large to convert to " "long"); return (long) -1; } } return (long) value; } |
| 28575 | } else if (sizeof(long) <= sizeof(long long)) { |
| 28576 | __PYX_VERIFY_RETURN_INT(long, long long, PyLong_AsLongLong){ long long value = PyLong_AsLongLong(x); if (sizeof(long) < sizeof(long long)) { if (__builtin_expect(!!(value != (long long ) (long) value), 0)) { long long zero = 0; PyErr_SetString(PyExc_OverflowError , (is_unsigned && __builtin_expect(!!(value < zero ), 0)) ? "can't convert negative value to " "long" : "value too large to convert to " "long"); return (long) -1; } } return (long) value; } |
| 28577 | } |
| 28578 | } |
| 28579 | { |
| 28580 | #if CYTHON_COMPILING_IN_PYPY0 && !defined(_PyLong_AsByteArray) |
| 28581 | PyErr_SetString(PyExc_RuntimeError, |
| 28582 | "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers"); |
| 28583 | #else |
| 28584 | long val; |
| 28585 | PyObject *v = __Pyx_PyNumber_Int(x); |
| 28586 | #if PY_MAJOR_VERSION2 < 3 |
| 28587 | if (likely(v)__builtin_expect(!!(v), 1) && !PyLong_Check(v)((((((PyObject*)(v))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
| 28588 | PyObject *tmp = v; |
| 28589 | v = PyNumber_Long(tmp); |
| 28590 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
| 28591 | } |
| 28592 | #endif |
| 28593 | if (likely(v)__builtin_expect(!!(v), 1)) { |
| 28594 | int one = 1; int is_little = (int)*(unsigned char *)&one; |
| 28595 | unsigned char *bytes = (unsigned char *)&val; |
| 28596 | int ret = _PyLong_AsByteArray((PyLongObject *)v, |
| 28597 | bytes, sizeof(val), |
| 28598 | is_little, !is_unsigned); |
| 28599 | Py_DECREF(v)do { if ( --((PyObject*)(v))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(v)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(v)))); } while (0); |
| 28600 | if (likely(!ret)__builtin_expect(!!(!ret), 1)) |
| 28601 | return val; |
| 28602 | } |
| 28603 | #endif |
| 28604 | return (long) -1; |
| 28605 | } |
| 28606 | } else { |
| 28607 | long val; |
| 28608 | PyObject *tmp = __Pyx_PyNumber_Int(x); |
| 28609 | if (!tmp) return (long) -1; |
| 28610 | val = __Pyx_PyInt_As_long(tmp); |
| 28611 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
| 28612 | return val; |
| 28613 | } |
| 28614 | } |
| 28615 | |
| 28616 | static CYTHON_INLINE__inline__ void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) { |
| 28617 | PyObject *tmp_type, *tmp_value, *tmp_tb; |
| 28618 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 28619 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 28620 | tmp_type = tstate->exc_type; |
| 28621 | tmp_value = tstate->exc_value; |
| 28622 | tmp_tb = tstate->exc_traceback; |
| 28623 | tstate->exc_type = *type; |
| 28624 | tstate->exc_value = *value; |
| 28625 | tstate->exc_traceback = *tb; |
| 28626 | #else |
| 28627 | PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb); |
| 28628 | PyErr_SetExcInfo(*type, *value, *tb); |
| 28629 | #endif |
| 28630 | *type = tmp_type; |
| 28631 | *value = tmp_value; |
| 28632 | *tb = tmp_tb; |
| 28633 | } |
| 28634 | |
| 28635 | static PyObject *__Pyx_Generator_Next(PyObject *self); |
| 28636 | static PyObject *__Pyx_Generator_Send(PyObject *self, PyObject *value); |
| 28637 | static PyObject *__Pyx_Generator_Close(PyObject *self); |
| 28638 | static PyObject *__Pyx_Generator_Throw(PyObject *gen, PyObject *args); |
| 28639 | static PyTypeObject *__pyx_GeneratorType = 0; |
| 28640 | #define __Pyx_Generator_CheckExact(obj)((((PyObject*)(obj))->ob_type) == __pyx_GeneratorType) (Py_TYPE(obj)(((PyObject*)(obj))->ob_type) == __pyx_GeneratorType) |
| 28641 | #define __Pyx_Generator_Undelegate(gen)do { if ((gen)->yieldfrom) { PyObject *_py_tmp = (PyObject *)((gen)->yieldfrom); ((gen)->yieldfrom) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0) Py_CLEAR((gen)->yieldfrom)do { if ((gen)->yieldfrom) { PyObject *_py_tmp = (PyObject *)((gen)->yieldfrom); ((gen)->yieldfrom) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0) |
| 28642 | #if 1 || PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030300B0 |
| 28643 | static int __Pyx_PyGen_FetchStopIterationValue(PyObject **pvalue) { |
| 28644 | PyObject *et, *ev, *tb; |
| 28645 | PyObject *value = NULL((void*)0); |
| 28646 | __Pyx_ErrFetch(&et, &ev, &tb); |
| 28647 | if (!et) { |
| 28648 | Py_XDECREF(tb)do { if ((tb) == ((void*)0)) ; else do { if ( --((PyObject*)( tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject * )(tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(tb)))); } while (0); } while (0); |
| 28649 | Py_XDECREF(ev)do { if ((ev) == ((void*)0)) ; else do { if ( --((PyObject*)( ev))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject * )(ev)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(ev)))); } while (0); } while (0); |
| 28650 | Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 28651 | *pvalue = Py_None(&_Py_NoneStruct); |
| 28652 | return 0; |
| 28653 | } |
| 28654 | if (unlikely(et != PyExc_StopIteration)__builtin_expect(!!(et != PyExc_StopIteration), 0) && |
| 28655 | unlikely(!PyErr_GivenExceptionMatches(et, PyExc_StopIteration))__builtin_expect(!!(!PyErr_GivenExceptionMatches(et, PyExc_StopIteration )), 0)) { |
| 28656 | __Pyx_ErrRestore(et, ev, tb); |
| 28657 | return -1; |
| 28658 | } |
| 28659 | if (likely(et == PyExc_StopIteration)__builtin_expect(!!(et == PyExc_StopIteration), 1)) { |
| 28660 | if (likely(!ev)__builtin_expect(!!(!ev), 1) || !PyObject_IsInstance(ev, PyExc_StopIteration)) { |
| 28661 | if (!ev) { |
| 28662 | Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 28663 | ev = Py_None(&_Py_NoneStruct); |
| 28664 | } |
| 28665 | Py_XDECREF(tb)do { if ((tb) == ((void*)0)) ; else do { if ( --((PyObject*)( tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject * )(tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(tb)))); } while (0); } while (0); |
| 28666 | Py_DECREF(et)do { if ( --((PyObject*)(et))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(et)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(et)))); } while (0); |
| 28667 | *pvalue = ev; |
| 28668 | return 0; |
| 28669 | } |
| 28670 | } |
| 28671 | PyErr_NormalizeException(&et, &ev, &tb); |
| 28672 | if (unlikely(!PyObject_IsInstance(ev, PyExc_StopIteration))__builtin_expect(!!(!PyObject_IsInstance(ev, PyExc_StopIteration )), 0)) { |
| 28673 | __Pyx_ErrRestore(et, ev, tb); |
| 28674 | return -1; |
| 28675 | } |
| 28676 | Py_XDECREF(tb)do { if ((tb) == ((void*)0)) ; else do { if ( --((PyObject*)( tb))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject * )(tb)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(tb)))); } while (0); } while (0); |
| 28677 | Py_DECREF(et)do { if ( --((PyObject*)(et))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(et)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(et)))); } while (0); |
| 28678 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030300A0 |
| 28679 | value = ((PyStopIterationObject *)ev)->value; |
| 28680 | Py_INCREF(value)( ((PyObject*)(value))->ob_refcnt++); |
| 28681 | Py_DECREF(ev)do { if ( --((PyObject*)(ev))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(ev)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(ev)))); } while (0); |
| 28682 | #else |
| 28683 | { |
| 28684 | PyObject* args = PyObject_GetAttr(ev, __pyx_n_s_args); |
| 28685 | Py_DECREF(ev)do { if ( --((PyObject*)(ev))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(ev)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(ev)))); } while (0); |
| 28686 | if (likely(args)__builtin_expect(!!(args), 1)) { |
| 28687 | value = PyObject_GetItem(args, 0); |
| 28688 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
| 28689 | } |
| 28690 | if (unlikely(!value)__builtin_expect(!!(!value), 0)) { |
| 28691 | __Pyx_ErrRestore(NULL((void*)0), NULL((void*)0), NULL((void*)0)); |
| 28692 | Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 28693 | value = Py_None(&_Py_NoneStruct); |
| 28694 | } |
| 28695 | } |
| 28696 | #endif |
| 28697 | *pvalue = value; |
| 28698 | return 0; |
| 28699 | } |
| 28700 | #endif |
| 28701 | static CYTHON_INLINE__inline__ |
| 28702 | void __Pyx_Generator_ExceptionClear(__pyx_GeneratorObject *self) { |
| 28703 | PyObject *exc_type = self->exc_type; |
| 28704 | PyObject *exc_value = self->exc_value; |
| 28705 | PyObject *exc_traceback = self->exc_traceback; |
| 28706 | self->exc_type = NULL((void*)0); |
| 28707 | self->exc_value = NULL((void*)0); |
| 28708 | self->exc_traceback = NULL((void*)0); |
| 28709 | Py_XDECREF(exc_type)do { if ((exc_type) == ((void*)0)) ; else do { if ( --((PyObject *)(exc_type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(exc_type)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(exc_type)))); } while (0); } while (0); |
| 28710 | Py_XDECREF(exc_value)do { if ((exc_value) == ((void*)0)) ; else do { if ( --((PyObject *)(exc_value))->ob_refcnt != 0) ; else ( (*(((PyObject*)(( PyObject *)(exc_value)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(exc_value)))); } while (0); } while (0); |
| 28711 | Py_XDECREF(exc_traceback)do { if ((exc_traceback) == ((void*)0)) ; else do { if ( --(( PyObject*)(exc_traceback))->ob_refcnt != 0) ; else ( (*((( PyObject*)((PyObject *)(exc_traceback)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(exc_traceback)))); } while (0); } while (0); |
| 28712 | } |
| 28713 | static CYTHON_INLINE__inline__ |
| 28714 | int __Pyx_Generator_CheckRunning(__pyx_GeneratorObject *gen) { |
| 28715 | if (unlikely(gen->is_running)__builtin_expect(!!(gen->is_running), 0)) { |
| 28716 | PyErr_SetString(PyExc_ValueError, |
| 28717 | "generator already executing"); |
| 28718 | return 1; |
| 28719 | } |
| 28720 | return 0; |
| 28721 | } |
| 28722 | static CYTHON_INLINE__inline__ |
| 28723 | PyObject *__Pyx_Generator_SendEx(__pyx_GeneratorObject *self, PyObject *value) { |
| 28724 | PyObject *retval; |
| 28725 | assert(!self->is_running)((void) (0)); |
| 28726 | if (unlikely(self->resume_label == 0)__builtin_expect(!!(self->resume_label == 0), 0)) { |
| 28727 | if (unlikely(value && value != Py_None)__builtin_expect(!!(value && value != (&_Py_NoneStruct )), 0)) { |
| 28728 | PyErr_SetString(PyExc_TypeError, |
| 28729 | "can't send non-None value to a " |
| 28730 | "just-started generator"); |
| 28731 | return NULL((void*)0); |
| 28732 | } |
| 28733 | } |
| 28734 | if (unlikely(self->resume_label == -1)__builtin_expect(!!(self->resume_label == -1), 0)) { |
| 28735 | PyErr_SetNone(PyExc_StopIteration); |
| 28736 | return NULL((void*)0); |
| 28737 | } |
| 28738 | if (value) { |
| 28739 | #if CYTHON_COMPILING_IN_PYPY0 |
| 28740 | #else |
| 28741 | /* Generators always return to their most recent caller, not |
| 28742 | * necessarily their creator. */ |
| 28743 | if (self->exc_traceback) { |
| 28744 | PyThreadState *tstate = PyThreadState_GET()(_PyThreadState_Current); |
| 28745 | PyTracebackObject *tb = (PyTracebackObject *) self->exc_traceback; |
| 28746 | PyFrameObject *f = tb->tb_frame; |
| 28747 | Py_XINCREF(tstate->frame)do { if ((tstate->frame) == ((void*)0)) ; else ( ((PyObject *)(tstate->frame))->ob_refcnt++); } while (0); |
| 28748 | assert(f->f_back == NULL)((void) (0)); |
| 28749 | f->f_back = tstate->frame; |
| 28750 | } |
| 28751 | #endif |
| 28752 | __Pyx_ExceptionSwap(&self->exc_type, &self->exc_value, |
| 28753 | &self->exc_traceback); |
| 28754 | } else { |
| 28755 | __Pyx_Generator_ExceptionClear(self); |
| 28756 | } |
| 28757 | self->is_running = 1; |
| 28758 | retval = self->body((PyObject *) self, value); |
| 28759 | self->is_running = 0; |
| 28760 | if (retval) { |
| 28761 | __Pyx_ExceptionSwap(&self->exc_type, &self->exc_value, |
| 28762 | &self->exc_traceback); |
| 28763 | #if CYTHON_COMPILING_IN_PYPY0 |
| 28764 | #else |
| 28765 | /* Don't keep the reference to f_back any longer than necessary. It |
| 28766 | * may keep a chain of frames alive or it could create a reference |
| 28767 | * cycle. */ |
| 28768 | if (self->exc_traceback) { |
| 28769 | PyTracebackObject *tb = (PyTracebackObject *) self->exc_traceback; |
| 28770 | PyFrameObject *f = tb->tb_frame; |
| 28771 | Py_CLEAR(f->f_back)do { if (f->f_back) { PyObject *_py_tmp = (PyObject *)(f-> f_back); (f->f_back) = ((void*)0); do { if ( --((PyObject* )(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28772 | } |
| 28773 | #endif |
| 28774 | } else { |
| 28775 | __Pyx_Generator_ExceptionClear(self); |
| 28776 | } |
| 28777 | return retval; |
| 28778 | } |
| 28779 | static CYTHON_INLINE__inline__ |
| 28780 | PyObject *__Pyx_Generator_FinishDelegation(__pyx_GeneratorObject *gen) { |
| 28781 | PyObject *ret; |
| 28782 | PyObject *val = NULL((void*)0); |
| 28783 | __Pyx_Generator_Undelegate(gen)do { if ((gen)->yieldfrom) { PyObject *_py_tmp = (PyObject *)((gen)->yieldfrom); ((gen)->yieldfrom) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28784 | __Pyx_PyGen_FetchStopIterationValue(&val); |
| 28785 | ret = __Pyx_Generator_SendEx(gen, val); |
| 28786 | Py_XDECREF(val)do { if ((val) == ((void*)0)) ; else do { if ( --((PyObject*) (val))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(val)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(val)))); } while (0); } while (0); |
| 28787 | return ret; |
| 28788 | } |
| 28789 | static PyObject *__Pyx_Generator_Next(PyObject *self) { |
| 28790 | __pyx_GeneratorObject *gen = (__pyx_GeneratorObject*) self; |
| 28791 | PyObject *yf = gen->yieldfrom; |
| 28792 | if (unlikely(__Pyx_Generator_CheckRunning(gen))__builtin_expect(!!(__Pyx_Generator_CheckRunning(gen)), 0)) |
| 28793 | return NULL((void*)0); |
| 28794 | if (yf) { |
| 28795 | PyObject *ret; |
| 28796 | gen->is_running = 1; |
| 28797 | ret = Py_TYPE(yf)(((PyObject*)(yf))->ob_type)->tp_iternext(yf); |
| 28798 | gen->is_running = 0; |
| 28799 | if (likely(ret)__builtin_expect(!!(ret), 1)) { |
| 28800 | return ret; |
| 28801 | } |
| 28802 | return __Pyx_Generator_FinishDelegation(gen); |
| 28803 | } |
| 28804 | return __Pyx_Generator_SendEx(gen, Py_None(&_Py_NoneStruct)); |
| 28805 | } |
| 28806 | static PyObject *__Pyx_Generator_Send(PyObject *self, PyObject *value) { |
| 28807 | __pyx_GeneratorObject *gen = (__pyx_GeneratorObject*) self; |
| 28808 | PyObject *yf = gen->yieldfrom; |
| 28809 | if (unlikely(__Pyx_Generator_CheckRunning(gen))__builtin_expect(!!(__Pyx_Generator_CheckRunning(gen)), 0)) |
| 28810 | return NULL((void*)0); |
| 28811 | if (yf) { |
| 28812 | PyObject *ret; |
| 28813 | gen->is_running = 1; |
| 28814 | if (__Pyx_Generator_CheckExact(yf)((((PyObject*)(yf))->ob_type) == __pyx_GeneratorType)) { |
| 28815 | ret = __Pyx_Generator_Send(yf, value); |
| 28816 | } else { |
| 28817 | if (value == Py_None(&_Py_NoneStruct)) |
| 28818 | ret = PyIter_Next(yf); |
| 28819 | else |
| 28820 | ret = __Pyx_PyObject_CallMethod1(yf, __pyx_n_s_send, value)__Pyx_PyObject_CallMethodTuple(yf, __pyx_n_s_send, PyTuple_Pack (1, value)); |
| 28821 | } |
| 28822 | gen->is_running = 0; |
| 28823 | if (likely(ret)__builtin_expect(!!(ret), 1)) { |
| 28824 | return ret; |
| 28825 | } |
| 28826 | return __Pyx_Generator_FinishDelegation(gen); |
| 28827 | } |
| 28828 | return __Pyx_Generator_SendEx(gen, value); |
| 28829 | } |
| 28830 | static int __Pyx_Generator_CloseIter(__pyx_GeneratorObject *gen, PyObject *yf) { |
| 28831 | PyObject *retval = NULL((void*)0); |
| 28832 | int err = 0; |
| 28833 | if (__Pyx_Generator_CheckExact(yf)((((PyObject*)(yf))->ob_type) == __pyx_GeneratorType)) { |
| 28834 | retval = __Pyx_Generator_Close(yf); |
| 28835 | if (!retval) |
| 28836 | return -1; |
| 28837 | } else { |
| 28838 | PyObject *meth; |
| 28839 | gen->is_running = 1; |
| 28840 | meth = PyObject_GetAttr(yf, __pyx_n_s_close); |
| 28841 | if (unlikely(!meth)__builtin_expect(!!(!meth), 0)) { |
| 28842 | if (!PyErr_ExceptionMatches(PyExc_AttributeError)) { |
| 28843 | PyErr_WriteUnraisable(yf); |
| 28844 | } |
| 28845 | PyErr_Clear(); |
| 28846 | } else { |
| 28847 | retval = PyObject_CallFunction_PyObject_CallFunction_SizeT(meth, NULL((void*)0)); |
| 28848 | Py_DECREF(meth)do { if ( --((PyObject*)(meth))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(meth)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(meth)))); } while (0); |
| 28849 | if (!retval) |
| 28850 | err = -1; |
| 28851 | } |
| 28852 | gen->is_running = 0; |
| 28853 | } |
| 28854 | Py_XDECREF(retval)do { if ((retval) == ((void*)0)) ; else do { if ( --((PyObject *)(retval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(retval)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(retval)))); } while (0); } while (0); |
| 28855 | return err; |
| 28856 | } |
| 28857 | static PyObject *__Pyx_Generator_Close(PyObject *self) { |
| 28858 | __pyx_GeneratorObject *gen = (__pyx_GeneratorObject *) self; |
| 28859 | PyObject *retval, *raised_exception; |
| 28860 | PyObject *yf = gen->yieldfrom; |
| 28861 | int err = 0; |
| 28862 | if (unlikely(__Pyx_Generator_CheckRunning(gen))__builtin_expect(!!(__Pyx_Generator_CheckRunning(gen)), 0)) |
| 28863 | return NULL((void*)0); |
| 28864 | if (yf) { |
| 28865 | Py_INCREF(yf)( ((PyObject*)(yf))->ob_refcnt++); |
| 28866 | err = __Pyx_Generator_CloseIter(gen, yf); |
| 28867 | __Pyx_Generator_Undelegate(gen)do { if ((gen)->yieldfrom) { PyObject *_py_tmp = (PyObject *)((gen)->yieldfrom); ((gen)->yieldfrom) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28868 | Py_DECREF(yf)do { if ( --((PyObject*)(yf))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(yf)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(yf)))); } while (0); |
| 28869 | } |
| 28870 | if (err == 0) |
| 28871 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
| 28872 | PyErr_SetNone(PyExc_StopIteration); |
| 28873 | #else |
| 28874 | PyErr_SetNone(PyExc_GeneratorExit); |
| 28875 | #endif |
| 28876 | retval = __Pyx_Generator_SendEx(gen, NULL((void*)0)); |
| 28877 | if (retval) { |
| 28878 | Py_DECREF(retval)do { if ( --((PyObject*)(retval))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(retval)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(retval)))); } while (0); |
| 28879 | PyErr_SetString(PyExc_RuntimeError, |
| 28880 | "generator ignored GeneratorExit"); |
| 28881 | return NULL((void*)0); |
| 28882 | } |
| 28883 | raised_exception = PyErr_Occurred(); |
| 28884 | if (!raised_exception |
| 28885 | || raised_exception == PyExc_StopIteration |
| 28886 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 |
| 28887 | || raised_exception == PyExc_GeneratorExit |
| 28888 | || PyErr_GivenExceptionMatches(raised_exception, PyExc_GeneratorExit) |
| 28889 | #endif |
| 28890 | || PyErr_GivenExceptionMatches(raised_exception, PyExc_StopIteration)) |
| 28891 | { |
| 28892 | if (raised_exception) PyErr_Clear(); /* ignore these errors */ |
| 28893 | Py_INCREF(Py_None)( ((PyObject*)((&_Py_NoneStruct)))->ob_refcnt++); |
| 28894 | return Py_None(&_Py_NoneStruct); |
| 28895 | } |
| 28896 | return NULL((void*)0); |
| 28897 | } |
| 28898 | static PyObject *__Pyx_Generator_Throw(PyObject *self, PyObject *args) { |
| 28899 | __pyx_GeneratorObject *gen = (__pyx_GeneratorObject *) self; |
| 28900 | PyObject *typ; |
| 28901 | PyObject *tb = NULL((void*)0); |
| 28902 | PyObject *val = NULL((void*)0); |
| 28903 | PyObject *yf = gen->yieldfrom; |
| 28904 | if (!PyArg_UnpackTuple(args, (char *)"throw", 1, 3, &typ, &val, &tb)) |
| 28905 | return NULL((void*)0); |
| 28906 | if (unlikely(__Pyx_Generator_CheckRunning(gen))__builtin_expect(!!(__Pyx_Generator_CheckRunning(gen)), 0)) |
| 28907 | return NULL((void*)0); |
| 28908 | if (yf) { |
| 28909 | PyObject *ret; |
| 28910 | Py_INCREF(yf)( ((PyObject*)(yf))->ob_refcnt++); |
| 28911 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 |
| 28912 | if (PyErr_GivenExceptionMatches(typ, PyExc_GeneratorExit)) { |
| 28913 | int err = __Pyx_Generator_CloseIter(gen, yf); |
| 28914 | Py_DECREF(yf)do { if ( --((PyObject*)(yf))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(yf)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(yf)))); } while (0); |
| 28915 | __Pyx_Generator_Undelegate(gen)do { if ((gen)->yieldfrom) { PyObject *_py_tmp = (PyObject *)((gen)->yieldfrom); ((gen)->yieldfrom) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28916 | if (err < 0) |
| 28917 | return __Pyx_Generator_SendEx(gen, NULL((void*)0)); |
| 28918 | goto throw_here; |
| 28919 | } |
| 28920 | #endif |
| 28921 | gen->is_running = 1; |
| 28922 | if (__Pyx_Generator_CheckExact(yf)((((PyObject*)(yf))->ob_type) == __pyx_GeneratorType)) { |
| 28923 | ret = __Pyx_Generator_Throw(yf, args); |
| 28924 | } else { |
| 28925 | PyObject *meth = PyObject_GetAttr(yf, __pyx_n_s_throw); |
| 28926 | if (unlikely(!meth)__builtin_expect(!!(!meth), 0)) { |
| 28927 | Py_DECREF(yf)do { if ( --((PyObject*)(yf))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(yf)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(yf)))); } while (0); |
| 28928 | if (!PyErr_ExceptionMatches(PyExc_AttributeError)) { |
| 28929 | gen->is_running = 0; |
| 28930 | return NULL((void*)0); |
| 28931 | } |
| 28932 | PyErr_Clear(); |
| 28933 | __Pyx_Generator_Undelegate(gen)do { if ((gen)->yieldfrom) { PyObject *_py_tmp = (PyObject *)((gen)->yieldfrom); ((gen)->yieldfrom) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28934 | gen->is_running = 0; |
| 28935 | goto throw_here; |
| 28936 | } |
| 28937 | ret = PyObject_CallObject(meth, args); |
| 28938 | Py_DECREF(meth)do { if ( --((PyObject*)(meth))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(meth)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(meth)))); } while (0); |
| 28939 | } |
| 28940 | gen->is_running = 0; |
| 28941 | Py_DECREF(yf)do { if ( --((PyObject*)(yf))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(yf)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(yf)))); } while (0); |
| 28942 | if (!ret) { |
| 28943 | ret = __Pyx_Generator_FinishDelegation(gen); |
| 28944 | } |
| 28945 | return ret; |
| 28946 | } |
| 28947 | throw_here: |
| 28948 | __Pyx_Raise(typ, val, tb, NULL((void*)0)); |
| 28949 | return __Pyx_Generator_SendEx(gen, NULL((void*)0)); |
| 28950 | } |
| 28951 | static int __Pyx_Generator_traverse(PyObject *self, visitproc visit, void *arg) { |
| 28952 | __pyx_GeneratorObject *gen = (__pyx_GeneratorObject *) self; |
| 28953 | Py_VISIT(gen->closure)do { if (gen->closure) { int vret = visit((PyObject *)(gen ->closure), arg); if (vret) return vret; } } while (0); |
| 28954 | Py_VISIT(gen->classobj)do { if (gen->classobj) { int vret = visit((PyObject *)(gen ->classobj), arg); if (vret) return vret; } } while (0); |
| 28955 | Py_VISIT(gen->yieldfrom)do { if (gen->yieldfrom) { int vret = visit((PyObject *)(gen ->yieldfrom), arg); if (vret) return vret; } } while (0); |
| 28956 | Py_VISIT(gen->exc_type)do { if (gen->exc_type) { int vret = visit((PyObject *)(gen ->exc_type), arg); if (vret) return vret; } } while (0); |
| 28957 | Py_VISIT(gen->exc_value)do { if (gen->exc_value) { int vret = visit((PyObject *)(gen ->exc_value), arg); if (vret) return vret; } } while (0); |
| 28958 | Py_VISIT(gen->exc_traceback)do { if (gen->exc_traceback) { int vret = visit((PyObject * )(gen->exc_traceback), arg); if (vret) return vret; } } while (0); |
| 28959 | return 0; |
| 28960 | } |
| 28961 | static int __Pyx_Generator_clear(PyObject *self) { |
| 28962 | __pyx_GeneratorObject *gen = (__pyx_GeneratorObject *) self; |
| 28963 | Py_CLEAR(gen->closure)do { if (gen->closure) { PyObject *_py_tmp = (PyObject *)( gen->closure); (gen->closure) = ((void*)0); do { if ( -- ((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28964 | Py_CLEAR(gen->classobj)do { if (gen->classobj) { PyObject *_py_tmp = (PyObject *) (gen->classobj); (gen->classobj) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28965 | Py_CLEAR(gen->yieldfrom)do { if (gen->yieldfrom) { PyObject *_py_tmp = (PyObject * )(gen->yieldfrom); (gen->yieldfrom) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(( (PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28966 | Py_CLEAR(gen->exc_type)do { if (gen->exc_type) { PyObject *_py_tmp = (PyObject *) (gen->exc_type); (gen->exc_type) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28967 | Py_CLEAR(gen->exc_value)do { if (gen->exc_value) { PyObject *_py_tmp = (PyObject * )(gen->exc_value); (gen->exc_value) = ((void*)0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(( (PyObject*)((PyObject *)(_py_tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(_py_tmp)))); } while (0); } } while (0); |
| 28968 | Py_CLEAR(gen->exc_traceback)do { if (gen->exc_traceback) { PyObject *_py_tmp = (PyObject *)(gen->exc_traceback); (gen->exc_traceback) = ((void* )0); do { if ( --((PyObject*)(_py_tmp))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(_py_tmp)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(_py_tmp)))); } while (0 ); } } while (0); |
| 28969 | return 0; |
| 28970 | } |
| 28971 | static void __Pyx_Generator_dealloc(PyObject *self) { |
| 28972 | __pyx_GeneratorObject *gen = (__pyx_GeneratorObject *) self; |
| 28973 | PyObject_GC_UnTrack(gen); |
| 28974 | if (gen->gi_weakreflist != NULL((void*)0)) |
| 28975 | PyObject_ClearWeakRefs(self); |
| 28976 | if (gen->resume_label > 0) { |
| 28977 | PyObject_GC_Track(self); |
| 28978 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 28979 | if (PyObject_CallFinalizerFromDealloc(self)) |
| 28980 | #else |
| 28981 | Py_TYPE(gen)(((PyObject*)(gen))->ob_type)->tp_del(self); |
| 28982 | if (self->ob_refcnt > 0) |
| 28983 | #endif |
| 28984 | return; /* resurrected. :( */ |
| 28985 | PyObject_GC_UnTrack(self); |
| 28986 | } |
| 28987 | __Pyx_Generator_clear(self); |
| 28988 | PyObject_GC_Del(gen); |
| 28989 | } |
| 28990 | static void __Pyx_Generator_del(PyObject *self) { |
| 28991 | PyObject *res; |
| 28992 | PyObject *error_type, *error_value, *error_traceback; |
| 28993 | __pyx_GeneratorObject *gen = (__pyx_GeneratorObject *) self; |
| 28994 | if (gen->resume_label <= 0) |
| 28995 | return ; |
| 28996 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030400a1 |
| 28997 | assert(self->ob_refcnt == 0)((void) (0)); |
| 28998 | self->ob_refcnt = 1; |
| 28999 | #endif |
| 29000 | __Pyx_ErrFetch(&error_type, &error_value, &error_traceback); |
| 29001 | res = __Pyx_Generator_Close(self); |
| 29002 | if (res == NULL((void*)0)) |
| 29003 | PyErr_WriteUnraisable(self); |
| 29004 | else |
| 29005 | Py_DECREF(res)do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(res)))); } while (0); |
| 29006 | __Pyx_ErrRestore(error_type, error_value, error_traceback); |
| 29007 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x030400a1 |
| 29008 | /* Undo the temporary resurrection; can't use DECREF here, it would |
| 29009 | * cause a recursive call. |
| 29010 | */ |
| 29011 | assert(self->ob_refcnt > 0)((void) (0)); |
| 29012 | if (--self->ob_refcnt == 0) |
| 29013 | return; /* this is the normal path out */ |
| 29014 | /* close() resurrected it! Make it look like the original Py_DECREF |
| 29015 | * never happened. |
| 29016 | */ |
| 29017 | { |
| 29018 | Py_ssize_t refcnt = self->ob_refcnt; |
| 29019 | _Py_NewReference(self)( (((PyObject*)(self))->ob_refcnt) = 1); |
| 29020 | self->ob_refcnt = refcnt; |
| 29021 | } |
| 29022 | #if CYTHON_COMPILING_IN_CPYTHON1 |
| 29023 | assert(PyType_IS_GC(self->ob_type) &&((void) (0)) |
| 29024 | _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED)((void) (0)); |
| 29025 | /* If Py_REF_DEBUG, _Py_NewReference bumped _Py_RefTotal, so |
| 29026 | * we need to undo that. */ |
| 29027 | _Py_DEC_REFTOTAL; |
| 29028 | #endif |
| 29029 | /* If Py_TRACE_REFS, _Py_NewReference re-added self to the object |
| 29030 | * chain, so no more to do there. |
| 29031 | * If COUNT_ALLOCS, the original decref bumped tp_frees, and |
| 29032 | * _Py_NewReference bumped tp_allocs: both of those need to be |
| 29033 | * undone. |
| 29034 | */ |
| 29035 | #ifdef COUNT_ALLOCS |
| 29036 | --Py_TYPE(self)(((PyObject*)(self))->ob_type)->tp_frees; |
| 29037 | --Py_TYPE(self)(((PyObject*)(self))->ob_type)->tp_allocs; |
| 29038 | #endif |
| 29039 | #endif |
| 29040 | } |
| 29041 | static PyMemberDef __pyx_Generator_memberlist[] = { |
| 29042 | {(char *) "gi_running", |
| 29043 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 29044 | T_BOOL14, |
| 29045 | #else |
| 29046 | T_BYTE8, |
| 29047 | #endif |
| 29048 | offsetof(__pyx_GeneratorObject, is_running)__builtin_offsetof(__pyx_GeneratorObject, is_running), |
| 29049 | READONLY1, |
| 29050 | NULL((void*)0)}, |
| 29051 | {0, 0, 0, 0, 0} |
| 29052 | }; |
| 29053 | static PyMethodDef __pyx_Generator_methods[] = { |
| 29054 | {__Pyx_NAMESTR("send")("send"), (PyCFunction) __Pyx_Generator_Send, METH_O0x0008, 0}, |
| 29055 | {__Pyx_NAMESTR("throw")("throw"), (PyCFunction) __Pyx_Generator_Throw, METH_VARARGS0x0001, 0}, |
| 29056 | {__Pyx_NAMESTR("close")("close"), (PyCFunction) __Pyx_Generator_Close, METH_NOARGS0x0004, 0}, |
| 29057 | {0, 0, 0, 0} |
| 29058 | }; |
| 29059 | static PyTypeObject __pyx_GeneratorType_type = { |
| 29060 | PyVarObject_HEAD_INIT(0, 0)1, 0, 0, |
| 29061 | __Pyx_NAMESTR("generator")("generator"), /*tp_name*/ |
| 29062 | sizeof(__pyx_GeneratorObject), /*tp_basicsize*/ |
| 29063 | 0, /*tp_itemsize*/ |
| 29064 | (destructor) __Pyx_Generator_dealloc,/*tp_dealloc*/ |
| 29065 | 0, /*tp_print*/ |
| 29066 | 0, /*tp_getattr*/ |
| 29067 | 0, /*tp_setattr*/ |
| 29068 | #if PY_MAJOR_VERSION2 < 3 |
| 29069 | 0, /*tp_compare*/ |
| 29070 | #else |
| 29071 | 0, /*reserved*/ |
| 29072 | #endif |
| 29073 | 0, /*tp_repr*/ |
| 29074 | 0, /*tp_as_number*/ |
| 29075 | 0, /*tp_as_sequence*/ |
| 29076 | 0, /*tp_as_mapping*/ |
| 29077 | 0, /*tp_hash*/ |
| 29078 | 0, /*tp_call*/ |
| 29079 | 0, /*tp_str*/ |
| 29080 | 0, /*tp_getattro*/ |
| 29081 | 0, /*tp_setattro*/ |
| 29082 | 0, /*tp_as_buffer*/ |
| 29083 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0) | Py_TPFLAGS_HAVE_GC(1L<<14) | Py_TPFLAGS_HAVE_FINALIZE0, /* tp_flags*/ |
| 29084 | 0, /*tp_doc*/ |
| 29085 | (traverseproc) __Pyx_Generator_traverse, /*tp_traverse*/ |
| 29086 | 0, /*tp_clear*/ |
| 29087 | 0, /*tp_richcompare*/ |
| 29088 | offsetof(__pyx_GeneratorObject, gi_weakreflist)__builtin_offsetof(__pyx_GeneratorObject, gi_weakreflist), /* tp_weaklistoffse */ |
| 29089 | 0, /*tp_iter*/ |
| 29090 | (iternextfunc) __Pyx_Generator_Next, /*tp_iternext*/ |
| 29091 | __pyx_Generator_methods, /*tp_methods*/ |
| 29092 | __pyx_Generator_memberlist, /*tp_members*/ |
| 29093 | 0, /*tp_getset*/ |
| 29094 | 0, /*tp_base*/ |
| 29095 | 0, /*tp_dict*/ |
| 29096 | 0, /*tp_descr_get*/ |
| 29097 | 0, /*tp_descr_set*/ |
| 29098 | 0, /*tp_dictoffset*/ |
| 29099 | 0, /*tp_init*/ |
| 29100 | 0, /*tp_alloc*/ |
| 29101 | 0, /*tp_new*/ |
| 29102 | 0, /*tp_free*/ |
| 29103 | 0, /*tp_is_gc*/ |
| 29104 | 0, /*tp_bases*/ |
| 29105 | 0, /*tp_mro*/ |
| 29106 | 0, /*tp_cache*/ |
| 29107 | 0, /*tp_subclasses*/ |
| 29108 | 0, /*tp_weaklist*/ |
| 29109 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 29110 | 0, /*tp_del*/ |
| 29111 | #else |
| 29112 | __Pyx_Generator_del, /*tp_del*/ |
| 29113 | #endif |
| 29114 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 29115 | 0, /*tp_version_tag*/ |
| 29116 | #endif |
| 29117 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x030400a1 |
| 29118 | __Pyx_Generator_del, /*tp_finalize*/ |
| 29119 | #endif |
| 29120 | }; |
| 29121 | static __pyx_GeneratorObject *__Pyx_Generator_New(__pyx_generator_body_t body, |
| 29122 | PyObject *closure) { |
| 29123 | __pyx_GeneratorObject *gen = |
| 29124 | PyObject_GC_New(__pyx_GeneratorObject, &__pyx_GeneratorType_type)( (__pyx_GeneratorObject *) _PyObject_GC_New(&__pyx_GeneratorType_type ) ); |
| 29125 | if (gen == NULL((void*)0)) |
| 29126 | return NULL((void*)0); |
| 29127 | gen->body = body; |
| 29128 | gen->closure = closure; |
| 29129 | Py_XINCREF(closure)do { if ((closure) == ((void*)0)) ; else ( ((PyObject*)(closure ))->ob_refcnt++); } while (0); |
| 29130 | gen->is_running = 0; |
| 29131 | gen->resume_label = 0; |
| 29132 | gen->classobj = NULL((void*)0); |
| 29133 | gen->yieldfrom = NULL((void*)0); |
| 29134 | gen->exc_type = NULL((void*)0); |
| 29135 | gen->exc_value = NULL((void*)0); |
| 29136 | gen->exc_traceback = NULL((void*)0); |
| 29137 | gen->gi_weakreflist = NULL((void*)0); |
| 29138 | PyObject_GC_Track(gen); |
| 29139 | return gen; |
| 29140 | } |
| 29141 | static int __pyx_Generator_init(void) { |
| 29142 | __pyx_GeneratorType_type.tp_getattro = PyObject_GenericGetAttr; |
| 29143 | __pyx_GeneratorType_type.tp_iter = PyObject_SelfIter; |
| 29144 | __pyx_GeneratorType = __Pyx_FetchCommonType(&__pyx_GeneratorType_type); |
| 29145 | if (__pyx_GeneratorType == NULL((void*)0)) { |
| 29146 | return -1; |
| 29147 | } |
| 29148 | return 0; |
| 29149 | } |
| 29150 | |
| 29151 | static int __Pyx_check_binary_version(void) { |
| 29152 | char ctversion[4], rtversion[4]; |
| 29153 | PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION2, PY_MINOR_VERSION7); |
| 29154 | PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion()); |
| 29155 | if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) { |
| 29156 | char message[200]; |
| 29157 | PyOS_snprintf(message, sizeof(message), |
| 29158 | "compiletime version %s of module '%.100s' " |
| 29159 | "does not match runtime version %s", |
| 29160 | ctversion, __Pyx_MODULE_NAME"xmmsvalue", rtversion); |
| 29161 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
| 29162 | return PyErr_Warn(NULL, message)PyErr_WarnEx(((void*)0), message, 1); |
| 29163 | #else |
| 29164 | return PyErr_WarnEx(NULL((void*)0), message, 1); |
| 29165 | #endif |
| 29166 | } |
| 29167 | return 0; |
| 29168 | } |
| 29169 | |
| 29170 | static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) { |
| 29171 | PyObject *d = 0; |
| 29172 | PyObject *cobj = 0; |
| 29173 | union { |
| 29174 | void (*fp)(void); |
| 29175 | void *p; |
| 29176 | } tmp; |
| 29177 | d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__"); |
| 29178 | if (!d) { |
| 29179 | PyErr_Clear(); |
| 29180 | d = PyDict_New(); |
| 29181 | if (!d) |
| 29182 | goto bad; |
| 29183 | Py_INCREF(d)( ((PyObject*)(d))->ob_refcnt++); |
| 29184 | if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0) |
| 29185 | goto bad; |
| 29186 | } |
| 29187 | tmp.fp = f; |
| 29188 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02070000 && !(PY_MAJOR_VERSION2==3&&PY_MINOR_VERSION7==0) |
| 29189 | cobj = PyCapsule_New(tmp.p, sig, 0); |
| 29190 | #else |
| 29191 | cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0); |
| 29192 | #endif |
| 29193 | if (!cobj) |
| 29194 | goto bad; |
| 29195 | if (PyDict_SetItemString(d, name, cobj) < 0) |
| 29196 | goto bad; |
| 29197 | Py_DECREF(cobj)do { if ( --((PyObject*)(cobj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(cobj)))); } while (0); |
| 29198 | Py_DECREF(d)do { if ( --((PyObject*)(d))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(d)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(d)))); } while (0); |
| 29199 | return 0; |
| 29200 | bad: |
| 29201 | Py_XDECREF(cobj)do { if ((cobj) == ((void*)0)) ; else do { if ( --((PyObject* )(cobj))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(cobj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(cobj)))); } while (0); } while (0); |
| 29202 | Py_XDECREF(d)do { if ((d) == ((void*)0)) ; else do { if ( --((PyObject*)(d ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( d)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(d )))); } while (0); } while (0); |
| 29203 | return -1; |
| 29204 | } |
| 29205 | |
| 29206 | static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) { |
| 29207 | int start = 0, mid = 0, end = count - 1; |
| 29208 | if (end >= 0 && code_line > entries[end].code_line) { |
| 29209 | return count; |
| 29210 | } |
| 29211 | while (start < end) { |
| 29212 | mid = (start + end) / 2; |
| 29213 | if (code_line < entries[mid].code_line) { |
| 29214 | end = mid; |
| 29215 | } else if (code_line > entries[mid].code_line) { |
| 29216 | start = mid + 1; |
| 29217 | } else { |
| 29218 | return mid; |
| 29219 | } |
| 29220 | } |
| 29221 | if (code_line <= entries[mid].code_line) { |
| 29222 | return mid; |
| 29223 | } else { |
| 29224 | return mid + 1; |
| 29225 | } |
| 29226 | } |
| 29227 | static PyCodeObject *__pyx_find_code_object(int code_line) { |
| 29228 | PyCodeObject* code_object; |
| 29229 | int pos; |
| 29230 | if (unlikely(!code_line)__builtin_expect(!!(!code_line), 0) || unlikely(!__pyx_code_cache.entries)__builtin_expect(!!(!__pyx_code_cache.entries), 0)) { |
| 29231 | return NULL((void*)0); |
| 29232 | } |
| 29233 | pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); |
| 29234 | if (unlikely(pos >= __pyx_code_cache.count)__builtin_expect(!!(pos >= __pyx_code_cache.count), 0) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)__builtin_expect(!!(__pyx_code_cache.entries[pos].code_line != code_line), 0)) { |
| 29235 | return NULL((void*)0); |
| 29236 | } |
| 29237 | code_object = __pyx_code_cache.entries[pos].code_object; |
| 29238 | Py_INCREF(code_object)( ((PyObject*)(code_object))->ob_refcnt++); |
| 29239 | return code_object; |
| 29240 | } |
| 29241 | static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) { |
| 29242 | int pos, i; |
| 29243 | __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries; |
| 29244 | if (unlikely(!code_line)__builtin_expect(!!(!code_line), 0)) { |
| 29245 | return; |
| 29246 | } |
| 29247 | if (unlikely(!entries)__builtin_expect(!!(!entries), 0)) { |
| 29248 | entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry)); |
| 29249 | if (likely(entries)__builtin_expect(!!(entries), 1)) { |
| 29250 | __pyx_code_cache.entries = entries; |
| 29251 | __pyx_code_cache.max_count = 64; |
| 29252 | __pyx_code_cache.count = 1; |
| 29253 | entries[0].code_line = code_line; |
| 29254 | entries[0].code_object = code_object; |
| 29255 | Py_INCREF(code_object)( ((PyObject*)(code_object))->ob_refcnt++); |
| 29256 | } |
| 29257 | return; |
| 29258 | } |
| 29259 | pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line); |
| 29260 | if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)__builtin_expect(!!(__pyx_code_cache.entries[pos].code_line == code_line), 0)) { |
| 29261 | PyCodeObject* tmp = entries[pos].code_object; |
| 29262 | entries[pos].code_object = code_object; |
| 29263 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
| 29264 | return; |
| 29265 | } |
| 29266 | if (__pyx_code_cache.count == __pyx_code_cache.max_count) { |
| 29267 | int new_max = __pyx_code_cache.max_count + 64; |
| 29268 | entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc( |
| 29269 | __pyx_code_cache.entries, new_max*sizeof(__Pyx_CodeObjectCacheEntry)); |
| 29270 | if (unlikely(!entries)__builtin_expect(!!(!entries), 0)) { |
| 29271 | return; |
| 29272 | } |
| 29273 | __pyx_code_cache.entries = entries; |
| 29274 | __pyx_code_cache.max_count = new_max; |
| 29275 | } |
| 29276 | for (i=__pyx_code_cache.count; i>pos; i--) { |
| 29277 | entries[i] = entries[i-1]; |
| 29278 | } |
| 29279 | entries[pos].code_line = code_line; |
| 29280 | entries[pos].code_object = code_object; |
| 29281 | __pyx_code_cache.count++; |
| 29282 | Py_INCREF(code_object)( ((PyObject*)(code_object))->ob_refcnt++); |
| 29283 | } |
| 29284 | |
| 29285 | #include "compile.h" |
| 29286 | #include "frameobject.h" |
| 29287 | #include "traceback.h" |
| 29288 | static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( |
| 29289 | const char *funcname, int c_line, |
| 29290 | int py_line, const char *filename) { |
| 29291 | PyCodeObject *py_code = 0; |
| 29292 | PyObject *py_srcfile = 0; |
| 29293 | PyObject *py_funcname = 0; |
| 29294 | #if PY_MAJOR_VERSION2 < 3 |
| 29295 | py_srcfile = PyString_FromString(filename); |
| 29296 | #else |
| 29297 | py_srcfile = PyUnicode_FromStringPyUnicodeUCS4_FromString(filename); |
| 29298 | #endif |
| 29299 | if (!py_srcfile) goto bad; |
| 29300 | if (c_line) { |
| 29301 | #if PY_MAJOR_VERSION2 < 3 |
| 29302 | py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); |
| 29303 | #else |
| 29304 | py_funcname = PyUnicode_FromFormatPyUnicodeUCS4_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line); |
| 29305 | #endif |
| 29306 | } |
| 29307 | else { |
| 29308 | #if PY_MAJOR_VERSION2 < 3 |
| 29309 | py_funcname = PyString_FromString(funcname); |
| 29310 | #else |
| 29311 | py_funcname = PyUnicode_FromStringPyUnicodeUCS4_FromString(funcname); |
| 29312 | #endif |
| 29313 | } |
| 29314 | if (!py_funcname) goto bad; |
| 29315 | py_code = __Pyx_PyCode_New(PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29316 | 0, /*int argcount,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29317 | 0, /*int kwonlyargcount,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29318 | 0, /*int nlocals,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29319 | 0, /*int stacksize,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29320 | 0, /*int flags,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29321 | __pyx_empty_bytes, /*PyObject *code,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29322 | __pyx_empty_tuple, /*PyObject *consts,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29323 | __pyx_empty_tuple, /*PyObject *names,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29324 | __pyx_empty_tuple, /*PyObject *varnames,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29325 | __pyx_empty_tuple, /*PyObject *freevars,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29326 | __pyx_empty_tuple, /*PyObject *cellvars,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29327 | py_srcfile, /*PyObject *filename,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29328 | py_funcname, /*PyObject *name,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29329 | py_line, /*int firstlineno,*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29330 | __pyx_empty_bytes /*PyObject *lnotab*/PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes) |
| 29331 | )PyCode_New(0 +0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple , __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple , py_srcfile, py_funcname, py_line, __pyx_empty_bytes); |
| 29332 | Py_DECREF(py_srcfile)do { if ( --((PyObject*)(py_srcfile))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_srcfile)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(py_srcfile)))); } while (0); |
| 29333 | Py_DECREF(py_funcname)do { if ( --((PyObject*)(py_funcname))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_funcname)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(py_funcname)))); } while (0); |
| 29334 | return py_code; |
| 29335 | bad: |
| 29336 | Py_XDECREF(py_srcfile)do { if ((py_srcfile) == ((void*)0)) ; else do { if ( --((PyObject *)(py_srcfile))->ob_refcnt != 0) ; else ( (*(((PyObject*)( (PyObject *)(py_srcfile)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(py_srcfile)))); } while (0); } while (0); |
| 29337 | Py_XDECREF(py_funcname)do { if ((py_funcname) == ((void*)0)) ; else do { if ( --((PyObject *)(py_funcname))->ob_refcnt != 0) ; else ( (*(((PyObject*) ((PyObject *)(py_funcname)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(py_funcname)))); } while (0); } while (0); |
| 29338 | return NULL((void*)0); |
| 29339 | } |
| 29340 | static void __Pyx_AddTraceback(const char *funcname, int c_line, |
| 29341 | int py_line, const char *filename) { |
| 29342 | PyCodeObject *py_code = 0; |
| 29343 | PyObject *py_globals = 0; |
| 29344 | PyFrameObject *py_frame = 0; |
| 29345 | py_code = __pyx_find_code_object(c_line ? c_line : py_line); |
| 29346 | if (!py_code) { |
| 29347 | py_code = __Pyx_CreateCodeObjectForTraceback( |
| 29348 | funcname, c_line, py_line, filename); |
| 29349 | if (!py_code) goto bad; |
| 29350 | __pyx_insert_code_object(c_line ? c_line : py_line, py_code); |
| 29351 | } |
| 29352 | py_globals = PyModule_GetDict(__pyx_m); |
| 29353 | if (!py_globals) goto bad; |
| 29354 | py_frame = PyFrame_New( |
| 29355 | PyThreadState_GET()(_PyThreadState_Current), /*PyThreadState *tstate,*/ |
| 29356 | py_code, /*PyCodeObject *code,*/ |
| 29357 | py_globals, /*PyObject *globals,*/ |
| 29358 | 0 /*PyObject *locals*/ |
| 29359 | ); |
| 29360 | if (!py_frame) goto bad; |
| 29361 | py_frame->f_lineno = py_line; |
| 29362 | PyTraceBack_Here(py_frame); |
| 29363 | bad: |
| 29364 | Py_XDECREF(py_code)do { if ((py_code) == ((void*)0)) ; else do { if ( --((PyObject *)(py_code))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_code)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(py_code)))); } while (0); } while (0); |
| 29365 | Py_XDECREF(py_frame)do { if ((py_frame) == ((void*)0)) ; else do { if ( --((PyObject *)(py_frame))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_frame)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(py_frame)))); } while (0); } while (0); |
| 29366 | } |
| 29367 | |
| 29368 | static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) { |
| 29369 | while (t->p) { |
| 29370 | #if PY_MAJOR_VERSION2 < 3 |
| 29371 | if (t->is_unicode) { |
| 29372 | *t->p = PyUnicode_DecodeUTF8PyUnicodeUCS4_DecodeUTF8(t->s, t->n - 1, NULL((void*)0)); |
| 29373 | } else if (t->intern) { |
| 29374 | *t->p = PyString_InternFromString(t->s); |
| 29375 | } else { |
| 29376 | *t->p = PyString_FromStringAndSize(t->s, t->n - 1); |
| 29377 | } |
| 29378 | #else /* Python 3+ has unicode identifiers */ |
| 29379 | if (t->is_unicode | t->is_str) { |
| 29380 | if (t->intern) { |
| 29381 | *t->p = PyUnicode_InternFromString(t->s); |
| 29382 | } else if (t->encoding) { |
| 29383 | *t->p = PyUnicode_DecodePyUnicodeUCS4_Decode(t->s, t->n - 1, t->encoding, NULL((void*)0)); |
| 29384 | } else { |
| 29385 | *t->p = PyUnicode_FromStringAndSizePyUnicodeUCS4_FromStringAndSize(t->s, t->n - 1); |
| 29386 | } |
| 29387 | } else { |
| 29388 | *t->p = PyBytes_FromStringAndSizePyString_FromStringAndSize(t->s, t->n - 1); |
| 29389 | } |
| 29390 | #endif |
| 29391 | if (!*t->p) |
| 29392 | return -1; |
| 29393 | ++t; |
| 29394 | } |
| 29395 | return 0; |
| 29396 | } |
| 29397 | |
| 29398 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { |
| 29399 | return __Pyx_PyUnicode_FromStringAndSize(c_str, strlen(c_str))PyUnicodeUCS4_Decode(c_str, strlen(c_str), "", ((void*)0)); |
| 29400 | } |
| 29401 | static CYTHON_INLINE__inline__ char* __Pyx_PyObject_AsString(PyObject* o) { |
| 29402 | Py_ssize_t ignore; |
| 29403 | return __Pyx_PyObject_AsStringAndSize(o, &ignore); |
| 29404 | } |
| 29405 | static CYTHON_INLINE__inline__ char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) { |
| 29406 | #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT0 |
| 29407 | if ( |
| 29408 | #if PY_MAJOR_VERSION2 < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 |
| 29409 | __Pyx_sys_getdefaultencoding_not_ascii && |
| 29410 | #endif |
| 29411 | PyUnicode_Check(o)((((((PyObject*)(o))->ob_type))->tp_flags & ((1L<< 28))) != 0)) { |
| 29412 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03030000 |
| 29413 | char* defenc_c; |
| 29414 | PyObject* defenc = _PyUnicode_AsDefaultEncodedString_PyUnicodeUCS4_AsDefaultEncodedString(o, NULL((void*)0)); |
| 29415 | if (!defenc) return NULL((void*)0); |
| 29416 | defenc_c = PyBytes_AS_STRING(defenc)(((PyStringObject *)(defenc))->ob_sval); |
| 29417 | #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 |
| 29418 | { |
| 29419 | char* end = defenc_c + PyBytes_GET_SIZE(defenc)(((PyVarObject*)(defenc))->ob_size); |
| 29420 | char* c; |
| 29421 | for (c = defenc_c; c < end; c++) { |
| 29422 | if ((unsigned char) (*c) >= 128) { |
| 29423 | PyUnicode_AsASCIIStringPyUnicodeUCS4_AsASCIIString(o); |
| 29424 | return NULL((void*)0); |
| 29425 | } |
| 29426 | } |
| 29427 | } |
| 29428 | #endif /*__PYX_DEFAULT_STRING_ENCODING_IS_ASCII*/ |
| 29429 | *length = PyBytes_GET_SIZE(defenc)(((PyVarObject*)(defenc))->ob_size); |
| 29430 | return defenc_c; |
| 29431 | #else /* PY_VERSION_HEX < 0x03030000 */ |
| 29432 | if (PyUnicode_READY(o) == -1) return NULL((void*)0); |
| 29433 | #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII0 |
| 29434 | if (PyUnicode_IS_ASCII(o)) { |
| 29435 | *length = PyUnicode_GET_LENGTH(o); |
| 29436 | return PyUnicode_AsUTF8(o); |
| 29437 | } else { |
| 29438 | PyUnicode_AsASCIIStringPyUnicodeUCS4_AsASCIIString(o); |
| 29439 | return NULL((void*)0); |
| 29440 | } |
| 29441 | #else /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII */ |
| 29442 | return PyUnicode_AsUTF8AndSize(o, length); |
| 29443 | #endif /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII */ |
| 29444 | #endif /* PY_VERSION_HEX < 0x03030000 */ |
| 29445 | } else |
| 29446 | #endif /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT */ |
| 29447 | #if !CYTHON_COMPILING_IN_PYPY0 |
| 29448 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
| 29449 | if (PyByteArray_Check(o)((((PyObject*)(o))->ob_type) == (&PyByteArray_Type) || PyType_IsSubtype((((PyObject*)(o))->ob_type), (&PyByteArray_Type )))) { |
| 29450 | *length = PyByteArray_GET_SIZE(o)(((void) (0)),(((PyVarObject*)(o))->ob_size)); |
| 29451 | return PyByteArray_AS_STRING(o)(((void) (0)), (((PyVarObject*)(o))->ob_size) ? ((PyByteArrayObject *)(o))->ob_bytes : _PyByteArray_empty_string); |
| 29452 | } else |
| 29453 | #endif |
| 29454 | #endif |
| 29455 | { |
| 29456 | char* result; |
| 29457 | int r = PyBytes_AsStringAndSizePyString_AsStringAndSize(o, &result, length); |
| 29458 | if (unlikely(r < 0)__builtin_expect(!!(r < 0), 0)) { |
| 29459 | return NULL((void*)0); |
| 29460 | } else { |
| 29461 | return result; |
| 29462 | } |
| 29463 | } |
| 29464 | } |
| 29465 | static CYTHON_INLINE__inline__ int __Pyx_PyObject_IsTrue(PyObject* x) { |
| 29466 | int is_true = x == Py_True((PyObject *) &_Py_TrueStruct); |
| 29467 | if (is_true | (x == Py_False((PyObject *) &_Py_ZeroStruct)) | (x == Py_None(&_Py_NoneStruct))) return is_true; |
| 29468 | else return PyObject_IsTrue(x); |
| 29469 | } |
| 29470 | static CYTHON_INLINE__inline__ PyObject* __Pyx_PyNumber_Int(PyObject* x) { |
| 29471 | PyNumberMethods *m; |
| 29472 | const char *name = NULL((void*)0); |
| 29473 | PyObject *res = NULL((void*)0); |
| 29474 | #if PY_MAJOR_VERSION2 < 3 |
| 29475 | if (PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0 ) || PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<< 24))) != 0)) |
| 29476 | #else |
| 29477 | if (PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<< 24))) != 0)) |
| 29478 | #endif |
| 29479 | return Py_INCREF(x)( ((PyObject*)(x))->ob_refcnt++), x; |
| 29480 | m = Py_TYPE(x)(((PyObject*)(x))->ob_type)->tp_as_number; |
| 29481 | #if PY_MAJOR_VERSION2 < 3 |
| 29482 | if (m && m->nb_int) { |
| 29483 | name = "int"; |
| 29484 | res = PyNumber_Int(x); |
| 29485 | } |
| 29486 | else if (m && m->nb_long) { |
| 29487 | name = "long"; |
| 29488 | res = PyNumber_Long(x); |
| 29489 | } |
| 29490 | #else |
| 29491 | if (m && m->nb_int) { |
| 29492 | name = "int"; |
| 29493 | res = PyNumber_Long(x); |
| 29494 | } |
| 29495 | #endif |
| 29496 | if (res) { |
| 29497 | #if PY_MAJOR_VERSION2 < 3 |
| 29498 | if (!PyInt_Check(res)((((res)->ob_type)->tp_flags & ((1L<<23))) != 0) && !PyLong_Check(res)((((((PyObject*)(res))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
| 29499 | #else |
| 29500 | if (!PyLong_Check(res)((((((PyObject*)(res))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
| 29501 | #endif |
| 29502 | PyErr_Format(PyExc_TypeError, |
| 29503 | "__%.4s__ returned non-%.4s (type %.200s)", |
| 29504 | name, name, Py_TYPE(res)(((PyObject*)(res))->ob_type)->tp_name); |
| 29505 | Py_DECREF(res)do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(res)))); } while (0); |
| 29506 | return NULL((void*)0); |
| 29507 | } |
| 29508 | } |
| 29509 | else if (!PyErr_Occurred()) { |
| 29510 | PyErr_SetString(PyExc_TypeError, |
| 29511 | "an integer is required"); |
| 29512 | } |
| 29513 | return res; |
| 29514 | } |
| 29515 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_MAJOR_VERSION2 >= 3 |
| 29516 | #if CYTHON_USE_PYLONG_INTERNALS0 |
| 29517 | #include "longintrepr.h" |
| 29518 | #endif |
| 29519 | #endif |
| 29520 | static CYTHON_INLINE__inline__ Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { |
| 29521 | Py_ssize_t ival; |
| 29522 | PyObject *x; |
| 29523 | #if PY_MAJOR_VERSION2 < 3 |
| 29524 | if (likely(PyInt_CheckExact(b))__builtin_expect(!!(((b)->ob_type == &PyInt_Type)), 1)) |
| 29525 | return PyInt_AS_LONG(b)(((PyIntObject *)(b))->ob_ival); |
| 29526 | #endif |
| 29527 | if (likely(PyLong_CheckExact(b))__builtin_expect(!!(((((PyObject*)(b))->ob_type) == &PyLong_Type )), 1)) { |
| 29528 | #if CYTHON_COMPILING_IN_CPYTHON1 && PY_MAJOR_VERSION2 >= 3 |
| 29529 | #if CYTHON_USE_PYLONG_INTERNALS0 |
| 29530 | switch (Py_SIZE(b)(((PyVarObject*)(b))->ob_size)) { |
| 29531 | case -1: return -(sdigit)((PyLongObject*)b)->ob_digit[0]; |
| 29532 | case 0: return 0; |
| 29533 | case 1: return ((PyLongObject*)b)->ob_digit[0]; |
| 29534 | } |
| 29535 | #endif |
| 29536 | #endif |
| 29537 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02060000 |
| 29538 | return PyInt_AsSsize_t(b); |
| 29539 | #else |
| 29540 | return PyLong_AsSsize_t(b); |
| 29541 | #endif |
| 29542 | } |
| 29543 | x = PyNumber_Index(b); |
| 29544 | if (!x) return -1; |
| 29545 | ival = PyInt_AsSsize_t(x); |
| 29546 | Py_DECREF(x)do { if ( --((PyObject*)(x))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(x)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(x)))); } while (0); |
| 29547 | return ival; |
| 29548 | } |
| 29549 | static CYTHON_INLINE__inline__ PyObject * __Pyx_PyInt_FromSize_t(size_t ival) { |
| 29550 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
| 29551 | if (ival <= LONG_MAX9223372036854775807L) |
| 29552 | return PyInt_FromLong((long)ival); |
| 29553 | else { |
| 29554 | unsigned char *bytes = (unsigned char *) &ival; |
| 29555 | int one = 1; int little = (int)*(unsigned char*)&one; |
| 29556 | return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0); |
| 29557 | } |
| 29558 | #else |
| 29559 | return PyInt_FromSize_t(ival); |
| 29560 | #endif |
| 29561 | } |
| 29562 | |
| 29563 | |
| 29564 | #endif /* Py_PYTHON_H */ |